diff options
| author | Glenn Morris | 2010-10-23 18:57:21 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-23 18:57:21 -0700 |
| commit | 8aa0f26343d11229fb87cd6a4473598b99b6b9a2 (patch) | |
| tree | 492d8868cc5d0cdfa51e2b9806977d362b9e3a85 | |
| parent | 46710489c856df3ec94c822d1d88be30d19159f9 (diff) | |
| download | emacs-8aa0f26343d11229fb87cd6a4473598b99b6b9a2.tar.gz emacs-8aa0f26343d11229fb87cd6a4473598b99b6b9a2.zip | |
Reduce duplicate definitions of x-select-enable-clipboard from 3 to 2.
* lisp/w32-vars.el (x-select-enable-clipboard):
* lisp/term/x-win.el (x-select-enable-clipboard): Move to common-win.
* lisp/term/common-win.el (x-select-enable-clipboard): Move here.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/term/common-win.el | 12 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 11 | ||||
| -rw-r--r-- | lisp/w32-vars.el | 10 |
4 files changed, 15 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 24fe1463543..81ad3afecd9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-10-24 Glenn Morris <rgm@gnu.org> | 1 | 2010-10-24 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * w32-vars.el (x-select-enable-clipboard): | ||
| 4 | * term/x-win.el (x-select-enable-clipboard): Move to common-win. | ||
| 5 | * term/common-win.el (x-select-enable-clipboard): Move here. | ||
| 6 | |||
| 3 | * term/tty-colors.el (tty-defined-color-alist): Remove duplicate | 7 | * term/tty-colors.el (tty-defined-color-alist): Remove duplicate |
| 4 | definition of C variable. | 8 | definition of C variable. |
| 5 | 9 | ||
diff --git a/lisp/term/common-win.el b/lisp/term/common-win.el index 25ba41a23c2..832dde1d8a1 100644 --- a/lisp/term/common-win.el +++ b/lisp/term/common-win.el | |||
| @@ -25,6 +25,17 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (defcustom x-select-enable-clipboard t | ||
| 29 | "Non-nil means cutting and pasting uses the clipboard. | ||
| 30 | This is in addition to, but in preference to, the primary selection. | ||
| 31 | |||
| 32 | Note that MS-Windows does not support selection types other than the | ||
| 33 | clipboard. \(The primary selection that is set by Emacs is not | ||
| 34 | accessible to other programs on MS-Windows.\)" | ||
| 35 | :type 'boolean | ||
| 36 | :group 'killing | ||
| 37 | ;; The GNU/Linux version changed in 24.1, the MS-Windows version did not. | ||
| 38 | :version "24.1") | ||
| 28 | 39 | ||
| 29 | (defvar x-invocation-args) | 40 | (defvar x-invocation-args) |
| 30 | 41 | ||
| @@ -371,5 +382,4 @@ For X, the list comes from the `rgb.txt' file,v 10.41 94/02/20. | |||
| 371 | For Nextstep, this is a list of non-PANTONE colors returned by | 382 | For Nextstep, this is a list of non-PANTONE colors returned by |
| 372 | the operating system.") | 383 | the operating system.") |
| 373 | 384 | ||
| 374 | ;; arch-tag: 2a128601-99cc-401e-9dff-0ee6a36102ef | ||
| 375 | ;;; common-win.el ends here | 385 | ;;; common-win.el ends here |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index f79942ed33d..c39332cc12b 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -1206,17 +1206,6 @@ pasted text.") | |||
| 1206 | "The value of the PRIMARY X selection last time we selected or | 1206 | "The value of the PRIMARY X selection last time we selected or |
| 1207 | pasted text.") | 1207 | pasted text.") |
| 1208 | 1208 | ||
| 1209 | (defcustom x-select-enable-clipboard t | ||
| 1210 | "Non-nil means cutting and pasting uses the clipboard. | ||
| 1211 | This is in addition to, but in preference to, the primary selection. | ||
| 1212 | |||
| 1213 | Note that MS-Windows does not support selection types other than the | ||
| 1214 | clipboard. \(The primary selection that is set by Emacs is not | ||
| 1215 | accessible to other programs on MS-Windows.\)" | ||
| 1216 | :type 'boolean | ||
| 1217 | :group 'killing | ||
| 1218 | :version "24.1") | ||
| 1219 | |||
| 1220 | (defcustom x-select-enable-primary nil | 1209 | (defcustom x-select-enable-primary nil |
| 1221 | "Non-nil means cutting and pasting uses the primary selection." | 1210 | "Non-nil means cutting and pasting uses the primary selection." |
| 1222 | :type 'boolean | 1211 | :type 'boolean |
diff --git a/lisp/w32-vars.el b/lisp/w32-vars.el index 0a6e79275a8..80cdfb57129 100644 --- a/lisp/w32-vars.el +++ b/lisp/w32-vars.el | |||
| @@ -148,16 +148,6 @@ menu if the variable `w32-use-w32-font-dialog' is nil." | |||
| 148 | (string :tag "Font"))))))) | 148 | (string :tag "Font"))))))) |
| 149 | :group 'w32) | 149 | :group 'w32) |
| 150 | 150 | ||
| 151 | (defcustom x-select-enable-clipboard t | ||
| 152 | "Non-nil means cutting and pasting uses the clipboard. | ||
| 153 | This is in addition to, but in preference to, the primary selection. | ||
| 154 | |||
| 155 | Note that MS-Windows does not support selection types other than the | ||
| 156 | clipboard. \(The primary selection that is set by Emacs is not | ||
| 157 | accessible to other programs on MS-Windows.\)" | ||
| 158 | :type 'boolean | ||
| 159 | :group 'killing) | ||
| 160 | |||
| 161 | (provide 'w32-vars) | 151 | (provide 'w32-vars) |
| 162 | 152 | ||
| 163 | ;;; w32-vars.el ends here | 153 | ;;; w32-vars.el ends here |