diff options
| author | Richard M. Stallman | 1994-05-01 20:18:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-01 20:18:39 +0000 |
| commit | ec4dfb6bfbc8bd9e9adc32bac2a4cb598a99b827 (patch) | |
| tree | b5843120246a64a1545eced853636516f36dda35 | |
| parent | 82a2fe6969664879c2596ebe4166d0e5c1ac0013 (diff) | |
| download | emacs-ec4dfb6bfbc8bd9e9adc32bac2a4cb598a99b827.tar.gz emacs-ec4dfb6bfbc8bd9e9adc32bac2a4cb598a99b827.zip | |
(sunrise-sunset): Undo previous change.
| -rw-r--r-- | lisp/calendar/solar.el | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lisp/calendar/solar.el b/lisp/calendar/solar.el index 723980a6690..ce0570214a7 100644 --- a/lisp/calendar/solar.el +++ b/lisp/calendar/solar.el | |||
| @@ -392,10 +392,10 @@ several minutes." | |||
| 392 | ;;;###autoload | 392 | ;;;###autoload |
| 393 | (defun sunrise-sunset (&optional arg) | 393 | (defun sunrise-sunset (&optional arg) |
| 394 | "Local time of sunrise and sunset for today. Accurate to +/- 2 minutes. | 394 | "Local time of sunrise and sunset for today. Accurate to +/- 2 minutes. |
| 395 | If called with an optional prefix argument, prompts for date. | 395 | If called with an optional prefix argument, prompt for date. |
| 396 | 396 | ||
| 397 | If called with an optional double prefix argument, prompts for longitude, | 397 | If called with an optional double prefix argument, prompt for longitude, |
| 398 | latitude, time zone, and date. | 398 | latitude, time zone, and date, and always use standard time. |
| 399 | 399 | ||
| 400 | This function is suitable for execution in a .emacs file." | 400 | This function is suitable for execution in a .emacs file." |
| 401 | (interactive "p") | 401 | (interactive "p") |
| @@ -429,12 +429,10 @@ This function is suitable for execution in a .emacs file." | |||
| 429 | ((< calendar-time-zone 0) | 429 | ((< calendar-time-zone 0) |
| 430 | (format "UTC%dmin" calendar-time-zone)) | 430 | (format "UTC%dmin" calendar-time-zone)) |
| 431 | (t (format "UTC+%dmin" calendar-time-zone))))) | 431 | (t (format "UTC+%dmin" calendar-time-zone))))) |
| 432 | ;; Use outer context values always, unless you're going to prompt for | 432 | (calendar-daylight-savings-starts |
| 433 | ;; the values to use. PKH | 433 | (if (< arg 16) calendar-daylight-savings-starts)) |
| 434 | ;; (calendar-daylight-savings-starts | 434 | (calendar-daylight-savings-ends |
| 435 | ;; (if (< arg 16) calendar-daylight-savings-starts)) | 435 | (if (< arg 16) calendar-daylight-savings-ends)) |
| 436 | ;; (calendar-daylight-savings-ends | ||
| 437 | ;; (if (< arg 16) calendar-daylight-savings-ends)) | ||
| 438 | (date (if (< arg 4) (calendar-current-date) (calendar-read-date))) | 436 | (date (if (< arg 4) (calendar-current-date) (calendar-read-date))) |
| 439 | (date-string (calendar-date-string date t)) | 437 | (date-string (calendar-date-string date t)) |
| 440 | (time-string (solar-sunrise-sunset date)) | 438 | (time-string (solar-sunrise-sunset date)) |