aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2007-08-10 08:20:20 +0000
committerStefan Monnier2007-08-10 08:20:20 +0000
commit5bdc71d0cd0dde41c781591951695cf509585f78 (patch)
treecbcf34fd042d45a60db108a75ddecdff826282c0 /lisp
parenta22dec271e8bb8be08a87e9aad39bb59ffb4d284 (diff)
downloademacs-5bdc71d0cd0dde41c781591951695cf509585f78.tar.gz
emacs-5bdc71d0cd0dde41c781591951695cf509585f78.zip
(log-view-font-lock-keywords): Use `eval' so as to adapt to buffer settings.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/log-view.el20
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 43508f79101..713ad4d3bf6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12007-08-10 Stefan Monnier <monnier@iro.umontreal.ca> 12007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * log-view.el (log-view-font-lock-keywords): Use `eval' so as to adapt
4 to buffer-local settings.
5
3 * emacs-lisp/backquote.el (backquote-delay-process): New function. 6 * emacs-lisp/backquote.el (backquote-delay-process): New function.
4 (backquote-process): Add internal arg `level'. Use the two to 7 (backquote-process): Add internal arg `level'. Use the two to
5 correctly handle nested backquotes. 8 correctly handle nested backquotes.
diff --git a/lisp/log-view.el b/lisp/log-view.el
index 6a1fc9a11b1..41e689f0025 100644
--- a/lisp/log-view.el
+++ b/lisp/log-view.el
@@ -160,14 +160,18 @@
160 (concat "\\|[^ \n].*[^0-9\n][0-9][0-9]:[0-9][0-9][^0-9\n].*[^ \n]" 160 (concat "\\|[^ \n].*[^0-9\n][0-9][0-9]:[0-9][0-9][^0-9\n].*[^ \n]"
161 ;;Email of user and finally Msg, used as revision name. 161 ;;Email of user and finally Msg, used as revision name.
162 " .*@.*\n\\(?: \\* \\(.*\\)\\)?") 162 " .*@.*\n\\(?: \\* \\(.*\\)\\)?")
163 "\\)$")) 163 "\\)$")
164 164 "Regexp matching the text identifying a revision.")
165(defconst log-view-font-lock-keywords 165
166 `((,log-view-file-re 166(defvar log-view-font-lock-keywords
167 (1 (if (boundp 'cvs-filename-face) cvs-filename-face) nil t) 167 ;; We use `eval' so as to use the buffer-local value of log-view-file-re
168 (2 (if (boundp 'cvs-filename-face) cvs-filename-face) nil t) 168 ;; and log-view-message-re, if applicable.
169 (0 log-view-file-face append)) 169 '((eval . `(,log-view-file-re
170 (,log-view-message-re . log-view-message-face))) 170 (1 (if (boundp 'cvs-filename-face) cvs-filename-face) nil t)
171 (2 (if (boundp 'cvs-filename-face) cvs-filename-face) nil t)
172 (0 log-view-file-face append)))
173 (eval . `(,log-view-message-re . log-view-message-face))))
174
171(defconst log-view-font-lock-defaults 175(defconst log-view-font-lock-defaults
172 '(log-view-font-lock-keywords t nil nil nil)) 176 '(log-view-font-lock-keywords t nil nil nil))
173 177