aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-03-10 18:54:44 +0000
committerRichard M. Stallman1994-03-10 18:54:44 +0000
commita867a90a321479fd1a9028c6e4eef35d0abe2052 (patch)
treecab68af924ce5a45546c85c60ce4dd668550e2c7
parent181c830f75417889c64060b46adc26af633874d9 (diff)
downloademacs-a867a90a321479fd1a9028c6e4eef35d0abe2052.tar.gz
emacs-a867a90a321479fd1a9028c6e4eef35d0abe2052.zip
(shell-dynamic-complete-as-command): Make ignored-extensions
nil if comint-completion-fignore is nil.
-rw-r--r--lisp/shell.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 33a60fdedd9..369e0ac14d0 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -688,8 +688,9 @@ See `shell-dynamic-complete-filename'. Returns t if successful."
688 (paths (cdr (reverse exec-path))) 688 (paths (cdr (reverse exec-path)))
689 (cwd (file-name-as-directory (expand-file-name default-directory))) 689 (cwd (file-name-as-directory (expand-file-name default-directory)))
690 (ignored-extensions 690 (ignored-extensions
691 (mapconcat (function (lambda (x) (concat (regexp-quote x) "$"))) 691 (and comint-completion-fignore
692 comint-completion-fignore "\\|")) 692 (mapconcat (function (lambda (x) (concat (regexp-quote x) "$")))
693 comint-completion-fignore "\\|")))
693 (path "") (comps-in-path ()) (file "") (filepath "") (completions ())) 694 (path "") (comps-in-path ()) (file "") (filepath "") (completions ()))
694 ;; Go thru each path in the search path, finding completions. 695 ;; Go thru each path in the search path, finding completions.
695 (while paths 696 (while paths