mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-09 01:05:39 -08:00
(mouse-kill-secondary): Avoid changing this-command.
Don't clear the secondary selection.
This commit is contained in:
parent
63c1d3f28c
commit
9dfab550e6
1 changed files with 6 additions and 5 deletions
|
|
@ -886,12 +886,13 @@ is to prevent accidents."
|
|||
(window-buffer (posn-window (event-start click)))
|
||||
(current-buffer)))
|
||||
(error "Select or click on the buffer where the secondary selection is")))
|
||||
(save-excursion
|
||||
(set-buffer (overlay-buffer mouse-secondary-overlay))
|
||||
(kill-region (overlay-start mouse-secondary-overlay)
|
||||
(overlay-end mouse-secondary-overlay)))
|
||||
(let (this-command)
|
||||
(save-excursion
|
||||
(set-buffer (overlay-buffer mouse-secondary-overlay))
|
||||
(kill-region (overlay-start mouse-secondary-overlay)
|
||||
(overlay-end mouse-secondary-overlay))))
|
||||
(delete-overlay mouse-secondary-overlay)
|
||||
(x-set-selection 'SECONDARY nil)
|
||||
;;; (x-set-selection 'SECONDARY nil)
|
||||
(setq mouse-secondary-overlay nil))
|
||||
|
||||
(defun mouse-secondary-save-then-kill (click)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue