aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-18 20:28:23 +0000
committerRichard M. Stallman1994-09-18 20:28:23 +0000
commit1ed30e752a465c8f34ed5ffce9ab9d6e2b064ff0 (patch)
tree0af5b513e629e50bc5e0695b4ba445cb0e91ecd0
parent93103d17bad048fd7625adeeca3ca1a495ec9c7c (diff)
downloademacs-1ed30e752a465c8f34ed5ffce9ab9d6e2b064ff0.tar.gz
emacs-1ed30e752a465c8f34ed5ffce9ab9d6e2b064ff0.zip
(shell-mode-map): Inherit comint-mode-map, but copy the completion menu.
-rw-r--r--lisp/shell.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 3a502634312..98c3b48fc69 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -252,12 +252,14 @@ Thus, this does not include the shell's current directory.")
252 252
253(defvar shell-mode-map nil) 253(defvar shell-mode-map nil)
254(cond ((not shell-mode-map) 254(cond ((not shell-mode-map)
255 (setq shell-mode-map (copy-keymap comint-mode-map)) 255 (setq shell-mode-map (nconc (make-sparse-keymap) comint-mode-map))
256 (define-key shell-mode-map "\C-c\C-f" 'shell-forward-command) 256 (define-key shell-mode-map "\C-c\C-f" 'shell-forward-command)
257 (define-key shell-mode-map "\C-c\C-b" 'shell-backward-command) 257 (define-key shell-mode-map "\C-c\C-b" 'shell-backward-command)
258 (define-key shell-mode-map "\t" 'comint-dynamic-complete) 258 (define-key shell-mode-map "\t" 'comint-dynamic-complete)
259 (define-key shell-mode-map "\M-?" 259 (define-key shell-mode-map "\M-?"
260 'comint-dynamic-list-filename-completions) 260 'comint-dynamic-list-filename-completions)
261 (define-key shell-mode-map [menu-bar completion]
262 (copy-keymap (lookup-key comint-mode-map [menu-bar completion])))
261 (define-key-after (lookup-key shell-mode-map [menu-bar completion]) 263 (define-key-after (lookup-key shell-mode-map [menu-bar completion])
262 [complete-env-variable] '("Complete Env. Variable Name" . 264 [complete-env-variable] '("Complete Env. Variable Name" .
263 shell-dynamic-complete-environment-variable) 265 shell-dynamic-complete-environment-variable)