]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-function-on-key): Fix previous
authorDave Love <fx@gnu.org>
Wed, 13 Jan 1999 12:42:28 +0000 (12:42 +0000)
committerDave Love <fx@gnu.org>
Wed, 13 Jan 1999 12:42:28 +0000 (12:42 +0000)
change.

lisp/emacs-lisp/find-func.el

index a37e64502dce921f42f44dc7921bacbb89885a5a..3ae98c08a399f4e1a957152826456cec1d903426 100644 (file)
@@ -352,7 +352,7 @@ See `find-variable' for more details."
 Point is saved if FUNCTION is in the current buffer."
   (interactive "kFind function on key: ")
   (save-excursion
-    (let* ((event (aref key 0))
+    (let* ((event (and (eventp key) (aref key 0))) ; Null event OK below.
           (start (event-start event))
           (modifiers (event-modifiers event))
           (window (and (or (memq 'click modifiers) (memq 'down modifiers)