+2008-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * term/mac-win.el (mac-ae-open-documents): Adjust selection range
+ parameter origins.
+
2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/python.el (python-mode): Don't mess with hippie-expand.
(let ((line (car selection-range))
(start (cadr selection-range))
(end (nth 2 selection-range)))
- (if (> line 0)
- (goto-line line)
- (if (and (> start 0) (> end 0))
- (progn (set-mark start)
- (goto-char end))))))
+ (if (>= line 0)
+ (goto-line (1+ line))
+ (if (and (>= start 0) (>= end 0))
+ (progn (set-mark (1+ start))
+ (goto-char (1+ end)))))))
((stringp search-text)
(re-search-forward
(mapconcat 'regexp-quote (split-string search-text) "\\|")