mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-23 22:20:24 -08:00
(find-function-on-key): Don't discard up event after down event.
This commit is contained in:
parent
1674d9a28b
commit
8b0697787a
1 changed files with 0 additions and 8 deletions
|
|
@ -250,14 +250,6 @@ defined is searched in PATH instead of `load-path'"
|
|||
"Find the function that KEY invokes. KEY is a string.
|
||||
Point is saved if FUNCTION is in the current buffer."
|
||||
(interactive "kFind function on key: ")
|
||||
;; If this key seq ends with a down event, discard the
|
||||
;; following click or drag event. Otherwise that would
|
||||
;; erase an eventual message.
|
||||
(let ((type (aref key (1- (length key)))))
|
||||
(if (listp type) (setq type (car type)))
|
||||
(and (symbolp type)
|
||||
(memq 'down (event-modifiers type))
|
||||
(read-event)))
|
||||
(save-excursion
|
||||
(let ((modifiers (event-modifiers (aref key 0)))
|
||||
window position)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue