Mercurial > emacs
comparison lisp/help.el @ 69077:f8759a14f4cd
(describe-key-briefly): Compute interactive args
in same was as before previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 21 Feb 2006 19:51:37 +0000 |
parents | 9cc0a5b4b6e7 |
children | 2d354b7c7fb4 d1c5430c5bff |
comparison
equal
deleted
inserted
replaced
69076:c878e8baaab0 | 69077:f8759a14f4cd |
---|---|
577 (setq saved-yank-menu (copy-sequence yank-menu)) | 577 (setq saved-yank-menu (copy-sequence yank-menu)) |
578 (menu-bar-update-yank-menu "(any string)" nil)) | 578 (menu-bar-update-yank-menu "(any string)" nil)) |
579 (setq key (read-key-sequence "Describe key (or click or menu item): ")) | 579 (setq key (read-key-sequence "Describe key (or click or menu item): ")) |
580 (list | 580 (list |
581 key | 581 key |
582 (prefix-numeric-value current-prefix-arg) | 582 (if current-prefix-arg (prefix-numeric-value current-prefix-arg)) |
583 ;; If KEY is a down-event, read the corresponding up-event | 583 1)) |
584 ;; and use it as the third argument. | |
585 (if (and (consp key) (symbolp (car key)) | |
586 (memq 'down (cdr (get (car key) 'event-symbol-elements)))) | |
587 (read-event)))) | |
588 ;; Put yank-menu back as it was, if we changed it. | 584 ;; Put yank-menu back as it was, if we changed it. |
589 (when saved-yank-menu | 585 (when saved-yank-menu |
590 (setq yank-menu (copy-sequence saved-yank-menu)) | 586 (setq yank-menu (copy-sequence saved-yank-menu)) |
591 (fset 'yank-menu (cons 'keymap yank-menu)))))) | 587 (fset 'yank-menu (cons 'keymap yank-menu)))))) |
592 (if (numberp untranslated) | 588 (if (numberp untranslated) |