aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1995-04-03 13:01:15 +0000
committerSimon Marshall1995-04-03 13:01:15 +0000
commit7b4c65034c0081cd144a77b22f8a0214b51e4f86 (patch)
tree7b274ad932bfb7ecdc55fcd30bb892cd50a5db63
parent8e583b5d13cca1e6f0a1fe137dc20fa21d83b0f4 (diff)
downloademacs-7b4c65034c0081cd144a77b22f8a0214b51e4f86.tar.gz
emacs-7b4c65034c0081cd144a77b22f8a0214b51e4f86.zip
Set comint-file-name-quote-list to new shell-file-name-quote-list.
-rw-r--r--lisp/shell.el27
1 files changed, 19 insertions, 8 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 68ddbed3649..e75878deb26 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -83,14 +83,15 @@
83;;; comint-mode-hook is the comint mode hook. 83;;; comint-mode-hook is the comint mode hook.
84 84
85;;; Shell Mode Commands: 85;;; Shell Mode Commands:
86;;; shell Fires up the shell process 86;;; shell Fires up the shell process
87;;; tab comint-dynamic-complete Complete filename/command/history 87;;; tab comint-dynamic-complete Complete filename/command/history
88;;; m-? comint-dynamic-list-filename-completions List completions in help buffer 88;;; m-? comint-dynamic-list-filename-completions
89;;; m-c-f shell-forward-command Forward a shell command 89;;; List completions in help buffer
90;;; m-c-b shell-backward-command Backward a shell command 90;;; m-c-f shell-forward-command Forward a shell command
91;;; dirs Resync the buffer's dir stack 91;;; m-c-b shell-backward-command Backward a shell command
92;;; dirtrack-toggle Turn dir tracking on/off 92;;; dirs Resync the buffer's dir stack
93;;; comint-strip-ctrl-m Remove trailing ^Ms from output 93;;; dirtrack-toggle Turn dir tracking on/off
94;;; comint-strip-ctrl-m Remove trailing ^Ms from output
94;;; 95;;;
95;;; The shell mode hook is shell-mode-hook 96;;; The shell mode hook is shell-mode-hook
96;;; comint-prompt-regexp is initialised to shell-prompt-pattern, for backwards 97;;; comint-prompt-regexp is initialised to shell-prompt-pattern, for backwards
@@ -134,6 +135,15 @@ shell buffer. The default is (?\\| ?& ?< ?> ?\\( ?\\) ?\\;).
134 135
135This is a fine thing to set in your `.emacs' file.") 136This is a fine thing to set in your `.emacs' file.")
136 137
138(defvar shell-file-name-quote-list
139 (append shell-delimiter-argument-list '(?\ ?\* ?\! ?\" ?\' ?\`))
140 "List of characters to quote when in a file name.
141This variable is used to initialize `comint-file-name-quote-list' in the
142shell buffer. The default is (?\ ?\* ?\! ?\" ?\' ?\`) plus characters
143in `shell-delimiter-argument-list'.
144
145This is a fine thing to set in your `.emacs' file.")
146
137(defvar shell-dynamic-complete-functions 147(defvar shell-dynamic-complete-functions
138 '(comint-replace-by-expanded-history 148 '(comint-replace-by-expanded-history
139 shell-dynamic-complete-environment-variable 149 shell-dynamic-complete-environment-variable
@@ -307,6 +317,7 @@ buffer."
307 (setq comint-prompt-regexp shell-prompt-pattern) 317 (setq comint-prompt-regexp shell-prompt-pattern)
308 (setq comint-completion-fignore shell-completion-fignore) 318 (setq comint-completion-fignore shell-completion-fignore)
309 (setq comint-delimiter-argument-list shell-delimiter-argument-list) 319 (setq comint-delimiter-argument-list shell-delimiter-argument-list)
320 (setq comint-file-name-quote-list shell-file-name-quote-list)
310 (setq comint-dynamic-complete-functions shell-dynamic-complete-functions) 321 (setq comint-dynamic-complete-functions shell-dynamic-complete-functions)
311 (make-local-variable 'paragraph-start) 322 (make-local-variable 'paragraph-start)
312 (setq paragraph-start comint-prompt-regexp) 323 (setq paragraph-start comint-prompt-regexp)