Commit b3709a53 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

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

parent dbd3d787
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.
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment