aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-10-28 23:32:28 +0000
committerStefan Monnier2004-10-28 23:32:28 +0000
commitd6b8bb8ef4af4b5ae5350626a3358b652779b3b0 (patch)
tree147fb100c9efd6755408f263d3f63851abe86e19
parent0ecd53f80fc5f3f244ecad95dd8b0e99bf8b2215 (diff)
downloademacs-d6b8bb8ef4af4b5ae5350626a3358b652779b3b0.tar.gz
emacs-d6b8bb8ef4af4b5ae5350626a3358b652779b3b0.zip
Adjust to new names for x-(lost|sent)-selection-functions.
-rw-r--r--lisp/emacs-lisp/lselect.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/lselect.el b/lisp/emacs-lisp/lselect.el
index b292eefbaec..42dad0c48d8 100644
--- a/lisp/emacs-lisp/lselect.el
+++ b/lisp/emacs-lisp/lselect.el
@@ -1,6 +1,6 @@
1;;; lselect.el --- Lucid interface to X Selections 1;;; lselect.el --- Lucid interface to X Selections
2 2
3;; Copyright (C) 1990, 1993 Free Software Foundation, Inc. 3;; Copyright (C) 1990, 1993, 2004 Free Software Foundation, Inc.
4 4
5;; Maintainer: FSF 5;; Maintainer: FSF
6;; Keywords: emulations 6;; Keywords: emulations
@@ -146,7 +146,7 @@ secondary selection instead of the primary selection."
146 (x-disown-selection-internal (if secondary-p 'SECONDARY 'PRIMARY))) 146 (x-disown-selection-internal (if secondary-p 'SECONDARY 'PRIMARY)))
147 147
148(defun x-dehilight-selection (selection) 148(defun x-dehilight-selection (selection)
149 "for use as a value of x-lost-selection-hooks." 149 "for use as a value of `x-lost-selection-functions'."
150 (cond ((eq selection 'PRIMARY) 150 (cond ((eq selection 'PRIMARY)
151 (if primary-selection-extent 151 (if primary-selection-extent
152 (let ((inhibit-quit t)) 152 (let ((inhibit-quit t))
@@ -160,23 +160,23 @@ secondary selection instead of the primary selection."
160 (setq secondary-selection-extent nil))))) 160 (setq secondary-selection-extent nil)))))
161 nil) 161 nil)
162 162
163(setq x-lost-selection-hooks 'x-dehilight-selection) 163(setq x-lost-selection-functions 'x-dehilight-selection)
164 164
165(defun x-notice-selection-requests (selection type successful) 165(defun x-notice-selection-requests (selection type successful)
166 "for possible use as the value of x-sent-selection-hooks." 166 "for possible use as the value of `x-sent-selection-functions'."
167 (if (not successful) 167 (if (not successful)
168 (message "Selection request failed to convert %s to %s" 168 (message "Selection request failed to convert %s to %s"
169 selection type) 169 selection type)
170 (message "Sent selection %s as %s" selection type))) 170 (message "Sent selection %s as %s" selection type)))
171 171
172(defun x-notice-selection-failures (selection type successful) 172(defun x-notice-selection-failures (selection type successful)
173 "for possible use as the value of x-sent-selection-hooks." 173 "for possible use as the value of `x-sent-selection-functions'."
174 (or successful 174 (or successful
175 (message "Selection request failed to convert %s to %s" 175 (message "Selection request failed to convert %s to %s"
176 selection type))) 176 selection type)))
177 177
178;(setq x-sent-selection-hooks 'x-notice-selection-requests) 178;(setq x-sent-selection-functions 'x-notice-selection-requests)
179;(setq x-sent-selection-hooks 'x-notice-selection-failures) 179;(setq x-sent-selection-functions 'x-notice-selection-failures)
180 180
181 181
182;; Random utility functions 182;; Random utility functions
@@ -232,5 +232,5 @@ the kill ring or the Clipboard."
232 232
233(provide 'lselect) 233(provide 'lselect)
234 234
235;;; arch-tag: 92fa54d4-c5d1-4e9b-ad58-cf1e13930556 235;; arch-tag: 92fa54d4-c5d1-4e9b-ad58-cf1e13930556
236;;; lselect.el ends here 236;;; lselect.el ends here