aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-04 00:49:37 +0000
committerRichard M. Stallman1994-07-04 00:49:37 +0000
commit6452d8a6f4f0271e24d12623724d5759f9cb5af6 (patch)
treeb6e9ddf673ecaa8e127493658d17f133d41bb8f1
parent738f9104db739f70c5fd33da39c92bca27cb809d (diff)
downloademacs-6452d8a6f4f0271e24d12623724d5759f9cb5af6.tar.gz
emacs-6452d8a6f4f0271e24d12623724d5759f9cb5af6.zip
(mouse-drag-region): Bind this-command like last-command.
(mouse-kill-ring-save): Bind this-command and last-command.
-rw-r--r--lisp/mouse.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index c10dad11572..6bc7259e6e0 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -258,7 +258,7 @@ release the mouse button. Otherwise, it does not."
258 (let ((fun (key-binding (vector (car event))))) 258 (let ((fun (key-binding (vector (car event)))))
259 (if (not (= (overlay-start mouse-drag-overlay) 259 (if (not (= (overlay-start mouse-drag-overlay)
260 (overlay-end mouse-drag-overlay))) 260 (overlay-end mouse-drag-overlay)))
261 (let (last-command) 261 (let (last-command this-command)
262 (push-mark (overlay-start mouse-drag-overlay) t t) 262 (push-mark (overlay-start mouse-drag-overlay) t t)
263 (goto-char (overlay-end mouse-drag-overlay)) 263 (goto-char (overlay-end mouse-drag-overlay))
264 (copy-region-as-kill (point) (mark t))) 264 (copy-region-as-kill (point) (mark t)))
@@ -390,7 +390,8 @@ regardless of where you click."
390This does not delete the region; it acts like \\[kill-ring-save]." 390This does not delete the region; it acts like \\[kill-ring-save]."
391 (interactive "e") 391 (interactive "e")
392 (mouse-set-mark-fast click) 392 (mouse-set-mark-fast click)
393 (kill-ring-save (point) (mark t)) 393 (let (this-command last-command)
394 (kill-ring-save (point) (mark t)))
394 (mouse-show-mark)) 395 (mouse-show-mark))
395 396
396;;; This function used to delete the text between point and the mouse 397;;; This function used to delete the text between point and the mouse