aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorSimon Marshall1996-07-12 07:34:20 +0000
committerSimon Marshall1996-07-12 07:34:20 +0000
commit39d1a2ce04c07f7dab3e615bad8efe7d5aefd62b (patch)
tree69c099b68c7ea26190b98293b7a298ddca238907 /lisp/shell.el
parent107d7589ed22c3b23a9903544286bd2c1910fe07 (diff)
downloademacs-39d1a2ce04c07f7dab3e615bad8efe7d5aefd62b.tar.gz
emacs-39d1a2ce04c07f7dab3e615bad8efe7d5aefd62b.zip
Bind shell-file-name-quote-list and shell-file-name-regexp specially for MSDOG.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el20
1 files changed, 16 insertions, 4 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 867c2919342..d0a55b393b1 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -130,16 +130,27 @@ This is a fine thing to set in your `.emacs' file.")
130(defvar shell-delimiter-argument-list '(?\| ?& ?< ?> ?\( ?\) ?\;) 130(defvar shell-delimiter-argument-list '(?\| ?& ?< ?> ?\( ?\) ?\;)
131 "List of characters to recognise as separate arguments. 131 "List of characters to recognise as separate arguments.
132This variable is used to initialize `comint-delimiter-argument-list' in the 132This variable is used to initialize `comint-delimiter-argument-list' in the
133shell buffer. The default is (?\\| ?& ?< ?> ?\\( ?\\) ?\\;). 133shell buffer. The value may depend on the operating system or shell.
134
135This is a fine thing to set in your `.emacs' file.")
136
137(defvar shell-file-name-regexp
138 (if (memq system-type '(ms-dos windows-nt))
139 "~/A-Za-z0-9_^$!#%&{}@`'.()-"
140 "~/A-Za-z0-9+@:_.$#%,={}-")
141 "Regexp of characters valid in a file name.
142This variable is used to initialize `comint-file-name-regexp' in the
143shell buffer. The value may depend on the operating system or shell.
134 144
135This is a fine thing to set in your `.emacs' file.") 145This is a fine thing to set in your `.emacs' file.")
136 146
137(defvar shell-file-name-quote-list 147(defvar shell-file-name-quote-list
138 (append shell-delimiter-argument-list '(?\ ?\* ?\! ?\" ?\' ?\`)) 148 (if (memq system-type '(ms-dos windows-nt))
149 nil
150 (append shell-delimiter-argument-list '(?\ ?\* ?\! ?\" ?\' ?\`)))
139 "List of characters to quote when in a file name. 151 "List of characters to quote when in a file name.
140This variable is used to initialize `comint-file-name-quote-list' in the 152This variable is used to initialize `comint-file-name-quote-list' in the
141shell buffer. The default is (?\ ?\* ?\! ?\" ?\' ?\`) plus characters 153shell buffer. The value may depend on the operating system or shell.
142in `shell-delimiter-argument-list'.
143 154
144This is a fine thing to set in your `.emacs' file.") 155This is a fine thing to set in your `.emacs' file.")
145 156
@@ -321,6 +332,7 @@ buffer."
321 (setq comint-prompt-regexp shell-prompt-pattern) 332 (setq comint-prompt-regexp shell-prompt-pattern)
322 (setq comint-completion-fignore shell-completion-fignore) 333 (setq comint-completion-fignore shell-completion-fignore)
323 (setq comint-delimiter-argument-list shell-delimiter-argument-list) 334 (setq comint-delimiter-argument-list shell-delimiter-argument-list)
335 (setq comint-file-name-regexp shell-file-name-regexp)
324 (setq comint-file-name-quote-list shell-file-name-quote-list) 336 (setq comint-file-name-quote-list shell-file-name-quote-list)
325 (setq comint-dynamic-complete-functions shell-dynamic-complete-functions) 337 (setq comint-dynamic-complete-functions shell-dynamic-complete-functions)
326 (make-local-variable 'paragraph-start) 338 (make-local-variable 'paragraph-start)