changeset 10782:806b3e3fd93c

(mouse-buffer-menu): Don't clear selection when we kill it.
author Richard M. Stallman <rms@gnu.org>
date Sat, 18 Feb 1995 23:56:09 +0000
parents e47bb69af803
children bb2d929daaa3
files lisp/mouse.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mouse.el	Sat Feb 18 17:18:21 1995 +0000
+++ b/lisp/mouse.el	Sat Feb 18 23:56:09 1995 +0000
@@ -1005,8 +1005,8 @@
 		  (overlay-put mouse-secondary-overlay 'face 'secondary-selection))))
 	  (setq mouse-save-then-kill-posn
 		(list (car kill-ring) (point) click-posn))))
-      (x-set-selection 'SECONDARY
-		       (if (overlay-buffer mouse-secondary-overlay)
+      (if (overlay-buffer mouse-secondary-overlay)
+	  (x-set-selection 'SECONDARY
 			   (buffer-substring
 			    (overlay-start mouse-secondary-overlay)
 			    (overlay-end mouse-secondary-overlay)))))))