home *** CD-ROM | disk | FTP | other *** search
- Start up a virgin Lucid Emacs 19.6 (lemacs -q).
-
- Type M-x shell (to define the following functions that are used).
-
- Put the following code in the *scratch* buffer:
-
- ---------------------------------------------------------------
- (setq comint-mode-map (make-keymap)) ;; 1
- (set-keymap-name comint-mode-map 'comint-mode-map) ;; 2
- (define-key comint-mode-map "\C-a" 'beginning-of-line) ;; 3
- (define-key comint-mode-map "\C-c\C-a" 'comint-bol) ;; 4
- (use-local-map comint-mode-map) ;; 5
- (setq shell-mode-map (make-keymap)) ;; 6
- (set-keymap-parent shell-mode-map comint-mode-map) ;; 7
- (set-keymap-name shell-mode-map 'shell-mode-map) ;; 8
- (define-key shell-mode-map "\C-c\C-p" 'send-invisible) ;; 9
- (use-local-map shell-mode-map) ;; 10
- (use-local-map comint-mode-map) ;; 11
- (keymap-parent shell-mode-map) ;; 12
- ---------------------------------------------------------------
-
- Evaluate lines 1 through 5 (make sure you hit C-x C-e *before* the
- comment on each line), then hit C-c C-a. You should go to the start
- of the line (i.e. 'comint-bol).
-
- Now evaluate lines 6 through 10, then hit C-c C-a. Lucid Emacs 19.6
- tells me that C-c C-a is not defined at this point. This is the bug.
-
- Now evaluate line 11. Hit C-c C-a, and you go to the start of the
- line as expected.
-
- Now evaluate line 12. #<keymap comint-mode-map> as expected.
-
- Is this a bug, or am I losing my mind ?
-
- --
- --------------------------------------------- _--_|\ |
- Rod Whitby (rwhitby@research.canon.oz.au) / \ |
- Canon Information Systems Research Australia \_.--._/ |
- 1 Thomas Holt Drive, North Ryde, N.S.W., 2113. v |
-
-