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
[Message part 1 (text/plain, inline)]
Your message dated Thu, 10 Jun 2021 13:41:39 +0200
with message-id <87czsuvtd7.fsf <at> gnu.org>
and subject line Re: bug#48937: 13.0.12; Paragraph filling with line that ends in % followed by comment
has caused the debbugs.gnu.org bug report #48937,
regarding 13.0.12; Paragraph filling with line that ends in % followed by comment
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
48937: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48937
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hi All,
When a paragraph containing a line whose text ends with a "legit" `\%'
and is followed by a comment, paragraph filling joins the following
paragraph content into the comment, when it shouldn't.
An ECM to reproduce the issue is: start `emacs -Q'.
Do an initial setup:
#+begin_src emacs-lisp
(add-to-list 'load-path "~/.emacs.d/elpa/auctex-13.0.12")
(load "auctex.el" nil t t)
(setq TeX-parse-self t)
(setq TeX-auto-save t)
#+end_src
Visit a `.tex' file with contents ("|" represents point position):
#+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
and call `M-q'. The result is:
#+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
Resulting in the undesired effect of the rest of the paragraph being
joined into the comment, of which it was not part before the filling.
(Note that this message may get filled (format-flowed) by the MUA, so
that the examples might not be immediately displayed as expected. Please
take that into consideration. I do hope it is still
understandable/reproducible.)
Best regards,
Gustavo.
[Message part 3 (message/rfc822, inline)]
>> Right. Should be fixed in git master or with the new definition below.
>
> Now I do understand that part of the regexp. And it looks good to me.
> Thank you very much once again.
You are welcome. I'm closing this issue now.
Bye,
Tassilo
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.