bug-auctex
[Top][All Lists]
Advanced

[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: Gustavo Barros
Subject: bug#47757: 13.0.6; Point position after indent-for-tab-command with LaTeX-syntactic-comments
Date: Sat, 17 Apr 2021 23:35:22 -0300
User-agent: mu4e 1.4.15; emacs 27.2


On Wed, 14 Apr 2021 at 08:43, Gustavo Barros <gusbrs.2016@gmail.com> wrote:

Hi Tassilo,

On Wed, 14 Apr 2021 at 05:28, Tassilo Horn <tsdh@gnu.org> wrote:

I was able to reproduce the behavior by your very good recipe.
Basically, I like the behavior to move point to the actual comment text but the combination with `electric-indent-mode' is indeed very annyoing. I've changed it on our git master so that it'll jump after the % only if
the currently executing interactive command is an indentation command
(and not, e.g., `TeX-newline').

Here's the changed definition. Please eval it and see if you spot some
raw edges.

Thank you very much for looking into this.

I've tested (lightly) the new definition, it does indeed fixes the interaction with `electric-indent-mode' and, as far as I can tell, introduces no other
problems, and leaves no "raw edges" I could spot.

I'm sorry to report that I've missed a problem in my testing. The commit to fix the interaction between `LaTeX-back-to-indentation' and `electric-indent-mode' seems to have broken paragraph filling in comments.

To reproduce, use the same setup as the one used in the original report (only with the new released version) and visit a file with a long comment line. Now call `fill-paragraph' "M-q" with point in this comment line. The line is not filled. Either reverting to the old definition of `LaTeX-back-to-indentation' or disabling `LaTeX-syntactic-comments' brings back filling to working conditions.

Best regards,
Gustavo.





reply via email to

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