+2012-08-07 Chong Yidong <cyd@gnu.org>
+
+ * mouse.el (mouse-drag-track): Deactivate the mark before popping.
+
2012-08-06 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/cperl-mode.el (cperl-mode): Yet another fix for
(copy-region-as-kill (mark) (point)))))
;; Otherwise, run binding of terminating up-event.
- (cond
- (do-multi-click (goto-char start-point))
- (moved-off-start (deactivate-mark))
- (t (pop-mark)))
+ (setq foo (list (window-buffer (selected-window))
+ (current-buffer)))
+
+ (if do-multi-click
+ (goto-char start-point)
+ (deactivate-mark)
+ (unless moved-off-start
+ (pop-mark)))
+
(when (and (functionp fun)
(= start-hscroll (window-hscroll start-window))
;; Don't run the up-event handler if the window