diff options
| author | Richard M. Stallman | 1994-04-16 00:21:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-16 00:21:29 +0000 |
| commit | 6b39e127f6467866729ff5d9d8192ed3c0c0e5c6 (patch) | |
| tree | 7d28e611bade5fdbf678c004a517b629ded40860 | |
| parent | 1de8d93d08ada0afae0b6999d5ca7fa43483ea11 (diff) | |
| download | emacs-6b39e127f6467866729ff5d9d8192ed3c0c0e5c6.tar.gz emacs-6b39e127f6467866729ff5d9d8192ed3c0c0e5c6.zip | |
(calendar-mode-map): Use substitute-key-definition.
Don't mess with kill-region and copy-region-as-kill.
| -rw-r--r-- | lisp/calendar/calendar.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 733c37c8b6d..c2c02d91b95 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -1450,16 +1450,17 @@ the inserted text. Value is always t." | |||
| 1450 | (if window-system (require 'cal-menu)) | 1450 | (if window-system (require 'cal-menu)) |
| 1451 | (calendar-for-loop i from 0 to 9 do | 1451 | (calendar-for-loop i from 0 to 9 do |
| 1452 | (define-key calendar-mode-map (int-to-string i) 'digit-argument)) | 1452 | (define-key calendar-mode-map (int-to-string i) 'digit-argument)) |
| 1453 | ;; kill-region and copy-region-as-kill are omitted from this list | ||
| 1454 | ;; because they cause an ugly second pane in the Edit menu. | ||
| 1453 | (let ((l (list 'narrow-to-region 'mark-word 'mark-sexp 'mark-paragraph | 1455 | (let ((l (list 'narrow-to-region 'mark-word 'mark-sexp 'mark-paragraph |
| 1454 | 'mark-defun 'mark-whole-buffer 'mark-page 'kill-region | 1456 | 'mark-defun 'mark-whole-buffer 'mark-page |
| 1455 | 'copy-region-as-kill 'downcase-region 'upcase-region | 1457 | 'downcase-region 'upcase-region |
| 1456 | 'capitalize-region 'write-region))) | 1458 | 'capitalize-region 'write-region))) |
| 1457 | (while (car l) | 1459 | |
| 1458 | (let ((k (where-is-internal (car l) '(keymap)))) | 1460 | (while l |
| 1459 | (while (car k) | 1461 | (substitute-key-definition (car l) 'calendar-not-implemented |
| 1460 | (define-key calendar-mode-map (car k) 'calendar-not-implemented) | 1462 | calendar-mode-map global-map) |
| 1461 | (setq k (cdr k))) | 1463 | (setq l (cdr l)))) |
| 1462 | (setq l (cdr l))))) | ||
| 1463 | (define-key calendar-mode-map "-" 'negative-argument) | 1464 | (define-key calendar-mode-map "-" 'negative-argument) |
| 1464 | (define-key calendar-mode-map "\C-x>" 'scroll-calendar-right) | 1465 | (define-key calendar-mode-map "\C-x>" 'scroll-calendar-right) |
| 1465 | (define-key calendar-mode-map [prior] 'scroll-calendar-right-three-months) | 1466 | (define-key calendar-mode-map [prior] 'scroll-calendar-right-three-months) |