]> git.eshelyaron.com Git - emacs.git/commitdiff
(save-buffer-state): Use restore-buffer-modified-p.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 8 Feb 2002 16:50:05 +0000 (16:50 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 8 Feb 2002 16:50:05 +0000 (16:50 +0000)
(c-font-lock-syntactic-face-function): Accept doxygen-style comments.

lisp/font-lock.el

index 68acd5071c290d7c48944bb445279a101e8b4c00..0883a086685f9cdb6117e6bf6727ed2c83bf6c18 100644 (file)
@@ -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.