diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/log-view.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/log-view.el b/lisp/log-view.el index bf029045a8c..5962c216624 100644 --- a/lisp/log-view.el +++ b/lisp/log-view.el | |||
| @@ -128,13 +128,13 @@ | |||
| 128 | (put 'log-view-message-face 'face-alias 'log-view-message) | 128 | (put 'log-view-message-face 'face-alias 'log-view-message) |
| 129 | (defvar log-view-message-face 'log-view-message) | 129 | (defvar log-view-message-face 'log-view-message) |
| 130 | 130 | ||
| 131 | (defconst log-view-file-re | 131 | (defvar log-view-file-re |
| 132 | (concat "^\\(?:Working file: \\(?1:.+\\)" ;RCS and CVS. | 132 | (concat "^\\(?:Working file: \\(?1:.+\\)" ;RCS and CVS. |
| 133 | ;; Subversion has no such thing?? | 133 | ;; Subversion has no such thing?? |
| 134 | "\\|\\(?:SCCS/s\\.\\|Changes to \\)\\(?1:.+\\):" ;SCCS and Darcs. | 134 | "\\|\\(?:SCCS/s\\.\\|Changes to \\)\\(?1:.+\\):" ;SCCS and Darcs. |
| 135 | "\\)\n")) ;Include the \n for font-lock reasons. | 135 | "\\)\n")) ;Include the \n for font-lock reasons. |
| 136 | 136 | ||
| 137 | (defconst log-view-message-re | 137 | (defvar log-view-message-re |
| 138 | (concat "^\\(?:revision \\(?1:[.0-9]+\\)\\(?:\t.*\\)?" ; RCS and CVS. | 138 | (concat "^\\(?:revision \\(?1:[.0-9]+\\)\\(?:\t.*\\)?" ; RCS and CVS. |
| 139 | "\\|r\\(?1:[0-9]+\\) | .* | .*" ; Subversion. | 139 | "\\|r\\(?1:[0-9]+\\) | .* | .*" ; Subversion. |
| 140 | "\\|D \\(?1:[.0-9]+\\) .*" ; SCCS. | 140 | "\\|D \\(?1:[.0-9]+\\) .*" ; SCCS. |
| @@ -149,11 +149,13 @@ | |||
| 149 | " .*@.*\n\\(?: \\* \\(?1:.*\\)\\)?") | 149 | " .*@.*\n\\(?: \\* \\(?1:.*\\)\\)?") |
| 150 | "\\)$")) | 150 | "\\)$")) |
| 151 | 151 | ||
| 152 | (defconst log-view-font-lock-keywords | 152 | (defvar log-view-font-lock-keywords |
| 153 | `((,log-view-file-re | 153 | ;; We use `eval' so as to use the buffer-local value of log-view-file-re |
| 154 | (1 (if (boundp 'cvs-filename-face) cvs-filename-face)) | 154 | ;; and log-view-message-re, if applicable. |
| 155 | (0 log-view-file-face append)) | 155 | '((eval . `(,log-view-file-re |
| 156 | (,log-view-message-re . log-view-message-face))) | 156 | (1 (if (boundp 'cvs-filename-face) cvs-filename-face)) |
| 157 | (0 log-view-file-face append))) | ||
| 158 | (eval . `(,log-view-message-re . log-view-message-face)))) | ||
| 157 | (defconst log-view-font-lock-defaults | 159 | (defconst log-view-font-lock-defaults |
| 158 | '(log-view-font-lock-keywords t nil nil nil)) | 160 | '(log-view-font-lock-keywords t nil nil nil)) |
| 159 | 161 | ||