diff options
| author | Stefan Monnier | 2007-11-09 19:41:44 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-11-09 19:41:44 +0000 |
| commit | a3ee6f08ac597e9bcd12c3759c8419a51bf603a3 (patch) | |
| tree | 1139939971ac71cacdd18b37e766037fe17f77f5 | |
| parent | c7e36bd9920ef0212078db8ab32a7e700acff460 (diff) | |
| download | emacs-a3ee6f08ac597e9bcd12c3759c8419a51bf603a3.tar.gz emacs-a3ee6f08ac597e9bcd12c3759c8419a51bf603a3.zip | |
(x-create-frame-with-faces, tty-create-frame-with-faces):
Don't set interprogram-(cut|paste)-function on each frame.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/faces.el | 9 |
2 files changed, 3 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7c60512ebc9..5876fda424f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2007-11-09 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-11-09 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * faces.el (x-create-frame-with-faces, tty-create-frame-with-faces): | ||
| 4 | Don't set interprogram-(cut|paste)-function on each frame. | ||
| 5 | |||
| 3 | * term/x-win.el (x-select-text, x-cut-buffer-or-selection-value): | 6 | * term/x-win.el (x-select-text, x-cut-buffer-or-selection-value): |
| 4 | Make them work in tty frames. | 7 | Make them work in tty frames. |
| 5 | (interprogram-cut-function, interprogram-paste-function): | 8 | (interprogram-cut-function, interprogram-paste-function): |
diff --git a/lisp/faces.el b/lisp/faces.el index 83b69ca630f..a859c2658a4 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1905,11 +1905,6 @@ Value is the new frame created." | |||
| 1905 | (x-handle-reverse-video frame parameters) | 1905 | (x-handle-reverse-video frame parameters) |
| 1906 | (frame-set-background-mode frame) | 1906 | (frame-set-background-mode frame) |
| 1907 | (face-set-after-frame-default frame) | 1907 | (face-set-after-frame-default frame) |
| 1908 | ;; Arrange for the kill and yank functions to set and check the clipboard. | ||
| 1909 | (modify-frame-parameters | ||
| 1910 | frame '((interprogram-cut-function . x-select-text))) | ||
| 1911 | (modify-frame-parameters | ||
| 1912 | frame '((interprogram-paste-function . x-cut-buffer-or-selection-value))) | ||
| 1913 | ;; Make sure the tool-bar is ready to be enabled. The | 1908 | ;; Make sure the tool-bar is ready to be enabled. The |
| 1914 | ;; `tool-bar-lines' frame parameter will not take effect | 1909 | ;; `tool-bar-lines' frame parameter will not take effect |
| 1915 | ;; without this call. | 1910 | ;; without this call. |
| @@ -2012,10 +2007,6 @@ created." | |||
| 2012 | (with-selected-frame frame | 2007 | (with-selected-frame frame |
| 2013 | (tty-handle-reverse-video frame (frame-parameters frame)) | 2008 | (tty-handle-reverse-video frame (frame-parameters frame)) |
| 2014 | 2009 | ||
| 2015 | ;; Make sure the kill and yank functions do not touch the X clipboard. | ||
| 2016 | (modify-frame-parameters frame '((interprogram-cut-function . nil))) | ||
| 2017 | (modify-frame-parameters frame '((interprogram-paste-function . nil))) | ||
| 2018 | |||
| 2019 | (unless (terminal-parameter frame 'terminal-initted) | 2010 | (unless (terminal-parameter frame 'terminal-initted) |
| 2020 | (set-terminal-parameter frame 'terminal-initted t) | 2011 | (set-terminal-parameter frame 'terminal-initted t) |
| 2021 | (set-locale-environment nil frame) | 2012 | (set-locale-environment nil frame) |