Hi Rens, >>>>> Rens Oliemans <ha...@rensoliemans.nl> writes: > I've attached a tex file that you can run with emacs -Q to reproduce some > weird > behaviour: when you execute fill-paragraph and you have (LaTeX-mode) and > (abbrev-mode) activated, the last word on a line in the paragraph will get > expanded if it's an abbrev.
Thank you for your report. It's actually a bug and I pushed a fix to the git repo. If you are in hurry, apply the attached patch to fix `LaTeX-fill-newline'. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW
diff --git a/latex.el b/latex.el index bc27b266..79d79303 100644 --- a/latex.el +++ b/latex.el @@ -5279,7 +5279,7 @@ See `fill-move-to-break-point' for the meaning of LINEBEG." (defun LaTeX-fill-newline () "Replace whitespace here with one newline and indent the line." (skip-chars-backward " \t") - (newline 1) + (insert ?\n) ;; Give newline the properties of the space(s) it replaces (set-text-properties (1- (point)) (point) (text-properties-at (point)))