From ba460008557668623a5fbcf92bb6c33abb86f144 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 8 Feb 2002 16:50:05 +0000 Subject: [PATCH] (save-buffer-state): Use restore-buffer-modified-p. (c-font-lock-syntactic-face-function): Accept doxygen-style comments. --- lisp/font-lock.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 68acd5071c2..0883a086685 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -683,8 +683,8 @@ Major/minor modes can set this variable if they know which option applies.") (inhibit-modification-hooks t) deactivate-mark buffer-file-name buffer-file-truename)) ,@body - (when (and (not modified) (buffer-modified-p)) - (set-buffer-modified-p nil)))) + (unless modified + (restore-buffer-modified-p nil)))) (put 'save-buffer-state 'lisp-indent-function 1) (def-edebug-spec save-buffer-state let) ;; @@ -2405,7 +2405,9 @@ See also `c-font-lock-extra-types'.")) font-lock-warning-face font-lock-string-face)) (goto-char (nth 8 state)) - (if (looking-at "/\\*\\*\n") font-lock-doc-face font-lock-comment-face)))) + ;; `doxygen' uses /*! while others use /**. + (if (looking-at "/\\*[*!]\n") + font-lock-doc-face font-lock-comment-face)))) (defvar c-font-lock-keywords c-font-lock-keywords-1 "Default expressions to highlight in C mode. -- 2.39.5