diff options
| author | Chong Yidong | 2012-08-07 11:24:35 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-07 11:24:35 +0800 |
| commit | de655540a92d18984ece661ee8f6000538749ab3 (patch) | |
| tree | 2261284c5c66629bbbce8e4f129863f49f81e872 | |
| parent | 5a4c42ba3066ef7403af30c404fbc4ab881e2573 (diff) | |
| download | emacs-de655540a92d18984ece661ee8f6000538749ab3.tar.gz emacs-de655540a92d18984ece661ee8f6000538749ab3.zip | |
Backport 2012-06-23T12:48:24Z!cyd@gnu.org from trunk
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/mouse.el | 13 |
2 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a4a5ab7eb39..d8bf55e0066 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-08-07 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * mouse.el (mouse-drag-track): Deactivate the mark before popping. | ||
| 4 | |||
| 1 | 2012-08-06 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2012-08-06 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * progmodes/cperl-mode.el (cperl-mode): Yet another fix for | 7 | * progmodes/cperl-mode.el (cperl-mode): Yet another fix for |
diff --git a/lisp/mouse.el b/lisp/mouse.el index d9511c722ca..53238f03524 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -885,10 +885,15 @@ DO-MOUSE-DRAG-REGION-POST-PROCESS should only be used by | |||
| 885 | (copy-region-as-kill (mark) (point))))) | 885 | (copy-region-as-kill (mark) (point))))) |
| 886 | 886 | ||
| 887 | ;; Otherwise, run binding of terminating up-event. | 887 | ;; Otherwise, run binding of terminating up-event. |
| 888 | (cond | 888 | (setq foo (list (window-buffer (selected-window)) |
| 889 | (do-multi-click (goto-char start-point)) | 889 | (current-buffer))) |
| 890 | (moved-off-start (deactivate-mark)) | 890 | |
| 891 | (t (pop-mark))) | 891 | (if do-multi-click |
| 892 | (goto-char start-point) | ||
| 893 | (deactivate-mark) | ||
| 894 | (unless moved-off-start | ||
| 895 | (pop-mark))) | ||
| 896 | |||
| 892 | (when (and (functionp fun) | 897 | (when (and (functionp fun) |
| 893 | (= start-hscroll (window-hscroll start-window)) | 898 | (= start-hscroll (window-hscroll start-window)) |
| 894 | ;; Don't run the up-event handler if the window | 899 | ;; Don't run the up-event handler if the window |