diff options
| author | Glenn Morris | 2003-08-17 22:51:29 +0000 |
|---|---|---|
| committer | Glenn Morris | 2003-08-17 22:51:29 +0000 |
| commit | 8923d271caf0b9e7aefe5c688df3e6cc31b6cd95 (patch) | |
| tree | 736fb52943a2ebe08d3583a7af7bcc5ea71f16c8 | |
| parent | 163fd24dfd910260ae15255c4eaada4ea4aabc23 (diff) | |
| download | emacs-8923d271caf0b9e7aefe5c688df3e6cc31b6cd95.tar.gz emacs-8923d271caf0b9e7aefe5c688df3e6cc31b6cd95.zip | |
Edward M. Reingold <reingold@emr.cs.iit.edu>
Bind `calendar-goto-day-of-year' to key.
Alan Shutko <ats@acm.org>
(calendar-make-alist): Correct off-by-one keeping December out of the
alist.
| -rw-r--r-- | lisp/calendar/calendar.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index e99e0b09d51..51999f8d3b1 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -1406,6 +1406,10 @@ The Gregorian date Sunday, December 31, 1 BC is imaginary." | |||
| 1406 | "Move cursor to DATE." | 1406 | "Move cursor to DATE." |
| 1407 | t) | 1407 | t) |
| 1408 | 1408 | ||
| 1409 | (autoload 'calendar-goto-day-of-year "cal-move" | ||
| 1410 | "Move cursor to day of year." | ||
| 1411 | t) | ||
| 1412 | |||
| 1409 | (autoload 'calendar-only-one-frame-setup "cal-x" | 1413 | (autoload 'calendar-only-one-frame-setup "cal-x" |
| 1410 | "Start calendar and display it in a dedicated frame.") | 1414 | "Start calendar and display it in a dedicated frame.") |
| 1411 | 1415 | ||
| @@ -2016,6 +2020,7 @@ the inserted text. Value is always t." | |||
| 2016 | (define-key calendar-mode-map "\C-x\C-x" 'calendar-exchange-point-and-mark) | 2020 | (define-key calendar-mode-map "\C-x\C-x" 'calendar-exchange-point-and-mark) |
| 2017 | (define-key calendar-mode-map "\e=" 'calendar-count-days-region) | 2021 | (define-key calendar-mode-map "\e=" 'calendar-count-days-region) |
| 2018 | (define-key calendar-mode-map "gd" 'calendar-goto-date) | 2022 | (define-key calendar-mode-map "gd" 'calendar-goto-date) |
| 2023 | (define-key calendar-mode-map "gD" 'calendar-goto-day-of-year) | ||
| 2019 | (define-key calendar-mode-map "gj" 'calendar-goto-julian-date) | 2024 | (define-key calendar-mode-map "gj" 'calendar-goto-julian-date) |
| 2020 | (define-key calendar-mode-map "ga" 'calendar-goto-astro-day-number) | 2025 | (define-key calendar-mode-map "ga" 'calendar-goto-astro-day-number) |
| 2021 | (define-key calendar-mode-map "gh" 'calendar-goto-hebrew-date) | 2026 | (define-key calendar-mode-map "gh" 'calendar-goto-hebrew-date) |
| @@ -2622,7 +2627,7 @@ If FILTER is provided, apply it to each key in the alist." | |||
| 2622 | (aseqp (if abbrevs (calendar-abbrev-construct abbrevs sequence | 2627 | (aseqp (if abbrevs (calendar-abbrev-construct abbrevs sequence |
| 2623 | 'period))) | 2628 | 'period))) |
| 2624 | alist elem) | 2629 | alist elem) |
| 2625 | (dotimes (i (1- (length sequence)) (reverse alist)) | 2630 | (dotimes (i (length sequence) (reverse alist)) |
| 2626 | (setq index (+ i offset) | 2631 | (setq index (+ i offset) |
| 2627 | elem (elt sequence i) | 2632 | elem (elt sequence i) |
| 2628 | alist | 2633 | alist |