diff options
| author | Glenn Morris | 2003-08-06 10:10:46 +0000 |
|---|---|---|
| committer | Glenn Morris | 2003-08-06 10:10:46 +0000 |
| commit | 3d880a4b894daa1c0f7068e8e2b59634046bcb3b (patch) | |
| tree | 5388244c5db20fde33e21a4d021cd1aa21d941db | |
| parent | e37769b1fccb81ea65faf3670c9a60c96f9ce2f8 (diff) | |
| download | emacs-3d880a4b894daa1c0f7068e8e2b59634046bcb3b.tar.gz emacs-3d880a4b894daa1c0f7068e8e2b59634046bcb3b.zip | |
(list-diary-entries-hook, diary-display-hook, nongregorian-diary-listing-hook)
(mark-diary-entries-hook, nongregorian-diary-marking-hook): Add some
customize options for these hooks.
(calendar-abbrev-construct): Don't try to take a substring longer than
the original string.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 13 |
2 files changed, 19 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bcf09a81bba..2d6e31a44b7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2003-08-06 Glenn Morris <gmorris@ast.cam.ac.uk> | ||
| 2 | |||
| 3 | * calendar/calendar.el (list-diary-entries-hook) | ||
| 4 | (diary-display-hook, nongregorian-diary-listing-hook) | ||
| 5 | (mark-diary-entries-hook, nongregorian-diary-marking-hook): Add | ||
| 6 | some customize options for these hooks. | ||
| 7 | (calendar-abbrev-construct): Don't try to take a substring longer | ||
| 8 | than the original string. | ||
| 9 | |||
| 1 | 2003-08-05 Richard M. Stallman <rms@gnu.org> | 10 | 2003-08-05 Richard M. Stallman <rms@gnu.org> |
| 2 | 11 | ||
| 3 | * emacs-lisp/testcover.el (noreturn): Report error if does return. | 12 | * emacs-lisp/testcover.el (noreturn): Report error if does return. |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 88d389072c2..e99e0b09d51 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -753,6 +753,7 @@ in your `.emacs' file to cause the fancy diary buffer to be displayed with | |||
| 753 | diary entries from various included files, each day's entries sorted into | 753 | diary entries from various included files, each day's entries sorted into |
| 754 | lexicographic order." | 754 | lexicographic order." |
| 755 | :type 'hook | 755 | :type 'hook |
| 756 | :options '(include-other-diary-files sort-diary-entries) | ||
| 756 | :group 'diary) | 757 | :group 'diary) |
| 757 | 758 | ||
| 758 | ;;;###autoload | 759 | ;;;###autoload |
| @@ -785,6 +786,7 @@ diary buffer will not show days for which there are no diary entries, even | |||
| 785 | if that day is a holiday; if you want such days to be shown in the fancy | 786 | if that day is a holiday; if you want such days to be shown in the fancy |
| 786 | diary buffer, set the variable `diary-list-include-blanks' to t." | 787 | diary buffer, set the variable `diary-list-include-blanks' to t." |
| 787 | :type 'hook | 788 | :type 'hook |
| 789 | :options '(fancy-diary-display) | ||
| 788 | :group 'diary) | 790 | :group 'diary) |
| 789 | 791 | ||
| 790 | ;;;###autoload | 792 | ;;;###autoload |
| @@ -795,6 +797,7 @@ relevant entries. You can use either or both of `list-hebrew-diary-entries' | |||
| 795 | and `list-islamic-diary-entries'. The documentation for these functions | 797 | and `list-islamic-diary-entries'. The documentation for these functions |
| 796 | describes the style of such diary entries." | 798 | describes the style of such diary entries." |
| 797 | :type 'hook | 799 | :type 'hook |
| 800 | :options '(list-hebrew-diary-entries list-islamic-diary-entries) | ||
| 798 | :group 'diary) | 801 | :group 'diary) |
| 799 | 802 | ||
| 800 | ;;;###autoload | 803 | ;;;###autoload |
| @@ -812,6 +815,7 @@ variable `diary-include-string'. When you use `mark-included-diary-files' as | |||
| 812 | part of the mark-diary-entries-hook, you will probably also want to use the | 815 | part of the mark-diary-entries-hook, you will probably also want to use the |
| 813 | function `include-other-diary-files' as part of `list-diary-entries-hook'." | 816 | function `include-other-diary-files' as part of `list-diary-entries-hook'." |
| 814 | :type 'hook | 817 | :type 'hook |
| 818 | :options '(mark-included-diary-files) | ||
| 815 | :group 'diary) | 819 | :group 'diary) |
| 816 | 820 | ||
| 817 | ;;;###autoload | 821 | ;;;###autoload |
| @@ -822,6 +826,7 @@ relevant entries. You can use either or both of `mark-hebrew-diary-entries' | |||
| 822 | and `mark-islamic-diary-entries'. The documentation for these functions | 826 | and `mark-islamic-diary-entries'. The documentation for these functions |
| 823 | describes the style of such diary entries." | 827 | describes the style of such diary entries." |
| 824 | :type 'hook | 828 | :type 'hook |
| 829 | :options '(mark-hebrew-diary-entries mark-islamic-diary-entries) | ||
| 825 | :group 'diary) | 830 | :group 'diary) |
| 826 | 831 | ||
| 827 | ;;;###autoload | 832 | ;;;###autoload |
| @@ -2564,10 +2569,12 @@ of full names. The return value is the ABBREV array, with any nil | |||
| 2564 | elements replaced by the first three characters taken from the | 2569 | elements replaced by the first three characters taken from the |
| 2565 | corresponding element of FULL. If optional argument PERIOD is non-nil, | 2570 | corresponding element of FULL. If optional argument PERIOD is non-nil, |
| 2566 | each element returned has a final `.' character." | 2571 | each element returned has a final `.' character." |
| 2567 | (let (elem array) | 2572 | (let (elem array name) |
| 2568 | (dotimes (i (length full)) | 2573 | (dotimes (i (length full)) |
| 2569 | (setq elem (or (aref abbrev i) | 2574 | (setq name (aref full i) |
| 2570 | (substring (aref full i) 0 calendar-abbrev-length)) | 2575 | elem (or (aref abbrev i) |
| 2576 | (substring name 0 | ||
| 2577 | (min calendar-abbrev-length (length name)))) | ||
| 2571 | elem (format "%s%s" elem (if period "." "")) | 2578 | elem (format "%s%s" elem (if period "." "")) |
| 2572 | array (append array (list elem)))) | 2579 | array (append array (list elem)))) |
| 2573 | (vconcat array))) | 2580 | (vconcat array))) |