diff options
| author | Roland McGrath | 1994-01-06 16:49:05 +0000 |
|---|---|---|
| committer | Roland McGrath | 1994-01-06 16:49:05 +0000 |
| commit | 03dcd202f4ae02d0088c02cc0c154ed38b3f681f (patch) | |
| tree | a1b11c3060b686837c9e68bcbe7bc9bfd2a51329 | |
| parent | 51ba27e7aca87365152d38cbb18be3572b025d53 (diff) | |
| download | emacs-03dcd202f4ae02d0088c02cc0c154ed38b3f681f.tar.gz emacs-03dcd202f4ae02d0088c02cc0c154ed38b3f681f.zip | |
(mouse-menu-choose-yank): Don't use rotate-yank-pointer; set
kill-ring-yank-pointer explicitly instead.
| -rw-r--r-- | lisp/menu-bar.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 6b5d58b3712..27c309c7a46 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Author: RMS | 3 | ;; Author: RMS |
| 4 | ;; Keywords: internal | 4 | ;; Keywords: internal |
| 5 | 5 | ||
| 6 | ;; Copyright (C) 1993 Free Software Foundation, Inc. | 6 | ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
| @@ -166,7 +166,12 @@ A subsequent \\[yank] yanks the choice just selected." | |||
| 166 | ;; XXX should this perhaps do something other than simply return? -rm | 166 | ;; XXX should this perhaps do something other than simply return? -rm |
| 167 | (if arg | 167 | (if arg |
| 168 | (progn | 168 | (progn |
| 169 | (rotate-yank-pointer arg) | 169 | ;; We don't use `rotate-yank-pointer' because we want to move |
| 170 | ;; relative to the beginning of kill-ring, not the current | ||
| 171 | ;; position. Also, that would ask for any new X selection and | ||
| 172 | ;; thus change the list of items the user just chose from, which | ||
| 173 | ;; would be highly confusing. | ||
| 174 | (setq kill-ring-yank-pointer (nthcdr arg kill-ring)) | ||
| 170 | (if (interactive-p) | 175 | (if (interactive-p) |
| 171 | (message "The next yank will insert the selected text.") | 176 | (message "The next yank will insert the selected text.") |
| 172 | (current-kill 0)))))) | 177 | (current-kill 0)))))) |