2008-03-13 Richard Stallman <rms@gnu.org>
+ * mouse.el (mouse-yank-secondary): Nice error msg if no secondary sel.
+
* emacs-lisp/advice.el (defadvice): Add usage pattern.
2008-03-11 Chong Yidong <cyd@stupidchicken.com>
;; 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.