1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00

Default to PCRE syntax when reading .hgignore

* lisp/vc/vc-hg.el (vc-hg--slurp-hgignore-1):
Default to the PCRE syntax (bug#26249).
This commit is contained in:
Jim Blandy 2017-04-10 05:52:09 +03:00 committed by Dmitry Gutov
parent 9e1f45d98f
commit f3662966c3

View File

@ -826,7 +826,7 @@ if we don't understand a construct, we signal
prefix)))
(defun vc-hg--slurp-hgignore-1 (hgignore prefix)
(let ((default-syntax 'vc-hg--hgignore-add-glob))
(let ((default-syntax 'vc-hg--hgignore-add-pcre))
(with-temp-buffer
(let ((attr (file-attributes hgignore)))
(when attr (insert-file-contents hgignore))