Mercurial > emacs
changeset 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 | 6044f2615082 |
children | a1b438e4754b |
files | lisp/shell.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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