aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Paul Wallington2003-07-25 12:21:01 +0000
committerJohn Paul Wallington2003-07-25 12:21:01 +0000
commit497cfacf276f20bd041c109e30ea4f99c3e43b17 (patch)
treea9792ce3bea351c6bc7b98b2c38ba6308ccde1b1
parent1a0d0b6ab1e8107e7453b7a72e1c040d2da191f5 (diff)
downloademacs-497cfacf276f20bd041c109e30ea4f99c3e43b17.tar.gz
emacs-497cfacf276f20bd041c109e30ea4f99c3e43b17.zip
(mouse-sel-get-selection-function):
Check `x-last-selected-text-primary'. Don't barf if it or `x-last-selected-text' aren't bound.
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/mouse-sel.el4
2 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c85c6df1698..1849cd0172a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,17 @@
12003-07-25 John Paul Wallington <jpw@gnu.org>
2
3 * server.el (server-start): Check `server-process' is non-nil
4 before killing it to avoid killing current buffer's process.
5
6 * simple.el (choose-completion-string): Use `minibufferp';
7 test `completion-reference-buffer' if `buffer' arg is nil.
8 (push-mark): Use `when' and `unless'.
9 (pop-mark): Use `when'.
10
11 * mouse-sel.el (mouse-sel-get-selection-function):
12 Check `x-last-selected-text-primary'. Don't barf if it or
13 `x-last-selected-text' aren't bound.
14
12003-07-25 Kevin Rodgers <ihs_4664@yahoo.com> (tiny change) 152003-07-25 Kevin Rodgers <ihs_4664@yahoo.com> (tiny change)
2 16
3 * menu-bar.el (menu-bar-tools-menu): Minor change in strings. 17 * menu-bar.el (menu-bar-tools-menu): Minor change in strings.
diff --git a/lisp/mouse-sel.el b/lisp/mouse-sel.el
index bba41a0dbf9..bbbb1e54595 100644
--- a/lisp/mouse-sel.el
+++ b/lisp/mouse-sel.el
@@ -313,7 +313,9 @@ unless `mouse-sel-default-bindings' is `interprogram-cut-paste'.")
313(defvar mouse-sel-get-selection-function 313(defvar mouse-sel-get-selection-function
314 (lambda (selection) 314 (lambda (selection)
315 (if (eq selection 'PRIMARY) 315 (if (eq selection 'PRIMARY)
316 (or (x-cut-buffer-or-selection-value) x-last-selected-text) 316 (or (x-cut-buffer-or-selection-value)
317 (bound-and-true-p x-last-selected-text)
318 (bound-and-true-p x-last-selected-text-primary))
317 (x-get-selection selection))) 319 (x-get-selection selection)))
318 "Function to call to get the selection. 320 "Function to call to get the selection.
319Called with one argument: 321Called with one argument: