Further lisp-current-defun-name tweaks
* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): Tweak so that cl-defmethod and friends work again.
This commit is contained in:
parent
5269842833
commit
b2bf91003d
1 changed files with 1 additions and 1 deletions
|
@ -774,7 +774,7 @@ decided heuristically.)"
|
|||
;; name). If the symbol starts with \"def\", then it's
|
||||
;; likely that the next symbol is the name.
|
||||
(when (and (not name)
|
||||
(string-match-p "\\`def" (symbol-name symbol)))
|
||||
(string-match-p "\\(\\`\\|-\\)def" (symbol-name symbol)))
|
||||
(when-let ((candidate (ignore-errors (read (current-buffer)))))
|
||||
(cond
|
||||
((symbolp candidate)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue