1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

(PC-expand-many-files): Apply completion-ignored-extensions.

This commit is contained in:
Karl Heuer 1998-03-23 00:29:43 +00:00
parent cb58a6d07e
commit 68a8818d73

View File

@ -836,9 +836,23 @@ or properties are considered."
(delete-backward-char 1)
(insert "\")")
(goto-char (point-min))
(let ((files (read (current-buffer))))
(let ((files (read (current-buffer))) (p nil))
(kill-buffer (current-buffer))
files))))
(or (equal completion-ignored-extensions PC-ignored-extensions)
(setq PC-ignored-regexp
(concat "\\("
(mapconcat
'regexp-quote
(setq PC-ignored-extensions
completion-ignored-extensions)
"\\|")
"\\)\\'")))
(setq p nil)
(while files
(or (string-match PC-ignored-regexp (car files))
(setq p (cons (car files) p)))
(setq files (cdr files)))
p))))
;;; Facilities for loading C header files. This is independent from the
;;; main completion code. See also the variable `PC-include-file-path'