* lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions):
Highlight both type and symbol name.
(defun elisp--xref-find-definitions (symbol)
(save-excursion
- (let (lst)
+ (let ((fmt "(%s %s)")
+ lst)
+ (put-text-property 1 3 'face 'font-lock-keyword-face fmt)
+ (put-text-property 4 6 'face 'font-lock-function-name-face fmt)
(dolist (type '(feature defface defvar defun))
(let ((loc
(condition-case err
(xref-make-bogus-location (error-message-string err))))))
(when loc
(push
- (xref-make (format "(%s %s)" type symbol)
+ (xref-make (format fmt type symbol)
loc)
lst))))
lst)))