Mercurial > emacs
comparison lisp/calendar/calendar.el @ 39785:5c56451d877f
(calendar-mode-line-format): do not use #' on undefined functions
author | Sam Steingold <sds@gnu.org> |
---|---|
date | Thu, 11 Oct 2001 21:12:47 +0000 |
parents | 183567a011b1 |
children | 20da075dd68e |
comparison
equal
deleted
inserted
replaced
39784:d74cde9e5e55 | 39785:5c56451d877f |
---|---|
1 ;;; calendar.el --- calendar functions | 1 ;;; calendar.el --- calendar functions |
2 | 2 |
3 ;; Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1997, | 3 ;; Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1997, |
4 ;; 2000, 2001 Free Software Foundation, Inc. | 4 ;; 2000, 2001 Free Software Foundation, Inc. |
5 | 5 |
6 ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> | 6 ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> |
7 ;; Keywords: calendar | 7 ;; Keywords: calendar |
8 ;; Human-Keywords: calendar, Gregorian calendar, diary, holidays | 8 ;; Human-Keywords: calendar, Gregorian calendar, diary, holidays |
91 ;; reingold@cs.uiuc.edu 1304 West Springfield Avenue | 91 ;; reingold@cs.uiuc.edu 1304 West Springfield Avenue |
92 ;; Urbana, Illinois 61801 | 92 ;; Urbana, Illinois 61801 |
93 | 93 |
94 ;;; Code: | 94 ;;; Code: |
95 | 95 |
96 (eval-when-compile | 96 (eval-when-compile |
97 (defvar displayed-month) | 97 (defvar displayed-month) |
98 (defvar displayed-year) | 98 (defvar displayed-year) |
99 (defvar calendar-month-name-array) | 99 (defvar calendar-month-name-array) |
100 (defvar calendar-starred-day)) | 100 (defvar calendar-starred-day)) |
101 | 101 |
2038 (defvar calendar-mode-line-format | 2038 (defvar calendar-mode-line-format |
2039 (list | 2039 (list |
2040 (propertize (substitute-command-keys | 2040 (propertize (substitute-command-keys |
2041 "\\<calendar-mode-map>\\[scroll-calendar-left]") | 2041 "\\<calendar-mode-map>\\[scroll-calendar-left]") |
2042 'help-echo "mouse-2: scroll left" | 2042 'help-echo "mouse-2: scroll left" |
2043 'keymap (make-mode-line-mouse-map 'mouse-2 | 2043 'keymap (make-mode-line-mouse-map 'mouse-2 |
2044 #'scroll-calendar-left)) | 2044 #'scroll-calendar-left)) |
2045 "Calendar" | 2045 "Calendar" |
2046 (concat | 2046 (concat |
2047 (propertize | 2047 (propertize |
2048 (substitute-command-keys | 2048 (substitute-command-keys |
2049 "\\<calendar-mode-map>\\[calendar-goto-info-node] info") | 2049 "\\<calendar-mode-map>\\[calendar-goto-info-node] info") |
2050 'help-echo "mouse-2: read Info on Calendar" | 2050 'help-echo "mouse-2: read Info on Calendar" |
2051 'keymap (make-mode-line-mouse-map 'mouse-2 #'calendar-goto-info-node)) | 2051 'keymap (make-mode-line-mouse-map 'mouse-2 'calendar-goto-info-node)) |
2052 "/" | 2052 "/" |
2053 (propertize | 2053 (propertize |
2054 (substitute-command-keys | 2054 (substitute-command-keys |
2055 "\\<calendar-mode-map>\\[calendar-other-month] other") | 2055 "\\<calendar-mode-map>\\[calendar-other-month] other") |
2056 'help-echo "mouse-2: choose another month" | 2056 'help-echo "mouse-2: choose another month" |
2057 'keymap (make-mode-line-mouse-map | 2057 'keymap (make-mode-line-mouse-map |
2058 'mouse-2 | 2058 'mouse-2 |
2059 (lambda () | 2059 (lambda () |
2060 (interactive) | 2060 (interactive) |
2061 (call-interactively | 2061 (call-interactively |
2062 'calendar-other-month)))) | 2062 'calendar-other-month)))) |
2063 "/" | 2063 "/" |
2068 'keymap (make-mode-line-mouse-map 'mouse-2 #'calendar-goto-today))) | 2068 'keymap (make-mode-line-mouse-map 'mouse-2 #'calendar-goto-today))) |
2069 '(calendar-date-string (calendar-current-date) t) | 2069 '(calendar-date-string (calendar-current-date) t) |
2070 (propertize (substitute-command-keys | 2070 (propertize (substitute-command-keys |
2071 "\\<calendar-mode-map>\\[scroll-calendar-right]") | 2071 "\\<calendar-mode-map>\\[scroll-calendar-right]") |
2072 'help-echo "mouse-2: scroll right" | 2072 'help-echo "mouse-2: scroll right" |
2073 'keymap (make-mode-line-mouse-map | 2073 'keymap (make-mode-line-mouse-map |
2074 'mouse-2 #'scroll-calendar-right))) | 2074 'mouse-2 #'scroll-calendar-right))) |
2075 "The mode line of the calendar buffer.") | 2075 "The mode line of the calendar buffer.") |
2076 | 2076 |
2077 (defun calendar-goto-info-node () | 2077 (defun calendar-goto-info-node () |
2078 "Go to the info node for the calendar." | 2078 "Go to the info node for the calendar." |