aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-08-01 22:34:09 +0000
committerRichard M. Stallman1996-08-01 22:34:09 +0000
commit2d4382e563eb19992933aad70f51923a9291e253 (patch)
treed2d2da6d2a96b0371a7ac85a27e136147a8244b6
parent42de618f8f4c2908a710b059f582e5808cd046b2 (diff)
downloademacs-2d4382e563eb19992933aad70f51923a9291e253.tar.gz
emacs-2d4382e563eb19992933aad70f51923a9291e253.zip
(comint-file-name-chars): Was comint-file-name-regexp.
Give it a non-nil default value.
-rw-r--r--lisp/comint.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index fd025e7b358..ae427e48dac 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -119,7 +119,7 @@
119;; comint-last-input-match string ... 119;; comint-last-input-match string ...
120;; comint-dynamic-complete-functions hook For the completion mechanism 120;; comint-dynamic-complete-functions hook For the completion mechanism
121;; comint-completion-fignore list ... 121;; comint-completion-fignore list ...
122;; comint-file-name-regexp regexp ... 122;; comint-file-name-chars string ...
123;; comint-file-name-quote-list list ... 123;; comint-file-name-quote-list list ...
124;; comint-get-old-input function Hooks for specific 124;; comint-get-old-input function Hooks for specific
125;; comint-input-filter-functions hook process-in-a-buffer 125;; comint-input-filter-functions hook process-in-a-buffer
@@ -397,7 +397,7 @@ Entry to this mode runs the hooks on `comint-mode-hook'."
397 (make-local-variable 'comint-ptyp) 397 (make-local-variable 'comint-ptyp)
398 (make-local-variable 'comint-exec-hook) 398 (make-local-variable 'comint-exec-hook)
399 (make-local-variable 'comint-process-echoes) 399 (make-local-variable 'comint-process-echoes)
400 (make-local-variable 'comint-file-name-regexp) 400 (make-local-variable 'comint-file-name-chars)
401 (make-local-variable 'comint-file-name-quote-list) 401 (make-local-variable 'comint-file-name-quote-list)
402 (run-hooks 'comint-mode-hook)) 402 (run-hooks 'comint-mode-hook))
403 403
@@ -1827,8 +1827,11 @@ Note that this applies to `comint-dynamic-complete-filename' only.")
1827This is used by comint's and shell's completion functions, and by shell's 1827This is used by comint's and shell's completion functions, and by shell's
1828directory tracking functions.") 1828directory tracking functions.")
1829 1829
1830(defvar comint-file-name-regexp nil 1830(defvar comint-file-name-chars
1831 "Regexp of characters valid in a file name. 1831 (if (memq system-type '(ms-dos windows-nt))
1832 "~/A-Za-z0-9_^$!#%&{}@`'.()-"
1833 "~/A-Za-z0-9+@:_.$#%,={}-")
1834 "String of characters valid in a file name.
1832 1835
1833This is a good thing to set in mode hooks.") 1836This is a good thing to set in mode hooks.")
1834 1837
@@ -1884,7 +1887,7 @@ interpreter (e.g., the percent notation of cmd.exe on NT)."
1884(defun comint-match-partial-filename () 1887(defun comint-match-partial-filename ()
1885 "Return the filename at point, or nil if non is found. 1888 "Return the filename at point, or nil if non is found.
1886Environment variables are substituted. See `comint-word'." 1889Environment variables are substituted. See `comint-word'."
1887 (let ((filename (comint-word comint-file-name-regexp))) 1890 (let ((filename (comint-word comint-file-name-chars)))
1888 (and filename (comint-substitute-in-file-name 1891 (and filename (comint-substitute-in-file-name
1889 (comint-unquote-filename filename))))) 1892 (comint-unquote-filename filename)))))
1890 1893