comparison lisp/comint.el @ 15817:9e94b5fdaab1

(comint-file-name-chars): Was comint-file-name-regexp. Give it a non-nil default value.
author Richard M. Stallman <rms@gnu.org>
date Thu, 01 Aug 1996 22:34:09 +0000
parents 6c3657019286
children 258a28c21b74
comparison
equal deleted inserted replaced
15816:e1e9df8a862e 15817:9e94b5fdaab1
117 ;; comint-input-autoexpand symbol ... 117 ;; comint-input-autoexpand symbol ...
118 ;; comint-input-ignoredups boolean ... 118 ;; comint-input-ignoredups boolean ...
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
126 ;; comint-output-filter-functions hook function modes. 126 ;; comint-output-filter-functions hook function modes.
127 ;; comint-input-filter function ... 127 ;; comint-input-filter function ...
395 (add-hook 'pre-command-hook 'comint-preinput-scroll-to-bottom) 395 (add-hook 'pre-command-hook 'comint-preinput-scroll-to-bottom)
396 (make-local-hook 'comint-output-filter-functions) 396 (make-local-hook 'comint-output-filter-functions)
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
404 (if comint-mode-map 404 (if comint-mode-map
405 nil 405 nil
1825 (defvar comint-file-name-prefix "" 1825 (defvar comint-file-name-prefix ""
1826 "Prefix prepended to absolute file names taken from process input. 1826 "Prefix prepended to absolute file names taken from process input.
1827 This is used by comint's and shell's completion functions, and by shell's 1827 This is used by comint's and shell's completion functions, and by shell's
1828 directory tracking functions.") 1828 directory 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
1833 This is a good thing to set in mode hooks.") 1836 This is a good thing to set in mode hooks.")
1834 1837
1835 (defvar comint-file-name-quote-list nil 1838 (defvar comint-file-name-quote-list nil
1836 "List of characters to quote with `\\' when in a file name. 1839 "List of characters to quote with `\\' when in a file name.
1882 name)) 1885 name))
1883 1886
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.
1886 Environment variables are substituted. See `comint-word'." 1889 Environment 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
1891 1894
1892 (defun comint-quote-filename (filename) 1895 (defun comint-quote-filename (filename)