diff options
| author | Chong Yidong | 2006-12-23 19:07:12 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-12-23 19:07:12 +0000 |
| commit | 25ccbfee2f724a038aa01a53c14c976d30fa4d54 (patch) | |
| tree | 330c5fe4a4bf75eb3cb6ababfb47b297af8eccd4 | |
| parent | 3ea944838e641ccd586da318dfcb7c71f623e1ed (diff) | |
| download | emacs-25ccbfee2f724a038aa01a53c14c976d30fa4d54.tar.gz emacs-25ccbfee2f724a038aa01a53c14c976d30fa4d54.zip | |
(calendar-mode-map): Switch < and >.
(calendar-mode-line-format): Use mouse-1 bindings, and tweak formatting.
| -rw-r--r-- | lisp/calendar/calendar.el | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index c5e7f85f51b..c0249223a06 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -2199,12 +2199,12 @@ movement commands will not work correctly." | |||
| 2199 | downcase-region upcase-region kill-region | 2199 | downcase-region upcase-region kill-region |
| 2200 | copy-region-as-kill capitalize-region write-region)) | 2200 | copy-region-as-kill capitalize-region write-region)) |
| 2201 | (define-key map (vector 'remap c) 'calendar-not-implemented)) | 2201 | (define-key map (vector 'remap c) 'calendar-not-implemented)) |
| 2202 | (define-key map ">" 'scroll-calendar-right) | 2202 | (define-key map "<" 'scroll-calendar-right) |
| 2203 | (define-key map "\C-x>" 'scroll-calendar-right) | 2203 | (define-key map "\C-x<" 'scroll-calendar-right) |
| 2204 | (define-key map [prior] 'scroll-calendar-right-three-months) | 2204 | (define-key map [prior] 'scroll-calendar-right-three-months) |
| 2205 | (define-key map "\ev" 'scroll-calendar-right-three-months) | 2205 | (define-key map "\ev" 'scroll-calendar-right-three-months) |
| 2206 | (define-key map "<" 'scroll-calendar-left) | 2206 | (define-key map ">" 'scroll-calendar-left) |
| 2207 | (define-key map "\C-x<" 'scroll-calendar-left) | 2207 | (define-key map "\C-x>" 'scroll-calendar-left) |
| 2208 | (define-key map [next] 'scroll-calendar-left-three-months) | 2208 | (define-key map [next] 'scroll-calendar-left-three-months) |
| 2209 | (define-key map "\C-v" 'scroll-calendar-left-three-months) | 2209 | (define-key map "\C-v" 'scroll-calendar-left-three-months) |
| 2210 | (define-key map "\C-b" 'calendar-backward-day) | 2210 | (define-key map "\C-b" 'calendar-backward-day) |
| @@ -2337,42 +2337,40 @@ movement commands will not work correctly." | |||
| 2337 | 2337 | ||
| 2338 | (defvar calendar-mode-line-format | 2338 | (defvar calendar-mode-line-format |
| 2339 | (list | 2339 | (list |
| 2340 | (propertize (substitute-command-keys | 2340 | (propertize "<" |
| 2341 | "\\<calendar-mode-map>\\[scroll-calendar-left]") | 2341 | 'help-echo "mouse-1: previous month" |
| 2342 | 'help-echo "mouse-2: scroll left" | ||
| 2343 | 'mouse-face 'mode-line-highlight | 2342 | 'mouse-face 'mode-line-highlight |
| 2344 | 'keymap (make-mode-line-mouse-map 'mouse-2 | 2343 | 'keymap (make-mode-line-mouse-map 'mouse-1 |
| 2345 | 'mouse-scroll-calendar-left)) | 2344 | 'mouse-scroll-calendar-right)) |
| 2346 | "Calendar" | 2345 | "Calendar" |
| 2347 | (concat | 2346 | (concat |
| 2348 | (propertize | 2347 | (propertize |
| 2349 | (substitute-command-keys | 2348 | (substitute-command-keys |
| 2350 | "\\<calendar-mode-map>\\[calendar-goto-info-node] info") | 2349 | "\\<calendar-mode-map>\\[calendar-goto-info-node] info") |
| 2351 | 'help-echo "mouse-2: read Info on Calendar" | 2350 | 'help-echo "mouse-1: read Info on Calendar" |
| 2352 | 'mouse-face 'mode-line-highlight | 2351 | 'mouse-face 'mode-line-highlight |
| 2353 | 'keymap (make-mode-line-mouse-map 'mouse-2 'calendar-goto-info-node)) | 2352 | 'keymap (make-mode-line-mouse-map 'mouse-1 'calendar-goto-info-node)) |
| 2354 | "/" | 2353 | " / " |
| 2355 | (propertize | 2354 | (propertize |
| 2356 | (substitute-command-keys | 2355 | (substitute-command-keys |
| 2357 | "\\<calendar-mode-map>\\[calendar-other-month] other") | 2356 | " \\<calendar-mode-map>\\[calendar-other-month] other") |
| 2358 | 'help-echo "mouse-2: choose another month" | 2357 | 'help-echo "mouse-1: choose another month" |
| 2359 | 'mouse-face 'mode-line-highlight | 2358 | 'mouse-face 'mode-line-highlight |
| 2360 | 'keymap (make-mode-line-mouse-map | 2359 | 'keymap (make-mode-line-mouse-map |
| 2361 | 'mouse-2 'mouse-calendar-other-month)) | 2360 | 'mouse-1 'mouse-calendar-other-month)) |
| 2362 | "/" | 2361 | " / " |
| 2363 | (propertize | 2362 | (propertize |
| 2364 | (substitute-command-keys | 2363 | (substitute-command-keys |
| 2365 | "\\<calendar-mode-map>\\[calendar-goto-today] today") | 2364 | "\\<calendar-mode-map>\\[calendar-goto-today] today") |
| 2366 | 'help-echo "mouse-2: go to today's date" | 2365 | 'help-echo "mouse-1: go to today's date" |
| 2367 | 'mouse-face 'mode-line-highlight | 2366 | 'mouse-face 'mode-line-highlight |
| 2368 | 'keymap (make-mode-line-mouse-map 'mouse-2 #'calendar-goto-today))) | 2367 | 'keymap (make-mode-line-mouse-map 'mouse-1 #'calendar-goto-today))) |
| 2369 | '(calendar-date-string (calendar-current-date) t) | 2368 | '(calendar-date-string (calendar-current-date) t) |
| 2370 | (propertize (substitute-command-keys | 2369 | (propertize ">" |
| 2371 | "\\<calendar-mode-map>\\[scroll-calendar-right]") | 2370 | 'help-echo "mouse-1: next month" |
| 2372 | 'help-echo "mouse-2: scroll right" | ||
| 2373 | 'mouse-face 'mode-line-highlight | 2371 | 'mouse-face 'mode-line-highlight |
| 2374 | 'keymap (make-mode-line-mouse-map | 2372 | 'keymap (make-mode-line-mouse-map |
| 2375 | 'mouse-2 'mouse-scroll-calendar-right))) | 2373 | 'mouse-1 'mouse-scroll-calendar-left))) |
| 2376 | "The mode line of the calendar buffer. | 2374 | "The mode line of the calendar buffer. |
| 2377 | 2375 | ||
| 2378 | This must be a list of items that evaluate to strings--those strings are | 2376 | This must be a list of items that evaluate to strings--those strings are |