comparison lisp/shell.el @ 11186:54a20705cf02

Set comint-file-name-quote-list to new shell-file-name-quote-list.
author Simon Marshall <simon@gnu.org>
date Mon, 03 Apr 1995 13:01:15 +0000
parents df80277264ec
children d580a6f682b5
comparison
equal deleted inserted replaced
11185:6eb8397f165b 11186:54a20705cf02
81 ;;; comint-continue-subjob Useful if you accidentally suspend 81 ;;; comint-continue-subjob Useful if you accidentally suspend
82 ;;; top-level job 82 ;;; top-level job
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
97 ;;; compatibility. 98 ;;; compatibility.
98 99
129 130
130 (defvar shell-delimiter-argument-list '(?\| ?& ?< ?> ?\( ?\) ?\;) 131 (defvar shell-delimiter-argument-list '(?\| ?& ?< ?> ?\( ?\) ?\;)
131 "List of characters to recognise as separate arguments. 132 "List of characters to recognise as separate arguments.
132 This variable is used to initialize `comint-delimiter-argument-list' in the 133 This variable is used to initialize `comint-delimiter-argument-list' in the
133 shell buffer. The default is (?\\| ?& ?< ?> ?\\( ?\\) ?\\;). 134 shell buffer. The default is (?\\| ?& ?< ?> ?\\( ?\\) ?\\;).
135
136 This is a fine thing to set in your `.emacs' file.")
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.
141 This variable is used to initialize `comint-file-name-quote-list' in the
142 shell buffer. The default is (?\ ?\* ?\! ?\" ?\' ?\`) plus characters
143 in `shell-delimiter-argument-list'.
134 144
135 This is a fine thing to set in your `.emacs' file.") 145 This is a fine thing to set in your `.emacs' file.")
136 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
305 (setq mode-name "Shell") 315 (setq mode-name "Shell")
306 (use-local-map shell-mode-map) 316 (use-local-map shell-mode-map)
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)
313 (make-local-variable 'font-lock-defaults) 324 (make-local-variable 'font-lock-defaults)
314 (setq font-lock-defaults '(shell-font-lock-keywords t)) 325 (setq font-lock-defaults '(shell-font-lock-keywords t))