emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/mouse.el,v [EMACS_22_BASE]


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/mouse.el,v [EMACS_22_BASE]
Date: Thu, 13 Mar 2008 15:29:11 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Richard M. Stallman <rms>       08/03/13 15:29:11

Index: mouse.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/mouse.el,v
retrieving revision 1.315.2.6
retrieving revision 1.315.2.7
diff -u -b -r1.315.2.6 -r1.315.2.7
--- mouse.el    8 Jan 2008 05:13:16 -0000       1.315.2.6
+++ mouse.el    13 Mar 2008 15:29:11 -0000      1.315.2.7
@@ -1642,7 +1642,10 @@
   ;; 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]