From: Richard M. Stallman Date: Sun, 26 Feb 1995 04:17:42 +0000 (+0000) Subject: (mouse-kill-secondary): Avoid changing this-command. X-Git-Tag: emacs-19.34~5020 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9dfab550e65080dfbea91da014ff7a78ceea22df;p=emacs.git (mouse-kill-secondary): Avoid changing this-command. Don't clear the secondary selection. --- diff --git a/lisp/mouse.el b/lisp/mouse.el index 9e4c4827aaf..917cdca28a3 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -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)