diff options
| author | Jim Blandy | 2017-04-10 05:52:09 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2017-04-10 05:52:40 +0300 |
| commit | f3662966c3e8caded696dfd9f0e5d61666c4f886 (patch) | |
| tree | 2746d5cf6c5ef42fc6d97a5262e5ebddba2d47e7 | |
| parent | 9e1f45d98f82278845b57fce9796142c8e3bf778 (diff) | |
| download | emacs-f3662966c3e8caded696dfd9f0e5d61666c4f886.tar.gz emacs-f3662966c3e8caded696dfd9f0e5d61666c4f886.zip | |
Default to PCRE syntax when reading .hgignore
* lisp/vc/vc-hg.el (vc-hg--slurp-hgignore-1):
Default to the PCRE syntax (bug#26249).
| -rw-r--r-- | lisp/vc/vc-hg.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index 8a2b07718cf..e10daad72f0 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el | |||
| @@ -826,7 +826,7 @@ if we don't understand a construct, we signal | |||
| 826 | prefix))) | 826 | prefix))) |
| 827 | 827 | ||
| 828 | (defun vc-hg--slurp-hgignore-1 (hgignore prefix) | 828 | (defun vc-hg--slurp-hgignore-1 (hgignore prefix) |
| 829 | (let ((default-syntax 'vc-hg--hgignore-add-glob)) | 829 | (let ((default-syntax 'vc-hg--hgignore-add-pcre)) |
| 830 | (with-temp-buffer | 830 | (with-temp-buffer |
| 831 | (let ((attr (file-attributes hgignore))) | 831 | (let ((attr (file-attributes hgignore))) |
| 832 | (when attr (insert-file-contents hgignore)) | 832 | (when attr (insert-file-contents hgignore)) |