diff options
| author | Glenn Morris | 2008-03-25 03:40:39 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-25 03:40:39 +0000 |
| commit | ff5daae57ad6959655b17e01dcc185cca9ea1ad1 (patch) | |
| tree | 428588888326f578215577e0d8aea201376dfc61 | |
| parent | 5a07b0f024da068fdc9e6b476182f376a0569cb1 (diff) | |
| download | emacs-ff5daae57ad6959655b17e01dcc185cca9ea1ad1.tar.gz emacs-ff5daae57ad6959655b17e01dcc185cca9ea1ad1.zip | |
(calendar-bahai-read-date): New name for
calendar-bahai-prompt-for-date. Update callers, make old name an
obsolete alias. Doc fix.
| -rw-r--r-- | lisp/calendar/cal-bahai.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/calendar/cal-bahai.el b/lisp/calendar/cal-bahai.el index 8a24ffae108..71c4a53e128 100644 --- a/lisp/calendar/cal-bahai.el +++ b/lisp/calendar/cal-bahai.el | |||
| @@ -154,8 +154,9 @@ Defaults to today's date if DATE is not given." | |||
| 154 | (define-obsolete-function-alias | 154 | (define-obsolete-function-alias |
| 155 | 'calendar-print-bahai-date 'calendar-bahai-print-date "23.1") | 155 | 'calendar-print-bahai-date 'calendar-bahai-print-date "23.1") |
| 156 | 156 | ||
| 157 | (defun calendar-bahai-prompt-for-date () | 157 | (defun calendar-bahai-read-date () |
| 158 | "Ask for a Bahá'í date." | 158 | "Interactively read the arguments for a Bahá'í date command. |
| 159 | Reads a year, month and day." | ||
| 159 | (let* ((today (calendar-current-date)) | 160 | (let* ((today (calendar-current-date)) |
| 160 | (year (calendar-read | 161 | (year (calendar-read |
| 161 | "Bahá'í calendar year (not 0): " | 162 | "Bahá'í calendar year (not 0): " |
| @@ -177,10 +178,13 @@ Defaults to today's date if DATE is not given." | |||
| 177 | (lambda (x) (and (< 0 x) (<= x 19)))))) | 178 | (lambda (x) (and (< 0 x) (<= x 19)))))) |
| 178 | (list (list month day year)))) | 179 | (list (list month day year)))) |
| 179 | 180 | ||
| 181 | (define-obsolete-function-alias | ||
| 182 | 'calendar-bahai-prompt-for-date 'calendar-bahai-read-date "23.1") | ||
| 183 | |||
| 180 | ;;;###cal-autoload | 184 | ;;;###cal-autoload |
| 181 | (defun calendar-bahai-goto-date (date &optional noecho) | 185 | (defun calendar-bahai-goto-date (date &optional noecho) |
| 182 | "Move cursor to Bahá'í date DATE; echo Bahá'í date unless NOECHO is non-nil." | 186 | "Move cursor to Bahá'í date DATE; echo Bahá'í date unless NOECHO is non-nil." |
| 183 | (interactive (calendar-bahai-prompt-for-date)) | 187 | (interactive (calendar-bahai-read-date)) |
| 184 | (calendar-goto-date (calendar-gregorian-from-absolute | 188 | (calendar-goto-date (calendar-gregorian-from-absolute |
| 185 | (calendar-absolute-from-bahai date))) | 189 | (calendar-absolute-from-bahai date))) |
| 186 | (or noecho (calendar-bahai-print-date))) | 190 | (or noecho (calendar-bahai-print-date))) |