[Top][All Lists]

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

Re: mouse-sel-mode doesn't function

From: John Paul Wallington
Subject: Re: mouse-sel-mode doesn't function
Date: Sat, 23 Aug 2003 06:03:55 +0100

> Start emacs via ''emacs -no-site-file -no-init-file''
> and then enable "mouse-sel-mode" (via M-x mouse-sel-mode);
> now try to cut-n-paste strings from within emacs and from
> an xterm to/from emacs.  Things simply don't function properly.
> >From within emacs (highlight a string and try to middle-click to
> paste it), I get the following message -
>   mouse-insert-selection-internal: Symbol's value as variable is
>   void: x-last-selected-text

Thanks for your report.  This should be fixed now.  Please try
updating your sources from cvs or applying this patch:

RCS file: /cvsroot/emacs/emacs/lisp/mouse-sel.el,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- emacs/emacs/lisp/mouse-sel.el       2003/02/18 10:57:39     1.37
+++ emacs/emacs/lisp/mouse-sel.el       2003/07/25 12:18:46     1.38
@@ -313,7 +313,9 @@
 (defvar mouse-sel-get-selection-function
   (lambda (selection)
     (if (eq selection 'PRIMARY)
-       (or (x-cut-buffer-or-selection-value) x-last-selected-text)
+       (or (x-cut-buffer-or-selection-value)
+           (bound-and-true-p x-last-selected-text)
+           (bound-and-true-p x-last-selected-text-primary))
       (x-get-selection selection)))
   "Function to call to get the selection.
 Called with one argument:

reply via email to

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