Mercurial > emacs
comparison lisp/shell.el @ 6885:3c007de39916
(shell-dynamic-complete-as-command): Don't match ignored-extensions if it's nil.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 14 Apr 1994 19:19:30 +0000 |
parents | 965beb0c97d2 |
children | 9888d3b32db3 |
comparison
equal
deleted
inserted
replaced
6884:58db14526c1d | 6885:3c007de39916 |
---|---|
700 ;; Go thru each completion found, to see whether it should be used. | 700 ;; Go thru each completion found, to see whether it should be used. |
701 (while comps-in-path | 701 (while comps-in-path |
702 (setq file (car comps-in-path) | 702 (setq file (car comps-in-path) |
703 filepath (concat path file)) | 703 filepath (concat path file)) |
704 (if (and (not (member file completions)) | 704 (if (and (not (member file completions)) |
705 (not (string-match ignored-extensions file)) | 705 (not (and ignored-extensions |
706 (string-match ignored-extensions file))) | |
706 (or (string-equal path cwd) | 707 (or (string-equal path cwd) |
707 (not (file-directory-p filepath))) | 708 (not (file-directory-p filepath))) |
708 (or (null shell-completion-execonly) | 709 (or (null shell-completion-execonly) |
709 (file-executable-p filepath))) | 710 (file-executable-p filepath))) |
710 (setq completions (cons file completions))) | 711 (setq completions (cons file completions))) |