diff options
| author | Jim Blandy | 1993-01-26 01:26:58 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-01-26 01:26:58 +0000 |
| commit | d81fd0bf01cf2800a4ffd2c91ebdb19bdc07c781 (patch) | |
| tree | 4246ef3cb3d77ebb7eb78bdc7f8f1b8a5dbd89c6 | |
| parent | 312f637b704659fa5c5e4ed76e445352ad79217e (diff) | |
| download | emacs-d81fd0bf01cf2800a4ffd2c91ebdb19bdc07c781.tar.gz emacs-d81fd0bf01cf2800a4ffd2c91ebdb19bdc07c781.zip | |
x-selection-value has been renamed to x-selection.
x-own-selection has been renamed to x-set-selection, and the order
of its arguments has been reversed, for consistency with other
lisp functions like put and aset.
* term/x-win.el (x-select-text): Adjusted.
(x-cut-buffer-or-selection-value): Check the primary selection,
using x-selection, instead of checking the cut buffer again.
* term/x-win.el: Doc fix.
| -rw-r--r-- | lisp/term/x-win.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 2c774cb2a7e..e918a68f7e1 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -52,7 +52,6 @@ | |||
| 52 | ;; -rv *reverseVideo | 52 | ;; -rv *reverseVideo |
| 53 | ;; -selectionTimeout .selectionTimeout | 53 | ;; -selectionTimeout .selectionTimeout |
| 54 | ;; -synchronous *synchronous | 54 | ;; -synchronous *synchronous |
| 55 | ;; -title .title | ||
| 56 | ;; -xrm | 55 | ;; -xrm |
| 57 | 56 | ||
| 58 | ;; An alist of X options and the function which handles them. See | 57 | ;; An alist of X options and the function which handles them. See |
| @@ -463,11 +462,11 @@ turn off scroll bars; otherwise, turn on scroll bars." | |||
| 463 | ;;; If you are running xclipboard, this means you can effectively | 462 | ;;; If you are running xclipboard, this means you can effectively |
| 464 | ;;; have a window on a copy of the kill-ring. | 463 | ;;; have a window on a copy of the kill-ring. |
| 465 | ;;; Also, set the value of X cut buffer 0, for backward compatibility | 464 | ;;; Also, set the value of X cut buffer 0, for backward compatibility |
| 466 | ;;; with older X application. | 465 | ;;; with older X applications. |
| 467 | (defun x-select-text (text) | 466 | (defun x-select-text (text) |
| 468 | (x-set-cut-buffer 0 text) | 467 | (x-set-cut-buffer 0 text) |
| 469 | (x-own-selection text 'clipboard) | 468 | (x-set-selection 'clipboard text) |
| 470 | (x-own-selection text) | 469 | (x-set-selection 'primary text) |
| 471 | (setq x-last-selected-text text)) | 470 | (setq x-last-selected-text text)) |
| 472 | 471 | ||
| 473 | ;;; Return the value of the current X selection. For compatibility | 472 | ;;; Return the value of the current X selection. For compatibility |
| @@ -480,7 +479,7 @@ turn off scroll bars; otherwise, turn on scroll bars." | |||
| 480 | ;; as if they were unset. | 479 | ;; as if they were unset. |
| 481 | (setq text (x-get-cut-buffer 0)) | 480 | (setq text (x-get-cut-buffer 0)) |
| 482 | (if (string= text "") (setq text nil)) | 481 | (if (string= text "") (setq text nil)) |
| 483 | (or text (setq text (x-get-cut-buffer 0))) | 482 | (or text (setq text (x-selection 'primary))) |
| 484 | (if (string= text "") (setq text nil)) | 483 | (if (string= text "") (setq text nil)) |
| 485 | 484 | ||
| 486 | (cond | 485 | (cond |