mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-02 21:52:04 -08:00
(mouse-set-region): Bind last-command with this-command.
This commit is contained in:
parent
09843b4a11
commit
91a6bc102e
1 changed files with 2 additions and 1 deletions
|
|
@ -325,7 +325,8 @@ This should be bound to a mouse drag event."
|
|||
(goto-char (posn-point end)))
|
||||
;; Don't set this-command to kill-region, so that a following
|
||||
;; C-w will not double the text in the kill ring.
|
||||
(let (this-command)
|
||||
;; Ignore last-command so we don't append to a preceding kill.
|
||||
(let (this-command last-command)
|
||||
(copy-region-as-kill (mark) (point)))
|
||||
(mouse-set-region-1)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue