diff options
| author | Jan Djärv | 2004-05-03 20:02:49 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-05-03 20:02:49 +0000 |
| commit | e43a720fd668e75234567fe43363f647ce5b8515 (patch) | |
| tree | 56ef7028526229c98e15024d0a2c88e415e47161 | |
| parent | ab2d724b88a1bb120cf6ea2664f1af1ad31c4457 (diff) | |
| download | emacs-e43a720fd668e75234567fe43363f647ce5b8515.tar.gz emacs-e43a720fd668e75234567fe43363f647ce5b8515.zip | |
* term/x-win.el (x-clipboard-yank): Don't exit on error from
x-get-selection.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8c62f23c8f0..f3a9555d10b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-05-03 Jan D. <jhd@gaffa.localdomain> | ||
| 2 | |||
| 3 | * term/x-win.el (x-clipboard-yank): Don't exit on error from | ||
| 4 | x-get-selection. | ||
| 5 | |||
| 1 | 2004-05-03 Jason Rumney <jasonr@gnu.org> | 6 | 2004-05-03 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * makefile.nt: Remove. | 8 | * makefile.nt: Remove. |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 4b419a57a97..d9700809413 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -2459,7 +2459,10 @@ order until succeed.") | |||
| 2459 | (defun x-clipboard-yank () | 2459 | (defun x-clipboard-yank () |
| 2460 | "Insert the clipboard contents, or the last stretch of killed text." | 2460 | "Insert the clipboard contents, or the last stretch of killed text." |
| 2461 | (interactive) | 2461 | (interactive) |
| 2462 | (let ((clipboard-text (x-get-selection 'CLIPBOARD)) | 2462 | (let ((clipboard-text |
| 2463 | (condition-case nil | ||
| 2464 | (x-get-selection 'CLIPBOARD) | ||
| 2465 | (error nil))) | ||
| 2463 | (x-select-enable-clipboard t)) | 2466 | (x-select-enable-clipboard t)) |
| 2464 | (if (and clipboard-text (> (length clipboard-text) 0)) | 2467 | (if (and clipboard-text (> (length clipboard-text) 0)) |
| 2465 | (kill-new clipboard-text)) | 2468 | (kill-new clipboard-text)) |