mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 23:31:55 -08:00
Fix default candidate of find-face-definition
* lisp/emacs-lisp/find-func.el (find-function-read): Use face-at-point instead of variable-at-point for faces. (bug#31699)
This commit is contained in:
parent
c67befd662
commit
c8dd1bc0fb
1 changed files with 1 additions and 0 deletions
|
|
@ -466,6 +466,7 @@ If TYPE is nil, defaults using `function-called-at-point',
|
|||
otherwise uses `variable-at-point'."
|
||||
(let* ((symb1 (cond ((null type) (function-called-at-point))
|
||||
((eq type 'defvar) (variable-at-point))
|
||||
((eq type 'defface) (face-at-point t))
|
||||
(t (variable-at-point t))))
|
||||
(symb (unless (eq symb1 0) symb1))
|
||||
(predicate (cdr (assq type '((nil . fboundp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue