diff options
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/calendar/cal-bahai.el | 20 |
2 files changed, 20 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ec8d271ae32..7d43bbe29bf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2007-09-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * calendar/cal-bahai.el (mark-bahai-diary-entries): Fix up typo. | ||
| 4 | (calendar-bahai-print-date, calendar-bahai-goto-date) | ||
| 5 | (diary-bahai-list-entries, diary-bahai-insert-entry): | ||
| 6 | New names to clean up the namespace a bit more. | ||
| 7 | (calendar-goto-bahai-date, calendar-print-bahai-date): Compat aliases. | ||
| 8 | |||
| 1 | 2007-09-15 Glenn Morris <rgm@gnu.org> | 9 | 2007-09-15 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * calendar/holidays.el (holiday-list): Rename it back to | 11 | * calendar/holidays.el (holiday-list): Rename it back to |
diff --git a/lisp/calendar/cal-bahai.el b/lisp/calendar/cal-bahai.el index e0d1c64875e..98c791817d1 100644 --- a/lisp/calendar/cal-bahai.el +++ b/lisp/calendar/cal-bahai.el | |||
| @@ -143,19 +143,19 @@ Defaults to today's date if DATE is not given." | |||
| 143 | (year (int-to-string y))) | 143 | (year (int-to-string y))) |
| 144 | (mapconcat 'eval calendar-date-display-form "")))) | 144 | (mapconcat 'eval calendar-date-display-form "")))) |
| 145 | 145 | ||
| 146 | (defun calendar-print-bahai-date () | 146 | (defun calendar-bahai-print-date () |
| 147 | "Show the Bahá'í calendar equivalent of the selected date." | 147 | "Show the Bahá'í calendar equivalent of the selected date." |
| 148 | (interactive) | 148 | (interactive) |
| 149 | (message "Bahá'í date: %s" | 149 | (message "Bahá'í date: %s" |
| 150 | (calendar-bahai-date-string (calendar-cursor-to-date t)))) | 150 | (calendar-bahai-date-string (calendar-cursor-to-date t)))) |
| 151 | 151 | ||
| 152 | (defun calendar-goto-bahai-date (date &optional noecho) | 152 | (defun calendar-bahai-goto-date (date &optional noecho) |
| 153 | "Move cursor to Bahá'í date DATE. | 153 | "Move cursor to Bahá'í date DATE. |
| 154 | Echo Bahá'í date unless NOECHO is t." | 154 | Echo Bahá'í date unless NOECHO is t." |
| 155 | (interactive (calendar-bahai-prompt-for-date)) | 155 | (interactive (calendar-bahai-prompt-for-date)) |
| 156 | (calendar-goto-date (calendar-gregorian-from-absolute | 156 | (calendar-goto-date (calendar-gregorian-from-absolute |
| 157 | (calendar-absolute-from-bahai date))) | 157 | (calendar-absolute-from-bahai date))) |
| 158 | (or noecho (calendar-print-bahai-date))) | 158 | (or noecho (calendar-bahai-print-date))) |
| 159 | 159 | ||
| 160 | (defun calendar-bahai-prompt-for-date () | 160 | (defun calendar-bahai-prompt-for-date () |
| 161 | "Ask for a Bahá'í date." | 161 | "Ask for a Bahá'í date." |
| @@ -204,7 +204,7 @@ nil if it is not visible in the current calendar window." | |||
| 204 | (if (calendar-date-is-visible-p date) | 204 | (if (calendar-date-is-visible-p date) |
| 205 | (list (list date string)))))))) | 205 | (list (list date string)))))))) |
| 206 | 206 | ||
| 207 | (defun diary-list-bahai-entries () | 207 | (defun diary-bahai-list-entries () |
| 208 | "Add any Bahá'í date entries from the diary file to `diary-entries-list'. | 208 | "Add any Bahá'í date entries from the diary file to `diary-entries-list'. |
| 209 | Bahá'í date diary entries must be prefaced by an | 209 | Bahá'í date diary entries must be prefaced by an |
| 210 | `bahai-diary-entry-symbol' (normally a `B'). The same diary date | 210 | `bahai-diary-entry-symbol' (normally a `B'). The same diary date |
| @@ -458,7 +458,7 @@ A value of 0 in any position is a wildcard." | |||
| 458 | (mark-visible-calendar-date | 458 | (mark-visible-calendar-date |
| 459 | (calendar-gregorian-from-absolute date))))))))) | 459 | (calendar-gregorian-from-absolute date))))))))) |
| 460 | 460 | ||
| 461 | (defun diary-insert-bahai-entry (arg) | 461 | (defun diary-bahai-insert-entry (arg) |
| 462 | "Insert a diary entry. | 462 | "Insert a diary entry. |
| 463 | For the Bahá'í date corresponding to the date indicated by point. | 463 | For the Bahá'í date corresponding to the date indicated by point. |
| 464 | Prefix arg will make the entry nonmarking." | 464 | Prefix arg will make the entry nonmarking." |
| @@ -512,17 +512,21 @@ Prefix arg will make the entry nonmarking." | |||
| 512 | 512 | ||
| 513 | ;; Backward compatibility. | 513 | ;; Backward compatibility. |
| 514 | (define-obsolete-function-alias | 514 | (define-obsolete-function-alias |
| 515 | 'list-bahai-diary-entries 'diary-list-bahai-entries "23.1") | 515 | 'list-bahai-diary-entries 'diary-bahai-list-entries "23.1") |
| 516 | (define-obsolete-function-alias | 516 | (define-obsolete-function-alias |
| 517 | 'mark-bahai-diary-entries 'diary-mark-bahai-entries "23.1") | 517 | 'mark-bahai-diary-entries 'diary-bahai-mark-entries "23.1") |
| 518 | (define-obsolete-function-alias | 518 | (define-obsolete-function-alias |
| 519 | 'insert-bahai-diary-entry 'diary-insert-bahai-entry "23.1") | 519 | 'insert-bahai-diary-entry 'diary-bahai-insert-entry "23.1") |
| 520 | (define-obsolete-function-alias | 520 | (define-obsolete-function-alias |
| 521 | 'insert-monthly-bahai-diary-entry 'diary-insert-bahai-monthly-entry "23.1") | 521 | 'insert-monthly-bahai-diary-entry 'diary-insert-bahai-monthly-entry "23.1") |
| 522 | (define-obsolete-function-alias | 522 | (define-obsolete-function-alias |
| 523 | 'insert-yearly-bahai-diary-entry 'diary-insert-bahai-yearly-entry "23.1") | 523 | 'insert-yearly-bahai-diary-entry 'diary-insert-bahai-yearly-entry "23.1") |
| 524 | (define-obsolete-function-alias | 524 | (define-obsolete-function-alias |
| 525 | 'mark-bahai-calendar-date-pattern 'calendar-bahai-mark-date-pattern "23.1") | 525 | 'mark-bahai-calendar-date-pattern 'calendar-bahai-mark-date-pattern "23.1") |
| 526 | (define-obsolete-function-alias | ||
| 527 | 'calendar-goto-bahai-date 'calendar-bahai-goto-date "23.1") | ||
| 528 | (define-obsolete-function-alias | ||
| 529 | 'calendar-print-bahai-date 'calendar-bahai-print-date "23.1") | ||
| 526 | 530 | ||
| 527 | (provide 'cal-bahai) | 531 | (provide 'cal-bahai) |
| 528 | 532 | ||