diff options
| author | Glenn Morris | 2007-04-07 21:53:39 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-04-07 21:53:39 +0000 |
| commit | 109eecc05898a604124d1f5ce60ad43c01c2a52e (patch) | |
| tree | a0370fa6ea4222417148e7ba9dff12af88a0bc75 | |
| parent | 2ca695f23af1698dace6a90294e9cc69f1d81fa8 (diff) | |
| download | emacs-109eecc05898a604124d1f5ce60ad43c01c2a52e.tar.gz emacs-109eecc05898a604124d1f5ce60ad43c01c2a52e.zip | |
(diary-font-lock-keywords, diary-live-p): Autoload these functions.
(diary-date-forms): Add a custom :set form.
| -rw-r--r-- | lisp/calendar/calendar.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 18037e9b794..78f0ad115ec 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -629,6 +629,10 @@ See the documentation of `diary-date-forms' for an explanation." | |||
| 629 | (choice symbol regexp))))) | 629 | (choice symbol regexp))))) |
| 630 | :group 'diary) | 630 | :group 'diary) |
| 631 | 631 | ||
| 632 | (autoload 'diary-font-lock-keywords "diary-lib") | ||
| 633 | (autoload 'diary-live-p "diary-lib") | ||
| 634 | (defvar diary-font-lock-keywords) | ||
| 635 | |||
| 632 | (defcustom diary-date-forms | 636 | (defcustom diary-date-forms |
| 633 | (if european-calendar-style | 637 | (if european-calendar-style |
| 634 | european-date-diary-pattern | 638 | european-date-diary-pattern |
| @@ -666,6 +670,15 @@ a portion of the first word of the diary entry." | |||
| 666 | (repeat (list :inline t :format "%v" | 670 | (repeat (list :inline t :format "%v" |
| 667 | (symbol :tag "Keyword") | 671 | (symbol :tag "Keyword") |
| 668 | (choice symbol regexp))))) | 672 | (choice symbol regexp))))) |
| 673 | :initialize 'custom-initialize-default | ||
| 674 | :set (lambda (symbol value) | ||
| 675 | (unless (equal value (eval symbol)) | ||
| 676 | (custom-set-default symbol value) | ||
| 677 | (setq diary-font-lock-keywords (diary-font-lock-keywords)) | ||
| 678 | ;; Need to redraw not just to get new font-locking, but also | ||
| 679 | ;; to pick up any newly recognized entries. | ||
| 680 | (and (diary-live-p) | ||
| 681 | (diary)))) | ||
| 669 | :group 'diary) | 682 | :group 'diary) |
| 670 | 683 | ||
| 671 | ;;;###autoload | 684 | ;;;###autoload |