aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJan Djärv2010-09-02 12:17:02 +0200
committerJan Djärv2010-09-02 12:17:02 +0200
commit452401254341cbabb9a55f316d0354b1e98aa2ee (patch)
treec51f2856fffb87110416a4a5929618cac37b230f /lisp
parent084e6df30d2e12fffded94c00b27d15889d0999c (diff)
downloademacs-452401254341cbabb9a55f316d0354b1e98aa2ee.tar.gz
emacs-452401254341cbabb9a55f316d0354b1e98aa2ee.zip
Remove cut buffer from documentation.
* doc/emacs/frames.texi (Cut/Paste Other App): Remove vut-buffer text. * doc/lispref/text.texi (Low-Level Kill Ring): * doc/lispref/frames.texi (Window System Selections): Remove cut buffer documentation. * doc/misc/cl.texi (Basic Setf): Remove x-get-cut-buffer and x-get-cutbuffer. * lisp/term/x-win.el (x-select-text): * lisp/term/pc-win.el (x-selection-value): * lisp/term/ns-win.el (x-selection-value): * lisp/eshell/em-term.el: * lisp/w32-fns.el (x-get-selection-value): * lisp/mouse-sel.el (mouse-sel-set-selection-function): * lisp/frame.el (display-selections-p): Remove cut-buffer in documentation. * lisp/term.el (term-mouse-paste): Don't call x-get-cutbuffer. Remove cut buffer from error message.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/eshell/em-term.el3
-rw-r--r--lisp/frame.el3
-rw-r--r--lisp/mouse-sel.el4
-rw-r--r--lisp/term.el3
-rw-r--r--lisp/term/ns-win.el3
-rw-r--r--lisp/term/pc-win.el5
-rw-r--r--lisp/term/x-win.el4
-rw-r--r--lisp/w32-fns.el5
9 files changed, 22 insertions, 19 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index baa1b0fd353..868a8e303b4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,16 @@
12010-09-02 Jan Djärv <jan.h.d@swipnet.se> 12010-09-02 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * term.el (term-mouse-paste): Don't call x-get-cutbuffer.
4 Remove cut buffer from error message.
5
6 * term/x-win.el (x-select-text):
7 * term/pc-win.el (x-selection-value):
8 * term/ns-win.el (x-selection-value):
9 * eshell/em-term.el:
10 * w32-fns.el (x-get-selection-value):
11 * mouse-sel.el (mouse-sel-set-selection-function):
12 * frame.el (display-selections-p): Remove cut-buffer in documentation.
13
3 * term/x-win.el: Update documentation for x-last-selected-text-*. 14 * term/x-win.el: Update documentation for x-last-selected-text-*.
4 (x-last-selected-text-cut, x-last-selected-text-cut-encoded) 15 (x-last-selected-text-cut, x-last-selected-text-cut-encoded)
5 (x-last-cut-buffer-coding, x-cut-buffer-max): Remove. 16 (x-last-cut-buffer-coding, x-cut-buffer-max): Remove.
diff --git a/lisp/eshell/em-term.el b/lisp/eshell/em-term.el
index 8662dd9fffb..826e7ec0d05 100644
--- a/lisp/eshell/em-term.el
+++ b/lisp/eshell/em-term.el
@@ -187,8 +187,7 @@ allowed."
187; (if (boundp 'xemacs-logo) 187; (if (boundp 'xemacs-logo)
188; (eshell-term-send-raw-string 188; (eshell-term-send-raw-string
189; (or (condition-case () (x-get-selection) (error ())) 189; (or (condition-case () (x-get-selection) (error ()))
190; (x-get-cutbuffer) 190; (error "No selection available")))
191; (error "No selection or cut buffer available")))
192; ;; Give temporary modes such as isearch a chance to turn off. 191; ;; Give temporary modes such as isearch a chance to turn off.
193; (run-hooks 'mouse-leave-buffer-hook) 192; (run-hooks 'mouse-leave-buffer-hook)
194; (setq this-command 'yank) 193; (setq this-command 'yank)
diff --git a/lisp/frame.el b/lisp/frame.el
index 8f65cc7f1e5..7a12c9fc2e0 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1210,8 +1210,7 @@ frame's display)."
1210(defun display-selections-p (&optional display) 1210(defun display-selections-p (&optional display)
1211 "Return non-nil if DISPLAY supports selections. 1211 "Return non-nil if DISPLAY supports selections.
1212A selection is a way to transfer text or other data between programs 1212A selection is a way to transfer text or other data between programs
1213via special system buffers called `selection' or `cut buffer' or 1213via special system buffers called `selection' or `clipboard'.
1214`clipboard'.
1215DISPLAY can be a display name, a frame, or nil (meaning the selected 1214DISPLAY can be a display name, a frame, or nil (meaning the selected
1216frame's display)." 1215frame's display)."
1217 (let ((frame-type (framep-on-display display))) 1216 (let ((frame-type (framep-on-display display)))
diff --git a/lisp/mouse-sel.el b/lisp/mouse-sel.el
index 65a52ef664c..f3875e24f07 100644
--- a/lisp/mouse-sel.el
+++ b/lisp/mouse-sel.el
@@ -314,8 +314,8 @@ Called with two arguments:
314 SELECTION, the name of the selection concerned, and 314 SELECTION, the name of the selection concerned, and
315 VALUE, the text to store. 315 VALUE, the text to store.
316 316
317This sets the selection as well as the cut buffer for the older applications, 317This sets the selection, unless `mouse-sel-default-bindings'
318unless `mouse-sel-default-bindings' is `interprogram-cut-paste'.") 318is `interprogram-cut-paste'.")
319 319
320(declare-function x-selection-value "term/x-win" ()) 320(declare-function x-selection-value "term/x-win" ())
321 321
diff --git a/lisp/term.el b/lisp/term.el
index d5e0d149ae5..80f5dcdc01a 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -1231,8 +1231,7 @@ without any interpretation."
1231 (if (featurep 'xemacs) 1231 (if (featurep 'xemacs)
1232 (term-send-raw-string 1232 (term-send-raw-string
1233 (or (condition-case () (x-get-selection) (error ())) 1233 (or (condition-case () (x-get-selection) (error ()))
1234 (x-get-cutbuffer) 1234 (error "No selection available")))
1235 (error "No selection or cut buffer available")))
1236 ;; Give temporary modes such as isearch a chance to turn off. 1235 ;; Give temporary modes such as isearch a chance to turn off.
1237 (run-hooks 'mouse-leave-buffer-hook) 1236 (run-hooks 'mouse-leave-buffer-hook)
1238 (setq this-command 'yank) 1237 (setq this-command 'yank)
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index ffd230d596f..dd386fe1338 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -1041,8 +1041,7 @@ On Nextstep, put TEXT in the pasteboard."
1041(defun x-selection-value () 1041(defun x-selection-value ()
1042 (let (text) 1042 (let (text)
1043 1043
1044 ;; Consult the selection, then the cut buffer. Treat empty strings 1044 ;; Consult the selection. Treat empty strings as if they were unset.
1045 ;; as if they were unset.
1046 (or text (setq text (ns-get-pasteboard))) 1045 (or text (setq text (ns-get-pasteboard)))
1047 (if (string= text "") (setq text nil)) 1046 (if (string= text "") (setq text nil))
1048 1047
diff --git a/lisp/term/pc-win.el b/lisp/term/pc-win.el
index b3dc488ad77..b52e408b193 100644
--- a/lisp/term/pc-win.el
+++ b/lisp/term/pc-win.el
@@ -192,7 +192,7 @@ the operating system.")
192 192
193;; From lisp/term/w32-win.el 193;; From lisp/term/w32-win.el
194; 194;
195;;;; Selections and cut buffers 195;;;; Selections
196; 196;
197;;; We keep track of the last text selected here, so we can check the 197;;; We keep track of the last text selected here, so we can check the
198;;; current selection against it, and avoid passing back our own text 198;;; current selection against it, and avoid passing back our own text
@@ -226,8 +226,7 @@ On Nextstep, put TEXT in the pasteboard."
226 (setq x-last-selected-text text)) 226 (setq x-last-selected-text text))
227 227
228;;; Return the value of the current selection. 228;;; Return the value of the current selection.
229;;; Consult the selection, then the cut buffer. Treat empty strings 229;;; Consult the selection. Treat empty strings as if they were unset.
230;;; as if they were unset.
231(defun x-get-selection-value () 230(defun x-get-selection-value ()
232 (if x-select-enable-clipboard 231 (if x-select-enable-clipboard
233 (let (text) 232 (let (text)
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 1dcf0fed530..b19e0f854d9 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -1192,7 +1192,7 @@ as returned by `x-server-vendor'."
1192;; #x0dde THAI MAIHANAKAT Thai 1192;; #x0dde THAI MAIHANAKAT Thai
1193 1193
1194 1194
1195;;;; Selections and cut buffers 1195;;;; Selections
1196 1196
1197;; We keep track of the last text selected here, so we can check the 1197;; We keep track of the last text selected here, so we can check the
1198;; current selection against it, and avoid passing back our own text 1198;; current selection against it, and avoid passing back our own text
@@ -1233,8 +1233,6 @@ clipboard as well.
1233On Nextstep, put TEXT in the pasteboard." 1233On Nextstep, put TEXT in the pasteboard."
1234 ;; With multi-tty, this function may be called from a tty frame. 1234 ;; With multi-tty, this function may be called from a tty frame.
1235 (when (eq (framep (selected-frame)) 'x) 1235 (when (eq (framep (selected-frame)) 'x)
1236 ;; Don't send the cut buffer too much text.
1237 ;; It becomes slow, and if really big it causes errors.
1238 (when x-select-enable-primary 1236 (when x-select-enable-primary
1239 (x-set-selection 'PRIMARY text) 1237 (x-set-selection 'PRIMARY text)
1240 (setq x-last-selected-text-primary text)) 1238 (setq x-last-selected-text-primary text))
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index 3bd239f73f8..1abb29febc7 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -425,7 +425,7 @@ bit output with no translation."
425 'w32-charset-info-alist "21.1") 425 'w32-charset-info-alist "21.1")
426 426
427 427
428;;;; Selections and cut buffers 428;;;; Selections
429 429
430;; We keep track of the last text selected here, so we can check the 430;; We keep track of the last text selected here, so we can check the
431;; current selection against it, and avoid passing back our own text 431;; current selection against it, and avoid passing back our own text
@@ -450,8 +450,7 @@ On Nextstep, put TEXT in the pasteboard."
450 450
451(defun x-get-selection-value () 451(defun x-get-selection-value ()
452 "Return the value of the current selection. 452 "Return the value of the current selection.
453Consult the selection, then the cut buffer. Treat empty strings as if 453Consult the selection. Treat empty strings as if they were unset."
454they were unset."
455 (if x-select-enable-clipboard 454 (if x-select-enable-clipboard
456 (let (text) 455 (let (text)
457 ;; Don't die if x-get-selection signals an error. 456 ;; Don't die if x-get-selection signals an error.