diff options
| author | Glenn Morris | 2008-06-27 00:33:29 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-06-27 00:33:29 +0000 |
| commit | 273fcc9bb00e2b4541c2201dc955316938aa849e (patch) | |
| tree | 1ceb232f1d4878f0bf5bf424f780c59b560f5281 | |
| parent | 43db14bbd823795adfc6f37efcc74abccb77fdd7 (diff) | |
| download | emacs-273fcc9bb00e2b4541c2201dc955316938aa849e.tar.gz emacs-273fcc9bb00e2b4541c2201dc955316938aa849e.zip | |
(calendar-lunar-phases): Rename from calendar-phases-of-moon. Keep
old name as alias, update callers.
(lunar-phases): Rename from phases-of-moon. Keep old name as alias.
(diary-lunar-phases): Rename from diary-phases-of-moon. Keep old name as alias.
| -rw-r--r-- | lisp/calendar/lunar.el | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/lisp/calendar/lunar.el b/lisp/calendar/lunar.el index f54a7a6ee72..8405432e26a 100644 --- a/lisp/calendar/lunar.el +++ b/lisp/calendar/lunar.el | |||
| @@ -178,7 +178,7 @@ remainder mod 4 gives the phase: 0 new moon, 1 first quarter, 2 full moon, | |||
| 178 | (defvar displayed-year) | 178 | (defvar displayed-year) |
| 179 | 179 | ||
| 180 | ;;;###cal-autoload | 180 | ;;;###cal-autoload |
| 181 | (defun calendar-phases-of-moon () | 181 | (defun calendar-lunar-phases () |
| 182 | "Create a buffer with the lunar phases for the current calendar window." | 182 | "Create a buffer with the lunar phases for the current calendar window." |
| 183 | (interactive) | 183 | (interactive) |
| 184 | (message "Computing phases of the moon...") | 184 | (message "Computing phases of the moon...") |
| @@ -209,9 +209,12 @@ remainder mod 4 gives the phase: 0 new moon, 1 first quarter, 2 full moon, | |||
| 209 | (lunar-phase-list m1 y1) "\n"))) | 209 | (lunar-phase-list m1 y1) "\n"))) |
| 210 | (message "Computing phases of the moon...done"))) | 210 | (message "Computing phases of the moon...done"))) |
| 211 | 211 | ||
| 212 | ;; FIXME ? | 212 | ;;;###cal-autoload |
| 213 | (define-obsolete-function-alias 'calendar-phases-of-moon | ||
| 214 | 'calendar-lunar-phases "23.1") | ||
| 215 | |||
| 213 | ;;;###autoload | 216 | ;;;###autoload |
| 214 | (defun phases-of-moon (&optional arg) | 217 | (defun lunar-phases (&optional arg) |
| 215 | "Display the quarters of the moon for last month, this month, and next month. | 218 | "Display the quarters of the moon for last month, this month, and next month. |
| 216 | If called with an optional prefix argument ARG, prompts for month and year. | 219 | If called with an optional prefix argument ARG, prompts for month and year. |
| 217 | This function is suitable for execution in a .emacs file." | 220 | This function is suitable for execution in a .emacs file." |
| @@ -221,14 +224,17 @@ This function is suitable for execution in a .emacs file." | |||
| 221 | (calendar-current-date))) | 224 | (calendar-current-date))) |
| 222 | (displayed-month (calendar-extract-month date)) | 225 | (displayed-month (calendar-extract-month date)) |
| 223 | (displayed-year (calendar-extract-year date))) | 226 | (displayed-year (calendar-extract-year date))) |
| 224 | (calendar-phases-of-moon)))) | 227 | (calendar-lunar-phases)))) |
| 228 | |||
| 229 | ;;;###autoload | ||
| 230 | (define-obsolete-function-alias 'phases-of-moon 'lunar-phases "23.1") | ||
| 225 | 231 | ||
| 226 | (defvar date) | 232 | (defvar date) |
| 227 | 233 | ||
| 228 | ;; To be called from diary-list-sexp-entries, where DATE is bound. | 234 | ;; To be called from diary-list-sexp-entries, where DATE is bound. |
| 229 | 235 | ||
| 230 | ;;;###diary-autoload | 236 | ;;;###diary-autoload |
| 231 | (defun diary-phases-of-moon (&optional mark) | 237 | (defun diary-lunar-phases (&optional mark) |
| 232 | "Moon phases diary entry. | 238 | "Moon phases diary entry. |
| 233 | An optional parameter MARK specifies a face or single-character string to | 239 | An optional parameter MARK specifies a face or single-character string to |
| 234 | use when highlighting the day in the calendar." | 240 | use when highlighting the day in the calendar." |
| @@ -247,6 +253,10 @@ use when highlighting the day in the calendar." | |||
| 247 | (cons mark (concat (lunar-phase-name (nth 2 phase)) " " | 253 | (cons mark (concat (lunar-phase-name (nth 2 phase)) " " |
| 248 | (cadr phase)))))) | 254 | (cadr phase)))))) |
| 249 | 255 | ||
| 256 | ;;;###diary-autoload | ||
| 257 | (define-obsolete-function-alias 'diary-phases-of-moon | ||
| 258 | 'diary-lunar-phases "23.1") | ||
| 259 | |||
| 250 | ;; For the Chinese calendar the calculations for the new moon need to be more | 260 | ;; For the Chinese calendar the calculations for the new moon need to be more |
| 251 | ;; accurate than those above, so we use more terms in the approximation. | 261 | ;; accurate than those above, so we use more terms in the approximation. |
| 252 | (defun lunar-new-moon-time (k) | 262 | (defun lunar-new-moon-time (k) |