auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Small bug: auto-fill before commented text


From: gojjoe
Subject: [AUCTeX] Small bug: auto-fill before commented text
Date: Fri, 15 Feb 2019 12:10:30 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

Hi all,

I've noticed a little bug when auto-fill operates on a line finishing with a 
"%". To reproduce:

1. Activate auto-fill-mode in a tex file with LaTeX mode.

2. Set fill-column to some value; here I use 20.

3. Suppose you have a line like this:

123456789% commented

4. Now you'd like to add some more text right before the "%", eg "-1234567890 
abc".

Note that "123456789-1234567890" is twenty characters long, so auto-fill should 
automatically insert a newline as we type the space after "0". Expected result:

123456789-1234567890
abc% commented


Instead I get this:

123456789-1234567890
% abccommented

That is, my text has been continued  *within* the comment, which wasn't my 
intention


– Further info:

A. If the text before the comment is *already longer* than auto-fill-column 
when I type the space, and if auto-fill can carry some previous text to the new 
line, then everything works correctly. For example, If I have

123456789% commented

And now I type " 1234567890X abc" (note: space instead of "-") right before the 
"%", I get

123456789
1234567890X abc% commented

as desired.

B. The length of the text after "%" seems to be irrelevant for the issue.



Can you reproduce this? Let me know what additional info to provide.

Cheers!
J

AUCTeX version: 12.1.1
GNU Emacs 26.1 (build 1, i686-w64-mingw32) of 2018-05-30
Windows 7 32-bit





reply via email to

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