aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-07 09:53:28 +0000
committerRichard M. Stallman1994-10-07 09:53:28 +0000
commit5f56271901eba3fa16e003ba88cbe65afc5bd157 (patch)
tree8260114e50921cef0ca90df69fe004d082e38262
parent9af0d3093f3d228405e8dd65a1873a0261fb58ca (diff)
downloademacs-5f56271901eba3fa16e003ba88cbe65afc5bd157.tar.gz
emacs-5f56271901eba3fa16e003ba88cbe65afc5bd157.zip
(change-log-mode): Set font-lock-keywords locally.
(change-log-font-lock-keywords): New variable.
-rw-r--r--lisp/add-log.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el
index faa46cc3c9d..b2074ef7559 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -43,6 +43,12 @@ This defaults to the value returned by the `user-full-name' function.")
43 "*Electronic mail address of user, for inclusion in ChangeLog daily headers. 43 "*Electronic mail address of user, for inclusion in ChangeLog daily headers.
44This defaults to the value of `user-mail-address'.") 44This defaults to the value of `user-mail-address'.")
45 45
46(defvar change-log-font-lock-keywords
47 '(("^[SMTWF].+$" . font-lock-function-name-face) ; Date line.
48 ("^\t\\* \\([^ :\n]+\\)" 1 font-lock-comment-face) ; File name.
49 ("\(\\([^)\n]+\\)\)" 1 font-lock-keyword-face)) ; Function name.
50 "Additional expressions to highlight in Change Log mode.")
51
46(defun change-log-name () 52(defun change-log-name ()
47 (or change-log-default-name 53 (or change-log-default-name
48 (if (eq system-type 'vax-vms) 54 (if (eq system-type 'vax-vms)
@@ -259,6 +265,7 @@ Runs `change-log-mode-hook'."
259 (set (make-local-variable 'page-delimiter) "^\\<\\|^\f") 265 (set (make-local-variable 'page-delimiter) "^\\<\\|^\f")
260 (set (make-local-variable 'version-control) 'never) 266 (set (make-local-variable 'version-control) 'never)
261 (set (make-local-variable 'adaptive-fill-regexp) "\\s *") 267 (set (make-local-variable 'adaptive-fill-regexp) "\\s *")
268 (set (make-local-variable 'font-lock-keywords) change-log-font-lock-keywords)
262 (run-hooks 'change-log-mode-hook)) 269 (run-hooks 'change-log-mode-hook))
263 270
264(defvar change-log-mode-map nil 271(defvar change-log-mode-map nil