[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] Re: 2006-10-04; Filling `` \ %\nFoo''
From: |
Reiner Steib |
Subject: |
[Bug-AUCTeX] Re: 2006-10-04; Filling `` \ %\nFoo'' |
Date: |
Sat, 07 Oct 2006 12:04:28 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On Fri, Oct 06 2006, Ralf Angeli wrote:
> The bug is caused by a regexp for detecting code comments in
> `LaTeX-fill-region-as-paragraph' failing on "\ %". The respective
> function call is something like
> (re-search-forward "[^ \t\r\n%\\]\\([ \t]\\|\\\\\\\\\\)*%" nil t)
>
> I'd propose to change this to
> (re-search-forward "[^\r\n%\\]\\([ \t]\\|\\\\\\\\\\)*%" nil t)
> unless someone can come up with a false positive or negative for this
> regexp when detecting code comments.
Thanks, works for me. I didn't test it intensively, though. Probably
we should have some LaTeX documents for automatic regression test,
especially for filling.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/