|
From: | Ruiyang Wu |
Subject: | bug#69398: `LaTeX-fill-paragraph` behavior within indented environments |
Date: | Sun, 25 Feb 2024 19:21:17 -0500 |
Hi there, When the point is on the first letter of a line inside an indented environment (e.g., itemize, proof, etc.), running `LaTeX-fill-paragraph` will move the point to the beginning of the line. Here is a MWE: \documentclass{article} \begin{document} \begin{itemize} \item In indented environments, when the point is at the first letter of a line, running ``LaTeX-fill-paragraph'' will move the point to the beginning of the line. Ideally, it should stay with the letter. \end{itemize} \end{document} 1. If the point is on the first “o” in the line immediately after “\item”, running `LaTeX-fill-paragraph` moves the point to column 0, while “o” is moved to column 2 because of the filling operation. 2. If the point is on the first “f” in the same line as above, the point stays on “f” after running `LaTeX-fill-paragraph` (both moved to column 3). I think it is better to have consistent point behavior as in scenario 2, because users probably want to continue editing after running `M-q’, and it is much more efficient if the point stays on the same letter before and after filling. Best, Ruiyang |
[Prev in Thread] | Current Thread | [Next in Thread] |