diff options
| author | Jan Djärv | 2010-09-02 12:17:02 +0200 |
|---|---|---|
| committer | Jan Djärv | 2010-09-02 12:17:02 +0200 |
| commit | 452401254341cbabb9a55f316d0354b1e98aa2ee (patch) | |
| tree | c51f2856fffb87110416a4a5929618cac37b230f | |
| parent | 084e6df30d2e12fffded94c00b27d15889d0999c (diff) | |
| download | emacs-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.
| -rw-r--r-- | doc/emacs/frames.texi | 9 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 22 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 9 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/misc/cl.texi | 8 | ||||
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/eshell/em-term.el | 3 | ||||
| -rw-r--r-- | lisp/frame.el | 3 | ||||
| -rw-r--r-- | lisp/mouse-sel.el | 4 | ||||
| -rw-r--r-- | lisp/term.el | 3 | ||||
| -rw-r--r-- | lisp/term/ns-win.el | 3 | ||||
| -rw-r--r-- | lisp/term/pc-win.el | 5 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 4 | ||||
| -rw-r--r-- | lisp/w32-fns.el | 5 |
15 files changed, 38 insertions, 60 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index fb7413e8593..df4f0beff9e 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi | |||
| @@ -273,15 +273,6 @@ the kill ring. This prevents you from losing the existing selection, | |||
| 273 | at the risk of large memory consumption if other applications generate | 273 | at the risk of large memory consumption if other applications generate |
| 274 | large selections. | 274 | large selections. |
| 275 | 275 | ||
| 276 | @cindex cut buffer | ||
| 277 | @vindex x-cut-buffer-max | ||
| 278 | Whenever Emacs saves some text to the primary selection, it may also | ||
| 279 | save it to the @dfn{cut buffer}. The cut buffer is an obsolete | ||
| 280 | predecessor to the primary selection; most modern applications do not | ||
| 281 | use it. Saving text to the cut buffer is slow and inefficient, so | ||
| 282 | Emacs only does it if the text is shorter than the value of | ||
| 283 | @code{x-cut-buffer-max} (20000 characters by default). | ||
| 284 | |||
| 285 | You can yank the primary selection into Emacs using the usual yank | 276 | You can yank the primary selection into Emacs using the usual yank |
| 286 | commands, such as @kbd{C-y} (@code{yank}) and @kbd{Mouse-2} | 277 | commands, such as @kbd{C-y} (@code{yank}) and @kbd{Mouse-2} |
| 287 | (@code{mouse-yank-at-click}). These commands actually check the | 278 | (@code{mouse-yank-at-click}). These commands actually check the |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index cd99c701ac2..a494cac961b 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-09-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * text.texi (Low-Level Kill Ring): | ||
| 4 | * frames.texi (Window System Selections): Remove cut buffer | ||
| 5 | documentation. | ||
| 6 | |||
| 1 | 2010-08-28 Eli Zaretskii <eliz@gnu.org> | 7 | 2010-08-28 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * display.texi (Fringe Size/Pos): Add a cross-reference to "Layout | 9 | * display.texi (Fringe Size/Pos): Add a cross-reference to "Layout |
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 78b4178bb21..d27010d2096 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -1985,28 +1985,6 @@ with X conventions.) The default for @var{data-type} is | |||
| 1985 | @code{STRING}. | 1985 | @code{STRING}. |
| 1986 | @end defun | 1986 | @end defun |
| 1987 | 1987 | ||
| 1988 | @cindex cut buffer | ||
| 1989 | The X server also has a set of eight numbered @dfn{cut buffers} which can | ||
| 1990 | store text or other data being moved between applications. Cut buffers | ||
| 1991 | are considered obsolete, but Emacs supports them for the sake of X | ||
| 1992 | clients that still use them. Cut buffers are numbered from 0 to 7. | ||
| 1993 | |||
| 1994 | @defun x-get-cut-buffer &optional n | ||
| 1995 | This function returns the contents of cut buffer number @var{n}. | ||
| 1996 | If omitted @var{n} defaults to 0. | ||
| 1997 | @end defun | ||
| 1998 | |||
| 1999 | @defun x-set-cut-buffer string &optional push | ||
| 2000 | @anchor{Definition of x-set-cut-buffer} | ||
| 2001 | This function stores @var{string} into the first cut buffer (cut buffer | ||
| 2002 | 0). If @var{push} is @code{nil}, only the first cut buffer is changed. | ||
| 2003 | If @var{push} is non-@code{nil}, that says to move the values down | ||
| 2004 | through the series of cut buffers, much like the way successive kills in | ||
| 2005 | Emacs move down the kill ring. In other words, the previous value of | ||
| 2006 | the first cut buffer moves into the second cut buffer, and the second to | ||
| 2007 | the third, and so on through all eight cut buffers. | ||
| 2008 | @end defun | ||
| 2009 | |||
| 2010 | @defopt selection-coding-system | 1988 | @defopt selection-coding-system |
| 2011 | This variable specifies the coding system to use when reading and | 1989 | This variable specifies the coding system to use when reading and |
| 2012 | writing selections or the clipboard. @xref{Coding | 1990 | writing selections or the clipboard. @xref{Coding |
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index a7c4a3e62f4..142a071f494 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -1126,16 +1126,13 @@ use @code{string=} to compare it with the last text Emacs provided.) | |||
| 1126 | @defvar interprogram-cut-function | 1126 | @defvar interprogram-cut-function |
| 1127 | This variable provides a way of communicating killed text to other | 1127 | This variable provides a way of communicating killed text to other |
| 1128 | programs, when you are using a window system. Its value should be | 1128 | programs, when you are using a window system. Its value should be |
| 1129 | @code{nil} or a function of one required and one optional argument. | 1129 | @code{nil} or a function of one required argument. |
| 1130 | 1130 | ||
| 1131 | If the value is a function, @code{kill-new} and @code{kill-append} call | 1131 | If the value is a function, @code{kill-new} and @code{kill-append} call |
| 1132 | it with the new first element of the kill ring as the first argument. | 1132 | it with the new first element of the kill ring as the argument. |
| 1133 | The second, optional, argument has the same meaning as the @var{push} | ||
| 1134 | argument to @code{x-set-cut-buffer} (@pxref{Definition of | ||
| 1135 | x-set-cut-buffer}) and only affects the second and later cut buffers. | ||
| 1136 | 1133 | ||
| 1137 | The normal use of this function is to set the window system's primary | 1134 | The normal use of this function is to set the window system's primary |
| 1138 | selection (and first cut buffer) from the newly killed text. | 1135 | selection from the newly killed text. |
| 1139 | @xref{Window System Selections}. | 1136 | @xref{Window System Selections}. |
| 1140 | @end defvar | 1137 | @end defvar |
| 1141 | 1138 | ||
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index d811c3b7e43..c97688438c6 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | 2010-09-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | * cl.texi (Basic Setf): Remove x-get-cut-buffer and x-get-cutbuffer. | ||
| 3 | |||
| 1 | 2010-09-01 Lars Magne Ingebrigtsen <larsi@gnus.org> | 4 | 2010-09-01 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 5 | ||
| 3 | * gnus.texi (HTML): Document gnus-max-image-proportion. | 6 | * gnus.texi (HTML): Document gnus-max-image-proportion. |
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index 96e4a28ae82..de57ff7d095 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -1043,10 +1043,10 @@ frame-visible-p window-hscroll | |||
| 1043 | frame-width window-point | 1043 | frame-width window-point |
| 1044 | get-register window-start | 1044 | get-register window-start |
| 1045 | getenv window-width | 1045 | getenv window-width |
| 1046 | global-key-binding x-get-cut-buffer | 1046 | global-key-binding x-get-secondary-selection |
| 1047 | keymap-parent x-get-cutbuffer | 1047 | keymap-parent x-get-selection |
| 1048 | local-key-binding x-get-secondary-selection | 1048 | local-key-binding |
| 1049 | mark x-get-selection | 1049 | mark |
| 1050 | mark-marker | 1050 | mark-marker |
| 1051 | @end smallexample | 1051 | @end smallexample |
| 1052 | 1052 | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index baa1b0fd353..868a8e303b4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | 2010-09-02 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2010-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. |
| 1212 | A selection is a way to transfer text or other data between programs | 1212 | A selection is a way to transfer text or other data between programs |
| 1213 | via special system buffers called `selection' or `cut buffer' or | 1213 | via special system buffers called `selection' or `clipboard'. |
| 1214 | `clipboard'. | ||
| 1215 | DISPLAY can be a display name, a frame, or nil (meaning the selected | 1214 | DISPLAY can be a display name, a frame, or nil (meaning the selected |
| 1216 | frame's display)." | 1215 | frame'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 | ||
| 317 | This sets the selection as well as the cut buffer for the older applications, | 317 | This sets the selection, unless `mouse-sel-default-bindings' |
| 318 | unless `mouse-sel-default-bindings' is `interprogram-cut-paste'.") | 318 | is `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. | |||
| 1233 | On Nextstep, put TEXT in the pasteboard." | 1233 | On 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. |
| 453 | Consult the selection, then the cut buffer. Treat empty strings as if | 453 | Consult the selection. Treat empty strings as if they were unset." |
| 454 | they 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. |