diff options
| author | Glenn Morris | 2011-02-03 19:23:55 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-03 19:23:55 -0800 |
| commit | 9ad53e98fd3ac179a8498e867f7fc59bd9de0de3 (patch) | |
| tree | 37a76bf48fbfd0a1e93dfbaf74c45df108c9dfb4 | |
| parent | 9783df21c07728e68b59d380052ed9014f299f17 (diff) | |
| download | emacs-9ad53e98fd3ac179a8498e867f7fc59bd9de0de3.tar.gz emacs-9ad53e98fd3ac179a8498e867f7fc59bd9de0de3.zip | |
diary-lib.el fix for bug#7891.
* lisp/calendar/diary-lib.el (diary-font-lock-keywords):
Tweak diary-time-regexp match.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 58d30fc5007..93eaffde2cf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-02-04 Glenn Morris <rgm@gnu.org> | 1 | 2011-02-04 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * calendar/diary-lib.el (diary-font-lock-keywords): | ||
| 4 | Tweak diary-time-regexp match. (Bug#7891) | ||
| 5 | |||
| 3 | * progmodes/f90.el (f90-find-tag-default): New function. (Bug#7919) | 6 | * progmodes/f90.el (f90-find-tag-default): New function. (Bug#7919) |
| 4 | (f90-mode): Use it for mode's `find-tag-default-function' property. | 7 | (f90-mode): Use it for mode's `find-tag-default-function' property. |
| 5 | 8 | ||
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index f35f37e29ad..42080cd7eda 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -2312,9 +2312,19 @@ return a font-lock pattern matching array of MONTHS and marking SYMBOL." | |||
| 2312 | t)) | 2312 | t)) |
| 2313 | '(1 font-lock-reference-face)) | 2313 | '(1 font-lock-reference-face)) |
| 2314 | '(diary-font-lock-sexps . font-lock-keyword-face) | 2314 | '(diary-font-lock-sexps . font-lock-keyword-face) |
| 2315 | ;; Don't need to worry about space around "-" because the first | ||
| 2316 | ;; match takes care of that. It does mean the "-" itself may or | ||
| 2317 | ;; may not be fontified though. | ||
| 2318 | ;; diary-date-forms often include a final character that is not | ||
| 2319 | ;; part of the date (eg a non-digit to mark the end of the year). | ||
| 2320 | ;; This can use up the only space char between a date and time (b#7891). | ||
| 2321 | ;; Hence we use OVERRIDE, which can only override whitespace. | ||
| 2322 | ;; FIXME it's probably better to tighten up the diary-time-regexp | ||
| 2323 | ;; and drop the whitespace requirement below. | ||
| 2315 | `(,(format "\\(^\\|\\s-\\)%s\\(-%s\\)?" diary-time-regexp | 2324 | `(,(format "\\(^\\|\\s-\\)%s\\(-%s\\)?" diary-time-regexp |
| 2316 | diary-time-regexp) | 2325 | diary-time-regexp) |
| 2317 | . 'diary-time)))) | 2326 | . (0 'diary-time t))))) |
| 2327 | ; . 'diary-time)))) | ||
| 2318 | 2328 | ||
| 2319 | (defvar diary-font-lock-keywords (diary-font-lock-keywords) | 2329 | (defvar diary-font-lock-keywords (diary-font-lock-keywords) |
| 2320 | "Forms to highlight in `diary-mode'.") | 2330 | "Forms to highlight in `diary-mode'.") |