[Top][All Lists]

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

bug#47757: 13.0.6; Point position after indent-for-tab-command with LaTe

From: Tassilo Horn
Subject: bug#47757: 13.0.6; Point position after indent-for-tab-command with LaTeX-syntactic-comments
Date: Sun, 18 Apr 2021 21:07:26 +0200
User-agent: mu4e 1.5.11; emacs 28.0.50

Hi Gustavo,

>>> Filling those comments within itemize and quote will not join those
>>> lines, whereas outside the environments it does.
>> Hm, indeed.  But that doesn't actually seem to come from the commend
>> being inside an environment but from the comment being indented.
> Despite that, shouldn't the contiguous lines be filled?

That's the question.  Given that long lines are still filled, I'm
tempted to say that contiguous short lines should also be joined.  OTOH,
I wouldn't be surprised if that's a feature...

Oh, yeah, I've just checked the docs (info "(auctex) Filling"):

--8<---------------cut here---------------start------------->8---
   Code comments are comments preceded by code or text in the same line.
Upon filling a region, code comments themselves will not get filled.
Filling is done from the start of the region to the line with the code
comment and continues after it.  In order to prevent overfull lines in
the source code, a linebreak will be inserted before the last
non-comment word by default.  This can be changed by customizing
'LaTeX-fill-break-before-code-comments'.  If you have overfull lines
with code comments you can fill those explicitely by calling
'LaTeX-fill-paragraph' or pressing 'M-q' with the cursor positioned on
them.  This will add linebreaks in the comment and indent subsequent
comment lines to the column of the comment in the first line of the code
comment.  In this special case 'M-q' only acts on the current line and
not on the whole paragraph.
--8<---------------cut here---------------end--------------->8---

So it seems like AUCTeX considers any comment not starting in column one
(zero?) as a code comment, and then it'll fill only that line and not
the complete comment paragraph.

Now the question is if whitespace qualifies as "code or text".  Most
probably it shouldn't but I'm not too sure.


reply via email to

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