GNU bug report logs -
#21645
Inquiry: reproducibility of a paragraph-fill bug
Previous Next
Reported by: gojjoe <at> gmail.com
Date: Thu, 8 Oct 2015 07:59:02 UTC
Severity: normal
Done: Tassilo Horn <tsdh <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21645 in the body.
You can then email your comments to 21645 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#21645
; Package
auctex
.
(Thu, 08 Oct 2015 07:59:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
gojjoe <at> gmail.com
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Thu, 08 Oct 2015 07:59:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi all,
I noticed that both fill-paragraph and LaTeX-fill-paragraph,
called on a paragraph that contains "\( ... \)" inline math,
will break lines after each "\)", except those on the last
line. For example ("*" indicates where lines break, in case
formatting is lost via email);
blah blah blah \(blah\)*
blah \(blah\)*
blah blah blah blah blah blah blah blah blah blah blah blah
blah blah*
blah blah \(blah\)*
blah blah blah blah blah blah blah blah blah blah blah blah
blah blah*
blah blah blah blah \(blah\) blah \(blah\) blah.
Weird behaviour, it appears also launching Emacs with the
--no-init-file option.
Can you reproduce this? If so, is this to be considered a
bug of fill.el or auctex?
Cheers,
J
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21645
; Package
auctex
.
(Thu, 08 Oct 2015 15:15:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 21645 <at> debbugs.gnu.org (full text, mbox):
gojjoe <at> gmail.com writes:
> I noticed that both fill-paragraph and LaTeX-fill-paragraph, called on a
> paragraph that contains "\( ... \)" inline math, will break lines after each
> "\)", except those on the last line. For example ("*" indicates where lines
> break, in case formatting is lost via email);
>
> blah blah blah \(blah\)*
> blah \(blah\)*
> blah blah blah blah blah blah blah blah blah blah blah blah blah blah*
> blah blah \(blah\)*
> blah blah blah blah blah blah blah blah blah blah blah blah blah blah*
> blah blah blah blah \(blah\) blah \(blah\) blah.
>
> Weird behaviour, it appears also launching Emacs with the --no-init-file
> option.
>
> Can you reproduce this? If so, is this to be considered a bug of fill.el or
> auctex?
Well, this is actually a feature:
,----[ C-h v LaTeX-fill-break-at-separators RET ]
| LaTeX-fill-break-at-separators is a variable defined in ‘latex.el’.
| Its value is (\\\( \\\) \\\[ \\\])
|
| Documentation:
| List of separators before or after which respectively a line
| break will be inserted if they do not fit into one line.
`----
,----[ (info "(auctex)Filling") ]
| -- User Option: LaTeX-fill-break-at-separators
| List of separators before or after which respectively linebreaks
| will be inserted if they do not fit into one line. The separators
| can be curly braces, brackets, switches for inline math ('$', '\(',
| '\)') and switches for display math ('\[', '\]'). Such formatting
| can be useful to make macros and math more visible or to prevent
| overfull lines in the LaTeX source in case a package for displaying
| formatted TeX output inside the Emacs buffer, like preview-latex,
| is used.
`----
The "if they do not fit into one line" part is a bit unclear. But I
think it means that a newline is inserted before \( if the formula is
longer than what's still fitting into the current line, and a newline is
inserted after \) when the remainder of the paragraph doesn't fit on the
current line anymore. Well, that second case seems dubious to me. I
don't understand why one would like to have that.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21645
; Package
auctex
.
(Thu, 08 Oct 2015 15:56:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 21645 <at> debbugs.gnu.org (full text, mbox):
Hi Tassilo,
Thank you very much. My bad, I should've checked this
beforehand (and it wasn't my intention to submit a bug). I
didn't imagine there could be such a (useful) feature – or I
would've expected it to apply to '$...$' as well by default.
Cheers!
J
On Thu151008 17:14, Tassilo Horn wrote:
> Well, this is actually a feature:
>
> ,----[ C-h v LaTeX-fill-break-at-separators RET ]
> | LaTeX-fill-break-at-separators is a variable defined in ‘latex.el’.
> | Its value is (\\\( \\\) \\\[ \\\])
> |
> | Documentation:
> | List of separators before or after which respectively a line
> | break will be inserted if they do not fit into one line.
> `----
>
> ,----[ (info "(auctex)Filling") ]
> | -- User Option: LaTeX-fill-break-at-separators
> | List of separators before or after which respectively linebreaks
> | will be inserted if they do not fit into one line. The separators
> | can be curly braces, brackets, switches for inline math ('$', '\(',
> | '\)') and switches for display math ('\[', '\]'). Such formatting
> | can be useful to make macros and math more visible or to prevent
> | overfull lines in the LaTeX source in case a package for displaying
> | formatted TeX output inside the Emacs buffer, like preview-latex,
> | is used.
> `----
>
> The "if they do not fit into one line" part is a bit unclear. But I
> think it means that a newline is inserted before \( if the formula is
> longer than what's still fitting into the current line, and a newline is
> inserted after \) when the remainder of the paragraph doesn't fit on the
> current line anymore. Well, that second case seems dubious to me. I
> don't understand why one would like to have that.
>
> Bye,
> Tassilo
>
Reply sent
to
Tassilo Horn <tsdh <at> gnu.org>
:
You have taken responsibility.
(Fri, 09 Oct 2015 06:02:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
gojjoe <at> gmail.com
:
bug acknowledged by developer.
(Fri, 09 Oct 2015 06:02:03 GMT)
Full text and
rfc822 format available.
Message #16 received at 21645-done <at> debbugs.gnu.org (full text, mbox):
gojjoe <at> gmail.com writes:
Hi!
> Thank you very much. My bad, I should've checked this beforehand (and it wasn't
> my intention to submit a bug). I didn't imagine there could be such a (useful)
> feature
Now you see. :-)
> – or I would've expected it to apply to '$...$' as well by default.
Yes, I think this has been a bug (at least since 2004) which I have
fixed right now. So now \(...\) and $...$ and \[...\] and $$...$$
should be treated equally.
I'm closing this bug.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21645
; Package
auctex
.
(Tue, 27 Oct 2015 18:13:02 GMT)
Full text and
rfc822 format available.
Message #19 received at submit <at> debbugs.gnu.org (full text, mbox):
On Fre 09 Okt 2015 (09:00:53 +0200) Tassilo Horn writes:
[...]
>
>> – or I would've expected it to apply to '$...$' as well by default.
>
> Yes, I think this has been a bug (at least since 2004) which I have
> fixed right now. So now \(...\) and $...$ and \[...\] and $$...$$
> should be treated equally.
>
> I'm closing this bug.
>
> Bye,
> Tassilo
>
Oh, no! tex source code filling is ugly now with inline (within text)
formulas - this is the environment \begin{math} ... \end{math}, the
LaTeX shorthand \( ... \) and the TeX shorthand $ ... $.
\[ ... \], $$ ... $$ and various environments such as \begin{equation}
... \end{equation} are different - displayed equation, on (a) separate
line(s) between the text.
Please revert!
Adrian Lanz.
[...]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21645
; Package
auctex
.
(Tue, 27 Oct 2015 18:30:05 GMT)
Full text and
rfc822 format available.
Message #22 received at 21645 <at> debbugs.gnu.org (full text, mbox):
Hi Adrian,
> Please revert!
You can revert to the original behaviour by customizing the
variable 'Latex-fill-break-at-separators', checking "Opening
Display Math Switch" and "Closing Display Math Switch" and
leaving the other options unchecked.
I think the developers are planning to setting this variable
that way by default, so the original behaviour (with respect
to $...$, but now also with respect to \(...\), more
consistently) will be restored.
Cheers,
J
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21645
; Package
auctex
.
(Tue, 27 Oct 2015 19:18:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 21645 <at> debbugs.gnu.org (full text, mbox):
Hi Adrian,
> Is this
>
> (setq Latex-fill-break-at-separators '(\\\( \\\) \\\[ \\\]))
>
> ?
You can change it either via the customization menu, like this:
– type:
M-x customize-variable [RET] LaTeX-fill-break-at-separators
[RET]
– Check "Opening Display Math Switch" and "Closing Display
Math Switch", uncheck all others;
– Left-click on "State" -> "Save for Future Sessions"
Or putting, similarly to what you proposed,
(setq LaTeX-fill-break-at-separators '(\\\[ \\\]))
in your init file (but I'm not sure at which point you
should insert this; for sure after auctex has been loaded).
Cheers,
J
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21645
; Package
auctex
.
(Wed, 28 Oct 2015 08:02:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 21645 <at> debbugs.gnu.org (full text, mbox):
gojjoe <at> gmail.com writes:
> I think the developers are planning to setting this variable that way
> by default, so the original behaviour (with respect to $...$, but now
> also with respect to \(...\), more consistently) will be restored.
Yes, I've just done that so 11.89 or the next ELPA release won't use
that special filling by default. :-)
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21645
; Package
auctex
.
(Wed, 28 Oct 2015 08:41:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 21645-done <at> debbugs.gnu.org (full text, mbox):
Tassilo Horn <tsdh <at> gnu.org> writes:
>> I think the developers are planning to setting this variable that way
>> by default, so the original behaviour (with respect to $...$, but now
>> also with respect to \(...\), more consistently) will be restored.
>
> Yes, I've just done that so 11.89 or the next ELPA release won't use
> that special filling by default. :-)
I'm closing this bug issue.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21645
; Package
auctex
.
(Wed, 28 Oct 2015 10:56:02 GMT)
Full text and
rfc822 format available.
Message #34 received at submit <at> debbugs.gnu.org (full text, mbox):
On Mit 28 Okt 2015 (09:01:28 +0100) Tassilo Horn writes:
> gojjoe <at> gmail.com writes:
>
>> I think the developers are planning to setting this variable that way
>> by default, so the original behaviour (with respect to $...$, but now
>> also with respect to \(...\), more consistently) will be restored.
>
> Yes, I've just done that so 11.89 or the next ELPA release won't use
> that special filling by default. :-)
>
> Bye,
> Tassilo
Great. Thanks!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 25 Nov 2015 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 208 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.