Mercurial > emacs
diff lisp/shell.el @ 6295:59a6684e8057
(shell-dynamic-complete-as-command): Make ignored-extensions
nil if comint-completion-fignore is nil.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Thu, 10 Mar 1994 18:54:44 +0000 |
| parents | 277d9ace9f5d |
| children | 965beb0c97d2 |
line wrap: on
line diff
--- a/lisp/shell.el Thu Mar 10 17:23:56 1994 +0000 +++ b/lisp/shell.el Thu Mar 10 18:54:44 1994 +0000 @@ -688,8 +688,9 @@ (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
