HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c686c9
)
(mouse-save-then-kill): If the distance from the new
author
Gerd Moellmann
<gerd@gnu.org>
Fri, 16 Feb 2001 15:54:48 +0000
(15:54 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Fri, 16 Feb 2001 15:54:48 +0000
(15:54 +0000)
point to the mark is equal to the distance of point from the new
point, move point instead of the mark.
lisp/mouse.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/mouse.el
b/lisp/mouse.el
index
7b9debc
..
ddb0ead
100644
(file)
--- 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."
(progn
;; Move whichever end of the region is closer to the click.
;; That is what xterm does, and it seems reasonable.
- (if (< (abs (- new (point))) (abs (- new (mark t))))
+ (if (<
=
(abs (- new (point))) (abs (- new (mark t))))
(goto-char new)
(set-mark new))
(setq deactivate-mark nil)))