]> code.delx.au - gnu-emacs/commitdiff
(shell-mode-map): Inherit comint-mode-map, but copy the completion menu.
authorRichard M. Stallman <rms@gnu.org>
Sun, 18 Sep 1994 20:28:23 +0000 (20:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 18 Sep 1994 20:28:23 +0000 (20:28 +0000)
lisp/shell.el

index 3a5026343127e8b333ce851d403e87ce5cedc9a9..98c3b48fc696938a992bb298eb52a7354d05b180 100644 (file)
@@ -252,12 +252,14 @@ Thus, this does not include the shell's current directory.")
 
 (defvar shell-mode-map nil)
 (cond ((not shell-mode-map)
-       (setq shell-mode-map (copy-keymap comint-mode-map))
+       (setq shell-mode-map (nconc (make-sparse-keymap) comint-mode-map))
        (define-key shell-mode-map "\C-c\C-f" 'shell-forward-command)
        (define-key shell-mode-map "\C-c\C-b" 'shell-backward-command)
        (define-key shell-mode-map "\t" 'comint-dynamic-complete)
        (define-key shell-mode-map "\M-?"
         'comint-dynamic-list-filename-completions)
+       (define-key shell-mode-map [menu-bar completion]
+        (copy-keymap (lookup-key comint-mode-map [menu-bar completion])))
        (define-key-after (lookup-key shell-mode-map [menu-bar completion])
         [complete-env-variable] '("Complete Env. Variable Name" .
                                   shell-dynamic-complete-environment-variable)