Hi,

"TeX-clean" fails for files whose name contain characters that have a
special meaning in regexps--like "a+b.tex". This can easily prevented
by not entering the file name(s) literally in "TeX-clean"'s regexp. An
appropriate patch is appended.

Dirk
diff -r 2471b0509cd5 src/tex.el
--- a/src/tex.el	Fri Jan 30 20:17:30 2009 +0100
+++ b/src/tex.el	Fri Feb 06 21:15:08 2009 +0100
@@ -1409,13 +1409,13 @@
 	 (master (TeX-active-master))
 	 (master-dir (file-name-directory master))
 	 (regexp (concat "\\("
-			 (file-name-nondirectory master) "\\|"
-			 (TeX-region-file nil t)
+			 (regexp-quote (file-name-nondirectory master)) "\\|"
+			 (regexp-quote (TeX-region-file nil t))
 			 "\\)"
 			 "\\("
 			 (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
_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to