branch: externals/auctex
commit e80221c87ebf5eaa4b718afe62ab169428146c0e
Author: Tassilo Horn <t...@gnu.org>
Commit: Tassilo Horn <t...@gnu.org>

    Regexp-quote TeX-region-file in TeX-clean
    
    * tex.el (TeX-clean): Also regexp-quote TeX-region-file.
---
 ChangeLog |    4 ++++
 tex.el    |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 68ef016..bbceee7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-19  Tassilo Horn  <t...@gnu.org>
+
+       * tex.el (TeX-clean): Also regexp-quote TeX-region-file.
+
 2015-04-17  Tassilo Horn  <t...@gnu.org>
 
        * preview.el.in (preview-datadir, preview-lispdir): Delete these
diff --git a/tex.el b/tex.el
index 394814e..82ddf95 100644
--- a/tex.el
+++ b/tex.el
@@ -2020,7 +2020,7 @@ output files."
                         "\\("
                         (mapconcat 'identity suffixes "\\|")
                         "\\)\\'"
-                        "\\|" (TeX-region-file t t)))
+                        "\\|" (regexp-quote (TeX-region-file t t))))
         (files (when regexp
                  (directory-files (or master-dir ".") nil regexp))))
     (if files

Reply via email to