]> code.delx.au - gnu-emacs/commitdiff
Fix regression in font-locking cl-assert and cl-check-type
authorLeo Liu <sdl.web@gmail.com>
Sat, 2 Jan 2016 07:48:44 +0000 (15:48 +0800)
committerLeo Liu <sdl.web@gmail.com>
Sat, 2 Jan 2016 07:48:44 +0000 (15:48 +0800)
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Fix
  el-errs-re.

lisp/emacs-lisp/lisp-mode.el

index 4bb1466c930f8b9634fc5e888d8f36f9012a87af..574ecef0cde4cc5e40aeee636d0cb9c900467ac1 100644 (file)
@@ -383,7 +383,8 @@ This will generate compile-time constants from BINDINGS."
                      ((eq type 'type) font-lock-type-face)
                      ((or (not (match-string 2)) ;; Normal defun.
                           (and (match-string 2)  ;; Setf function.
-                               (match-string 4))) font-lock-function-name-face)))
+                               (match-string 4)))
+                      font-lock-function-name-face)))
              nil t)))
       "Subdued level highlighting for Lisp modes.")
 
@@ -403,7 +404,7 @@ This will generate compile-time constants from BINDINGS."
            (2 font-lock-constant-face nil t))
          ;; Erroneous structures.
          (,(concat "(" el-errs-re "\\_>")
-           (1 font-lock-warning-face))
+          (1 font-lock-warning-face prepend))
          ;; Words inside \\[] tend to be for `substitute-command-keys'.
          (,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]")
           (1 font-lock-constant-face prepend))