auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] A bug in TeX-clean?


From: Marcin Borkowski
Subject: [AUCTeX-devel] A bug in TeX-clean?
Date: Sat, 18 Apr 2015 22:15:50 +0200

Hi all,

here's a fragment of the TeX-clean function in tex.el:

,----
| (regexp (concat "\\("
|                        (regexp-quote (file-name-nondirectory master)) "\\|"
|                        (TeX-region-file nil t)
|                        "\\)"
|                        "\\("
|                        (mapconcat 'identity suffixes "\\|")
|                        "\\)\\'"
|                        "\\|" (TeX-region-file t t)))
`----

Shouldn't the call to TeX-region-file be wrapped in regexp-quote, too,
just in case the user changes TeX-region to something strange?

And while at it, why not use shy groups?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]