2016-01-24 15:14 GMT+01:00 Mosè Giordano <[email protected]>:
> The obvious
> fix would be to do said test, but I fear parsing time would increase
> sensibly. I should do some tests.
In a 1850-line-long document of mine, parsing time increases by a
factor of 3 when including the test for verbatim mode. I don't think
this is acceptable.
For those wanting to test, this is the patch for `TeX-auto-parse-region':
--- a/tex.el
+++ b/tex.el
@@ -4065,7 +4065,8 @@ you should not use something like `[\\(]' for a
character range."
(match-beginning (car b))))))
(symbol (nth 2 entry))
(match (nth 1 entry)))
- (unless (TeX-in-comment)
+ (unless (or (TeX-in-comment)
+ (TeX-verbatim-p))
(looking-at (nth 0 entry))
(if (fboundp symbol)
(funcall symbol match)
Bye,
Mosè
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex