diff options
| author | Glenn Morris | 2008-03-25 03:40:53 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-25 03:40:53 +0000 |
| commit | af7956810c3cddd5cc9f9c8af3947f72fc0f1751 (patch) | |
| tree | c49301a830c0b04c6835b5acfe55104dddc4fd90 | |
| parent | ff5daae57ad6959655b17e01dcc185cca9ea1ad1 (diff) | |
| download | emacs-af7956810c3cddd5cc9f9c8af3947f72fc0f1751.tar.gz emacs-af7956810c3cddd5cc9f9c8af3947f72fc0f1751.zip | |
(calendar-coptic-read-date): New name for coptic-prompt-for-date.
Update callers, make old name an obsolete alias. Doc fix.
| -rw-r--r-- | lisp/calendar/cal-coptic.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/calendar/cal-coptic.el b/lisp/calendar/cal-coptic.el index 2fc789415e5..d336990311c 100644 --- a/lisp/calendar/cal-coptic.el +++ b/lisp/calendar/cal-coptic.el | |||
| @@ -135,8 +135,9 @@ Defaults to today's date if DATE is not given." | |||
| 135 | (message "Date is pre-%s calendar" coptic-name) | 135 | (message "Date is pre-%s calendar" coptic-name) |
| 136 | (message "%s date: %s" coptic-name f)))) | 136 | (message "%s date: %s" coptic-name f)))) |
| 137 | 137 | ||
| 138 | (defun coptic-prompt-for-date () | 138 | (defun calendar-coptic-read-date () |
| 139 | "Ask for a Coptic date." | 139 | "Interactively read the arguments for a Coptic date command. |
| 140 | Reads a year, month, and day." | ||
| 140 | (let* ((today (calendar-current-date)) | 141 | (let* ((today (calendar-current-date)) |
| 141 | (year (calendar-read | 142 | (year (calendar-read |
| 142 | (format "%s calendar year (>0): " coptic-name) | 143 | (format "%s calendar year (>0): " coptic-name) |
| @@ -160,11 +161,14 @@ Defaults to today's date if DATE is not given." | |||
| 160 | (lambda (x) (and (< 0 x) (<= x last)))))) | 161 | (lambda (x) (and (< 0 x) (<= x last)))))) |
| 161 | (list (list month day year)))) | 162 | (list (list month day year)))) |
| 162 | 163 | ||
| 164 | (define-obsolete-function-alias | ||
| 165 | 'coptic-prompt-for-date 'calendar-coptic-read-date "23.1") | ||
| 166 | |||
| 163 | ;;;###cal-autoload | 167 | ;;;###cal-autoload |
| 164 | (defun calendar-goto-coptic-date (date &optional noecho) | 168 | (defun calendar-goto-coptic-date (date &optional noecho) |
| 165 | "Move cursor to Coptic date DATE. | 169 | "Move cursor to Coptic date DATE. |
| 166 | Echo Coptic date unless NOECHO is t." | 170 | Echo Coptic date unless NOECHO is t." |
| 167 | (interactive (coptic-prompt-for-date)) | 171 | (interactive (calendar-coptic-read-date)) |
| 168 | (calendar-goto-date (calendar-gregorian-from-absolute | 172 | (calendar-goto-date (calendar-gregorian-from-absolute |
| 169 | (calendar-absolute-from-coptic date))) | 173 | (calendar-absolute-from-coptic date))) |
| 170 | (or noecho (calendar-print-coptic-date))) | 174 | (or noecho (calendar-print-coptic-date))) |
| @@ -233,7 +237,7 @@ Echo Ethiopic date unless NOECHO is t." | |||
| 233 | (let ((coptic-calendar-epoch ethiopic-calendar-epoch) | 237 | (let ((coptic-calendar-epoch ethiopic-calendar-epoch) |
| 234 | (coptic-name ethiopic-name) | 238 | (coptic-name ethiopic-name) |
| 235 | (coptic-calendar-month-name-array ethiopic-calendar-month-name-array)) | 239 | (coptic-calendar-month-name-array ethiopic-calendar-month-name-array)) |
| 236 | (coptic-prompt-for-date))) | 240 | (calendar-coptic-read-date))) |
| 237 | (calendar-goto-date (calendar-gregorian-from-absolute | 241 | (calendar-goto-date (calendar-gregorian-from-absolute |
| 238 | (calendar-absolute-from-ethiopic date))) | 242 | (calendar-absolute-from-ethiopic date))) |
| 239 | (or noecho (calendar-print-ethiopic-date))) | 243 | (or noecho (calendar-print-ethiopic-date))) |