Mercurial > emacs
comparison lisp/calendar/diary-lib.el @ 93741:58fa6a764efb
Update for hebrew name changes.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 05 Apr 2008 20:58:26 +0000 |
parents | e0e1ee825fb6 |
children | 243401294d46 |
comparison
equal
deleted
inserted
replaced
93740:61bda7ffa0b8 | 93741:58fa6a764efb |
---|---|
164 | 164 |
165 (defcustom nongregorian-diary-listing-hook nil | 165 (defcustom nongregorian-diary-listing-hook nil |
166 "List of functions called for listing diary file and included files. | 166 "List of functions called for listing diary file and included files. |
167 As the files are processed for diary entries, these functions are used | 167 As the files are processed for diary entries, these functions are used |
168 to cull relevant entries. You can use any or all of | 168 to cull relevant entries. You can use any or all of |
169 `list-hebrew-diary-entries', `diary-islamic-list-entries' and | 169 `diary-bahai-list-entries', `diary-hebrew-list-entries', and |
170 `diary-bahai-list-entries'. The documentation for these functions | 170 `diary-islamic-list-entries'. The documentation for these functions |
171 describes the style of such diary entries." | 171 describes the style of such diary entries." |
172 :type 'hook | 172 :type 'hook |
173 :options '(list-hebrew-diary-entries | 173 :options '(diary-bahai-list-entries |
174 diary-islamic-list-entries | 174 diary-hebrew-list-entries |
175 diary-bahai-list-entries) | 175 diary-islamic-list-entries) |
176 :group 'diary) | 176 :group 'diary) |
177 | 177 |
178 (defcustom nongregorian-diary-marking-hook nil | 178 (defcustom nongregorian-diary-marking-hook nil |
179 "List of functions called for marking diary file and included files. | 179 "List of functions called for marking diary file and included files. |
180 As the files are processed for diary entries, these functions are used | 180 As the files are processed for diary entries, these functions are used |
181 to cull relevant entries. You can use any or all of | 181 to cull relevant entries. You can use any or all of |
182 `mark-hebrew-diary-entries', `diary-islamic-mark-entries' and | 182 `diary-bahai-mark-entries', `diary-hebrew-mark-entries' and |
183 `bahai-mark-diary-entries'. The documentation for these functions | 183 `diary-islamic-mark-entries'. The documentation for these functions |
184 describes the style of such diary entries." | 184 describes the style of such diary entries." |
185 :type 'hook | 185 :type 'hook |
186 :options '(mark-hebrew-diary-entries | 186 :options '(diary-bahai-mark-entries |
187 diary-islamic-mark-entries | 187 diary-hebrew-mark-entries |
188 diary-bahai-mark-entries) | 188 diary-islamic-mark-entries) |
189 :group 'diary) | 189 :group 'diary) |
190 | 190 |
191 (defcustom print-diary-entries-hook 'lpr-buffer | 191 (defcustom print-diary-entries-hook 'lpr-buffer |
192 "Run by `print-diary-entries' after preparing a temporary diary buffer. | 192 "Run by `print-diary-entries' after preparing a temporary diary buffer. |
193 The buffer shows only the diary entries currently visible in the | 193 The buffer shows only the diary entries currently visible in the |
1538 date itself. If optional MARKING is non-nil then the | 1538 date itself. If optional MARKING is non-nil then the |
1539 *reminders* are marked on the calendar. Marking of reminders | 1539 *reminders* are marked on the calendar. Marking of reminders |
1540 is independent of whether the entry *itself* is a marking or | 1540 is independent of whether the entry *itself* is a marking or |
1541 non-marking one. | 1541 non-marking one. |
1542 | 1542 |
1543 %%(diary-yahrzeit MONTH DAY YEAR) text | 1543 %%(diary-hebrew-yahrzeit MONTH DAY YEAR) text |
1544 Text is assumed to be the name of the person; the date is the | 1544 Text is assumed to be the name of the person; the date is the |
1545 date of death on the *civil* calendar. The diary entry will | 1545 date of death on the *civil* calendar. The diary entry will |
1546 appear on the proper Hebrew-date anniversary and on the day | 1546 appear on the proper Hebrew-date anniversary and on the day |
1547 before. | 1547 before. |
1548 | 1548 |
1561 `diary-islamic-date', `diary-julian-date', `diary-mayan-date', | 1561 `diary-islamic-date', `diary-julian-date', `diary-mayan-date', |
1562 `diary-persian-date' | 1562 `diary-persian-date' |
1563 | 1563 |
1564 Theses functions only produce output on certain dates: | 1564 Theses functions only produce output on certain dates: |
1565 | 1565 |
1566 `diary-phases-of-moon' - phases of moon (on the appropriate days) | 1566 `diary-phases-of-moon' - phases of moon (on the appropriate days) |
1567 `diary-omer' - Omer count, within 50 days after Passover | 1567 `diary-hebrew-omer' - Omer count, within 50 days after Passover |
1568 `diary-parasha' - weekly parasha, every Saturday | 1568 `diary-hebrew-parasha' - weekly parasha, every Saturday |
1569 `diary-rosh-hodesh' - Rosh Hodesh, or the day or Saturday before | 1569 `diary-hebrew-rosh-hodesh' - Rosh Hodesh, or the day or Saturday before |
1570 `diary-sabbath-candles' - local time of candle lighting, on Fridays | 1570 `diary-sabbath-candles' - local time of candle lighting, on Fridays |
1571 | 1571 |
1572 | 1572 |
1573 Marking these entries is *extremely* time consuming, so it is | 1573 Marking these entries is *extremely* time consuming, so it is |
1574 best if they are non-marking." | 1574 best if they are non-marking." |
1575 (let ((s-entry (format "^%s?%s(" (regexp-quote diary-nonmarking-symbol) | 1575 (let ((s-entry (format "^%s?%s(" (regexp-quote diary-nonmarking-symbol) |
2088 (defun diary-font-lock-keywords () | 2088 (defun diary-font-lock-keywords () |
2089 "Return a value for the variable `diary-font-lock-keywords'." | 2089 "Return a value for the variable `diary-font-lock-keywords'." |
2090 (append | 2090 (append |
2091 (diary-font-lock-date-forms calendar-month-name-array | 2091 (diary-font-lock-date-forms calendar-month-name-array |
2092 nil calendar-month-abbrev-array) | 2092 nil calendar-month-abbrev-array) |
2093 (diary-font-lock-keywords-1 mark-hebrew-diary-entries | 2093 (diary-font-lock-keywords-1 diary-hebrew-mark-entries |
2094 list-hebrew-diary-entries | 2094 diary-hebrew-list-entries |
2095 cal-hebrew | 2095 cal-hebrew |
2096 calendar-hebrew-month-name-array-leap-year | 2096 calendar-hebrew-month-name-array-leap-year |
2097 diary-hebrew-entry-symbol) | 2097 diary-hebrew-entry-symbol) |
2098 (diary-font-lock-keywords-1 diary-islamic-mark-entries | 2098 (diary-font-lock-keywords-1 diary-islamic-mark-entries |
2099 diary-islamic-list-entries | 2099 diary-islamic-list-entries |