GNU bug report logs -
#48937
13.0.12; Paragraph filling with line that ends in % followed by comment
Previous Next
Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>
Date: Wed, 9 Jun 2021 14:59:02 UTC
Severity: normal
Found in version 13.0.12
Done: Tassilo Horn <tsdh <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Tassilo,
On Wed, 09 Jun 2021 at 16:05, Tassilo Horn <tsdh <at> gnu.org> wrote:
> Indeed, that's a corner case nobody has bothered to handle yet. I've
> pushed a fix to master. Please give it a try.
>
> If you don't have a git checkout handy, you can also `eval-defun' the
> function below containing the fix.
Thank you very much for the quick answer and fix.
I did try it out, and I admit that that regexp is a little daunting to
me. But I was particularly not understanding why the "[^\r\n\\]" before
`TeX-comment-start-regexp' in the patch. I still don't get its intent
well, but I could get it to fail again by a small adjustment of the ECM,
namely by removing the space between the `\%' and the comment character,
so that we have `\%%'. This case fails to match because "[^\r\n\\]" must
include one character before `TeX-comment-start-regexp'.
#+begin_src latex
\documentclass{article}
\begin{document}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus
elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur
dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer
id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque
habitant morbi tristique senectus et netus et malesuada fames ac
turpis egestas. 35\%% FIXME check this number
Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus
vestibulum urna fringilla ultrices.
\end{document}
#+end_src
Bye,
Gustavo.
This bug report was last modified 4 years and 42 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.