]> git.eshelyaron.com Git - emacs.git/commitdiff
Another lisp-current-defun-name tweak
authorMichael Heerdegen <michael_heerdegen@web.de>
Tue, 9 Aug 2022 01:55:14 +0000 (03:55 +0200)
committerMichael Heerdegen <michael_heerdegen@web.de>
Tue, 9 Aug 2022 02:01:29 +0000 (04:01 +0200)
* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): Avoid error
when edebug spec is the symbol t.

lisp/emacs-lisp/lisp-mode.el

index 82afa31ef12e1a2e2a11d57de68ef4d68def9ee1..1bc2c0ece6d93c1515122da4107f7a9d8f6b4188 100644 (file)
@@ -762,7 +762,7 @@ decided heuristically.)"
           (when symbol
             (let ((spec (get symbol 'edebug-form-spec)))
               (save-excursion
-                (when (and (eq (car spec) '&define)
+                (when (and (eq (car-safe spec) '&define)
                            (memq 'name spec))
                   (pop spec)
                   (while (and spec (not name))