summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-03-10 18:54:44 +0000
committerRichard M. Stallman <rms@gnu.org>1994-03-10 18:54:44 +0000
commit9850dd8c255e8fb190e79973ffdcc5a2dd9eda78 (patch)
tree5ac9f4f518722617cb14ff9ac1c84b8a0e6032b7 /lisp/shell.el
parent80b2e415b693425dd40d412282b55a60222da70e (diff)
downloademacs-9850dd8c255e8fb190e79973ffdcc5a2dd9eda78.tar.gz
(shell-dynamic-complete-as-command): Make ignored-extensions
nil if comint-completion-fignore is nil.
Diffstat (limited to 'lisp/shell.el')
-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."
(paths (cdr (reverse exec-path)))
(cwd (file-name-as-directory (expand-file-name default-directory)))
(ignored-extensions
- (mapconcat (function (lambda (x) (concat (regexp-quote x) "$")))
- comint-completion-fignore "\\|"))
+ (and comint-completion-fignore
+ (mapconcat (function (lambda (x) (concat (regexp-quote x) "$")))
+ comint-completion-fignore "\\|")))
(path "") (comps-in-path ()) (file "") (filepath "") (completions ()))
;; Go thru each path in the search path, finding completions.
(while paths