diff options
| author | Richard M. Stallman | 2008-03-13 15:29:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2008-03-13 15:29:18 +0000 |
| commit | 4587349a792b5ffa10f075877ef53b6827db6400 (patch) | |
| tree | d24a5713fe3eef81c88681d873f748a82adb4261 | |
| parent | 7aefbb0613d601a127cd7a5f6131ee93fa70db83 (diff) | |
| download | emacs-4587349a792b5ffa10f075877ef53b6827db6400.tar.gz emacs-4587349a792b5ffa10f075877ef53b6827db6400.zip | |
(mouse-yank-secondary): Nice error msg if no secondary sel.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/mouse.el | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c7925e1cd2d..1b0026bfc21 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-03-13 Richard Stallman <rms@gnu.org> | 1 | 2008-03-13 Richard Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * mouse.el (mouse-yank-secondary): Nice error msg if no secondary sel. | ||
| 4 | |||
| 3 | * emacs-lisp/advice.el (defadvice): Add usage pattern. | 5 | * emacs-lisp/advice.el (defadvice): Add usage pattern. |
| 4 | 6 | ||
| 5 | 2008-03-11 Chong Yidong <cyd@stupidchicken.com> | 7 | 2008-03-11 Chong Yidong <cyd@stupidchicken.com> |
diff --git a/lisp/mouse.el b/lisp/mouse.el index 27bf00ce267..d0ce18dc519 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1642,7 +1642,10 @@ regardless of where you click." | |||
| 1642 | ;; Give temporary modes such as isearch a chance to turn off. | 1642 | ;; Give temporary modes such as isearch a chance to turn off. |
| 1643 | (run-hooks 'mouse-leave-buffer-hook) | 1643 | (run-hooks 'mouse-leave-buffer-hook) |
| 1644 | (or mouse-yank-at-point (mouse-set-point click)) | 1644 | (or mouse-yank-at-point (mouse-set-point click)) |
| 1645 | (insert (x-get-selection 'SECONDARY))) | 1645 | (let ((secondary (x-get-selection 'SECONDARY))) |
| 1646 | (if secondary | ||
| 1647 | (insert (x-get-selection 'SECONDARY)) | ||
| 1648 | (error "No secondary selection")))) | ||
| 1646 | 1649 | ||
| 1647 | (defun mouse-kill-secondary () | 1650 | (defun mouse-kill-secondary () |
| 1648 | "Kill the text in the secondary selection. | 1651 | "Kill the text in the secondary selection. |