]> git.eshelyaron.com Git - emacs.git/commitdiff
(shell-dynamic-complete-as-command): Make ignored-extensions
authorRichard M. Stallman <rms@gnu.org>
Thu, 10 Mar 1994 18:54:44 +0000 (18:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 10 Mar 1994 18:54:44 +0000 (18:54 +0000)
nil if comint-completion-fignore is nil.

lisp/shell.el

index 33a60fdedd9fd7ab156b7d70997744b64295ffe0..369e0ac14d05f9ffdd1959274a6b99e3892510f6 100644 (file)
@@ -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