]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp-mode.el: Fix missing highlight of "hidden" string arg
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Nov 2020 16:37:00 +0000 (11:37 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Nov 2020 16:37:00 +0000 (11:37 -0500)
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2): Highlight "hidden arg" even if it
already has another face.

lisp/emacs-lisp/lisp-mode.el

index 352210f859d2ea85e39203eb3acf31a9a9b23869..268992295bf053c128b7001fbb07f32c8d9d2e6c 100644 (file)
@@ -478,7 +478,8 @@ This will generate compile-time constants from BINDINGS."
            (3 'font-lock-regexp-grouping-construct prepend))
          (lisp--match-hidden-arg
           (0 '(face font-lock-warning-face
-                    help-echo "Hidden behind deeper element; move to another line?")))
+               help-echo "Hidden behind deeper element; move to another line?")
+             prepend))
          (lisp--match-confusable-symbol-character
           0 '(face font-lock-warning-face
                     help-echo "Confusable character"))
@@ -522,7 +523,8 @@ This will generate compile-time constants from BINDINGS."
            (1 font-lock-keyword-face))
          (lisp--match-hidden-arg
           (0 '(face font-lock-warning-face
-               help-echo "Hidden behind deeper element; move to another line?")))
+               help-echo "Hidden behind deeper element; move to another line?")
+             prepend))
          ))
       "Gaudy level highlighting for Lisp modes.")))