diff options
| author | Karl Heuer | 1998-03-23 00:29:43 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-03-23 00:29:43 +0000 |
| commit | 68a8818d73e611545e5c30c8500217a89d2e5f7a (patch) | |
| tree | c997286a8c1f6bc066847f5b6cb79fb623386ae5 | |
| parent | cb58a6d07eec1e9473af6de045526a6149f80c9e (diff) | |
| download | emacs-68a8818d73e611545e5c30c8500217a89d2e5f7a.tar.gz emacs-68a8818d73e611545e5c30c8500217a89d2e5f7a.zip | |
(PC-expand-many-files): Apply completion-ignored-extensions.
| -rw-r--r-- | lisp/complete.el | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lisp/complete.el b/lisp/complete.el index 022e9aebafb..e007f53e0de 100644 --- a/lisp/complete.el +++ b/lisp/complete.el | |||
| @@ -836,9 +836,23 @@ or properties are considered." | |||
| 836 | (delete-backward-char 1) | 836 | (delete-backward-char 1) |
| 837 | (insert "\")") | 837 | (insert "\")") |
| 838 | (goto-char (point-min)) | 838 | (goto-char (point-min)) |
| 839 | (let ((files (read (current-buffer)))) | 839 | (let ((files (read (current-buffer))) (p nil)) |
| 840 | (kill-buffer (current-buffer)) | 840 | (kill-buffer (current-buffer)) |
| 841 | files)))) | 841 | (or (equal completion-ignored-extensions PC-ignored-extensions) |
| 842 | (setq PC-ignored-regexp | ||
| 843 | (concat "\\(" | ||
| 844 | (mapconcat | ||
| 845 | 'regexp-quote | ||
| 846 | (setq PC-ignored-extensions | ||
| 847 | completion-ignored-extensions) | ||
| 848 | "\\|") | ||
| 849 | "\\)\\'"))) | ||
| 850 | (setq p nil) | ||
| 851 | (while files | ||
| 852 | (or (string-match PC-ignored-regexp (car files)) | ||
| 853 | (setq p (cons (car files) p))) | ||
| 854 | (setq files (cdr files))) | ||
| 855 | p)))) | ||
| 842 | 856 | ||
| 843 | ;;; Facilities for loading C header files. This is independent from the | 857 | ;;; Facilities for loading C header files. This is independent from the |
| 844 | ;;; main completion code. See also the variable `PC-include-file-path' | 858 | ;;; main completion code. See also the variable `PC-include-file-path' |