diff options
| author | Gerd Moellmann | 2001-02-16 15:54:48 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-02-16 15:54:48 +0000 |
| commit | ed784c53bc13693e975a597f32c579914579d8a9 (patch) | |
| tree | ce53246283486de53879968f275fae4c40a7b95d | |
| parent | 1c686c993f360d11949e8ca95300a9fa5d0c885f (diff) | |
| download | emacs-ed784c53bc13693e975a597f32c579914579d8a9.tar.gz emacs-ed784c53bc13693e975a597f32c579914579d8a9.zip | |
(mouse-save-then-kill): If the distance from the new
point to the mark is equal to the distance of point from the new
point, move point instead of the mark.
| -rw-r--r-- | lisp/mouse.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 7b9debc7b09..ddb0ead03d2 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1176,7 +1176,7 @@ If you do this twice in the same position, the selection is killed." | |||
| 1176 | (progn | 1176 | (progn |
| 1177 | ;; Move whichever end of the region is closer to the click. | 1177 | ;; Move whichever end of the region is closer to the click. |
| 1178 | ;; That is what xterm does, and it seems reasonable. | 1178 | ;; That is what xterm does, and it seems reasonable. |
| 1179 | (if (< (abs (- new (point))) (abs (- new (mark t)))) | 1179 | (if (<= (abs (- new (point))) (abs (- new (mark t)))) |
| 1180 | (goto-char new) | 1180 | (goto-char new) |
| 1181 | (set-mark new)) | 1181 | (set-mark new)) |
| 1182 | (setq deactivate-mark nil))) | 1182 | (setq deactivate-mark nil))) |