From: Richard M. Stallman Date: Thu, 10 Mar 1994 18:54:44 +0000 (+0000) Subject: (shell-dynamic-complete-as-command): Make ignored-extensions X-Git-Tag: emacs-19.34~9557 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a867a90a321479fd1a9028c6e4eef35d0abe2052;p=emacs.git (shell-dynamic-complete-as-command): Make ignored-extensions nil if comint-completion-fignore is nil. --- 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