* lisp/font-lock.el (lisp-font-lock-keywords-2): Treat user-error like error
authorGlenn Morris <rgm@gnu.org>
Thu, 6 Jun 2013 21:35:45 +0000 (17:35 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 6 Jun 2013 21:35:45 +0000 (17:35 -0400)
lisp/ChangeLog
lisp/font-lock.el

index 8630d47..bb5f3f5 100644 (file)
@@ -1,5 +1,8 @@
 2013-06-06  Glenn Morris  <rgm@gnu.org>
 
+       * font-lock.el (lisp-font-lock-keywords-2):
+       Treat user-error like error.
+
        * emacs-lisp/bytecomp.el (byte-compile-char-before)
        (byte-compile-backward-char, byte-compile-backward-word):
        Handle explicit nil arguments.  (Bug#14565)
index d18aea6..8f4363b 100644 (file)
@@ -2328,7 +2328,7 @@ in which C preprocessor directives are used. e.g. `asm-mode' and
        (1 font-lock-keyword-face)
        (2 font-lock-constant-face nil t))
        ;; Erroneous structures.
-       ("(\\(abort\\|assert\\|warn\\|check-type\\|cerror\\|error\\|signal\\)\\_>" 1 font-lock-warning-face)
+       ("(\\(abort\\|assert\\|warn\\|check-type\\|cerror\\|\\(?:user-\\)?error\\|signal\\)\\_>" 1 font-lock-warning-face)
        ;; Words inside \\[] tend to be for `substitute-command-keys'.
        ("\\\\\\\\\\[\\(\\(?:\\sw\\|\\s_\\)+\\)\\]"
         (1 font-lock-constant-face prepend))