Mercurial > emacs
comparison lisp/term/pc-win.el @ 34105:9f894ba9e808
(x-select-enable-clipboard): Customize (as per the Emacs Lisp manual).
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 02 Dec 2000 11:21:44 +0000 |
parents | b7b3acac61b8 |
children | 293677d8c530 |
comparison
equal
deleted
inserted
replaced
34104:c9980ec72766 | 34105:9f894ba9e808 |
---|---|
168 ;;; We keep track of the last text selected here, so we can check the | 168 ;;; We keep track of the last text selected here, so we can check the |
169 ;;; current selection against it, and avoid passing back our own text | 169 ;;; current selection against it, and avoid passing back our own text |
170 ;;; from x-cut-buffer-or-selection-value. | 170 ;;; from x-cut-buffer-or-selection-value. |
171 (defvar x-last-selected-text nil) | 171 (defvar x-last-selected-text nil) |
172 | 172 |
173 (defvar x-select-enable-clipboard t | 173 (defcustom x-select-enable-clipboard t |
174 "Non-nil means cutting and pasting uses the clipboard.") | 174 "Non-nil means cutting and pasting uses the clipboard. |
175 This is the default on this system, since MS-Windows does not | |
176 support other types of selections." | |
177 :type 'boolean | |
178 :group 'killing) | |
175 | 179 |
176 (defun x-select-text (text &optional push) | 180 (defun x-select-text (text &optional push) |
177 (if x-select-enable-clipboard | 181 (if x-select-enable-clipboard |
178 (w16-set-clipboard-data text)) | 182 (w16-set-clipboard-data text)) |
179 (setq x-last-selected-text text)) | 183 (setq x-last-selected-text text)) |