diff options
| author | Richard M. Stallman <rms@gnu.org> | 1994-03-10 18:54:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1994-03-10 18:54:44 +0000 |
| commit | a867a90a321479fd1a9028c6e4eef35d0abe2052 (patch) | |
| tree | cab68af924ce5a45546c85c60ce4dd668550e2c7 /lisp | |
| parent | 181c830f75417889c64060b46adc26af633874d9 (diff) | |
| download | emacs-a867a90a321479fd1a9028c6e4eef35d0abe2052.tar.gz | |
(shell-dynamic-complete-as-command): Make ignored-extensions
nil if comint-completion-fignore is nil.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/shell.el | 5 |
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 |
