aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-16 19:38:18 +0000
committerRichard M. Stallman1994-07-16 19:38:18 +0000
commit899b130edfe2dab12ad4a754c735d3d0388f9cf3 (patch)
treef3dfca06817f2717ed54a120e62712d5393dde96
parent4daaec5d0b9bcef8a843326b61573fb95b049135 (diff)
downloademacs-899b130edfe2dab12ad4a754c735d3d0388f9cf3.tar.gz
emacs-899b130edfe2dab12ad4a754c735d3d0388f9cf3.zip
(calendar-goto-today): Renamed from calendar-current-month.
-rw-r--r--lisp/calendar/calendar.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index bb3aaed68b5..103fd2acf67 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1505,7 +1505,7 @@ the inserted text. Value is always t."
1505 (define-key calendar-mode-map "M" 'calendar-phases-of-moon) 1505 (define-key calendar-mode-map "M" 'calendar-phases-of-moon)
1506 (define-key calendar-mode-map " " 'scroll-other-window) 1506 (define-key calendar-mode-map " " 'scroll-other-window)
1507 (define-key calendar-mode-map "\C-c\C-l" 'redraw-calendar) 1507 (define-key calendar-mode-map "\C-c\C-l" 'redraw-calendar)
1508 (define-key calendar-mode-map "." 'calendar-current-month) 1508 (define-key calendar-mode-map "." 'calendar-goto-today)
1509 (define-key calendar-mode-map "o" 'calendar-other-month) 1509 (define-key calendar-mode-map "o" 'calendar-other-month)
1510 (define-key calendar-mode-map "q" 'exit-calendar) 1510 (define-key calendar-mode-map "q" 'exit-calendar)
1511 (define-key calendar-mode-map "a" 'list-calendar-holidays) 1511 (define-key calendar-mode-map "a" 'list-calendar-holidays)
@@ -1557,7 +1557,7 @@ the inserted text. Value is always t."
1557 (list 1557 (list
1558 (substitute-command-keys "\\<calendar-mode-map>\\[scroll-calendar-left]") 1558 (substitute-command-keys "\\<calendar-mode-map>\\[scroll-calendar-left]")
1559 "Calendar" 1559 "Calendar"
1560 (substitute-command-keys "\\<calendar-mode-map>\\[describe-calendar-mode] help/\\[calendar-other-month] other/\\[calendar-current-month] today") 1560 (substitute-command-keys "\\<calendar-mode-map>\\[describe-calendar-mode] help/\\[calendar-other-month] other/\\[calendar-goto-today] today")
1561 '(calendar-date-string (calendar-current-date) t) 1561 '(calendar-date-string (calendar-current-date) t)
1562 (substitute-command-keys "\\<calendar-mode-map>\\[scroll-calendar-right]")) 1562 (substitute-command-keys "\\<calendar-mode-map>\\[scroll-calendar-right]"))
1563 "The mode line of the calendar buffer.") 1563 "The mode line of the calendar buffer.")
@@ -1601,7 +1601,7 @@ The commands for calendar movement are:
1601 1601
1602 \\[scroll-calendar-right] scroll one month right \\[scroll-calendar-left] scroll one month left 1602 \\[scroll-calendar-right] scroll one month right \\[scroll-calendar-left] scroll one month left
1603 \\[scroll-calendar-right-three-months] scroll 3 months right \\[scroll-calendar-left-three-months] scroll 3 months left 1603 \\[scroll-calendar-right-three-months] scroll 3 months right \\[scroll-calendar-left-three-months] scroll 3 months left
1604 \\[calendar-current-month] display current month \\[calendar-other-month] display another month 1604 \\[calendar-goto-today] display current month \\[calendar-other-month] display another month
1605 1605
1606Whenever it makes sense, the above commands take prefix arguments that 1606Whenever it makes sense, the above commands take prefix arguments that
1607multiply their affect. For convenience, the digit keys and the minus sign 1607multiply their affect. For convenience, the digit keys and the minus sign
@@ -1854,7 +1854,7 @@ concatenated and the result truncated."
1854 (set-buffer-modified-p nil) 1854 (set-buffer-modified-p nil)
1855 (bury-buffer diary-buffer)))))) 1855 (bury-buffer diary-buffer))))))
1856 1856
1857(defun calendar-current-month () 1857(defun calendar-goto-today ()
1858 "Reposition the calendar window so the current date is visible." 1858 "Reposition the calendar window so the current date is visible."
1859 (interactive) 1859 (interactive)
1860 (let ((today (calendar-current-date)));; The date might have changed. 1860 (let ((today (calendar-current-date)));; The date might have changed.