1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-31 20:02:42 +00:00

(mouse-yank-secondary): Better error message if no secondary selection.

This commit is contained in:
Richard M. Stallman 2007-07-16 04:42:24 +00:00
parent dbd3d78766
commit b3709a5323
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-07-13 Drew Adams <drew.adams@oracle.com>
* mouse.el (mouse-yank-secondary): Better error message if no
secondary selection.
2007-07-16 Dan Nicolaescu <dann@ics.uci.edu>
* vc-hooks.el (vc-handled-backends): Move BZR later in the list.

View File

@ -1631,7 +1631,10 @@ regardless of where you click."
;; Give temporary modes such as isearch a chance to turn off.
(run-hooks 'mouse-leave-buffer-hook)
(or mouse-yank-at-point (mouse-set-point click))
(insert (x-get-selection 'SECONDARY)))
(let ((secondary (x-get-selection 'SECONDARY)))
(if secondary
(insert (x-get-selection 'SECONDARY))
(error "No secondary selection"))))
(defun mouse-kill-secondary ()
"Kill the text in the secondary selection.