emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#48937: closed (13.0.12; Paragraph filling with line that ends in % f


From: GNU bug Tracking System
Subject: bug#48937: closed (13.0.12; Paragraph filling with line that ends in % followed by comment )
Date: Thu, 10 Jun 2021 11:43:01 +0000

Your message dated Thu, 10 Jun 2021 13:41:39 +0200
with message-id <87czsuvtd7.fsf@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@gnu.org.)


-- 
48937: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48937
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 13.0.12; Paragraph filling with line that ends in % followed by comment Date: Wed, 09 Jun 2021 11:58:46 -0300 User-agent: mu4e 1.4.15; emacs 27.2
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.



--- End Message ---
--- Begin Message --- Subject: Re: bug#48937: 13.0.12; Paragraph filling with line that ends in % followed by comment Date: Thu, 10 Jun 2021 13:41:39 +0200 User-agent: mu4e 1.5.13; emacs 28.0.50
>> 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



--- End Message ---

reply via email to

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