]> git.eshelyaron.com Git - emacs.git/commitdiff
(mouse-sel-get-selection-function):
authorRichard M. Stallman <rms@gnu.org>
Mon, 5 May 1997 19:55:17 +0000 (19:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 5 May 1997 19:55:17 +0000 (19:55 +0000)
Look in x-last-selected-text if necessary.

lisp/mouse-sel.el

index fdcd9a3e623e5c2955bb8a8351904ff5280c6c1a..e86737c197f0c3ed5149055c0bb247269e4eb3e9 100644 (file)
@@ -201,7 +201,7 @@ for them.")
 (defvar mouse-sel-get-selection-function
   (function (lambda (selection)
              (if (eq selection 'PRIMARY)
-                 (x-cut-buffer-or-selection-value)
+                 (or (x-cut-buffer-or-selection-value) x-last-selected-text)
                (x-get-selection selection))))
   "Function to call to get the selection.
 Called with one argument: