projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
871f0f0
)
Fix font-locking of (defun foo (function ...))
author
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 20 May 2022 01:46:35 +0000
(
03:46
+0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 20 May 2022 01:46:35 +0000
(
03:46
+0200)
* lisp/emacs-lisp/lisp-mode.el (lisp--el-funcall-position-p):
Don't colorize the `function' in (defun foo (function ...)) as a
special form (bug#37074).
lisp/emacs-lisp/lisp-mode.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/lisp-mode.el
b/lisp/emacs-lisp/lisp-mode.el
index 5dd2f5162ed90af9b12bc8953dab022a52312c2d..5b93f145e899993acd4768cbe378535e83bb49b5 100644
(file)
--- a/
lisp/emacs-lisp/lisp-mode.el
+++ b/
lisp/emacs-lisp/lisp-mode.el
@@
-244,6
+244,9
@@
('let
(forward-sexp 1)
(>= pos (point)))
+ ((or 'defun 'defmacro 'cl-defmethod 'cl-defun)
+ (forward-sexp 2)
+ (>= pos (point)))
('condition-case
;; If (cdr paren-posns), then we're in the BODY
;; of HANDLERS.