branch: externals/auctex commit 1f116b8499a0bd6081a473fb53dbf49ba49514cb Author: Tassilo Horn <t...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
Fill $...$ like \(...\) (bug#21645) * latex.el (LaTeX-fill-move-to-break-point): Fill $...$ like \(...\) (bug#21645) --- ChangeLog | 5 +++++ latex.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 921c5cd..2c768b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-10-09 Tassilo Horn <t...@gnu.org> + + * latex.el (LaTeX-fill-move-to-break-point): Fill $...$ like + \(...\) (bug#21645) + 2015-10-08 Mos� Giordano <m...@gnu.org> * tex.el (TeX-expand-list-builtin): New variable. diff --git a/latex.el b/latex.el index 0db24fd..ade8c6c 100644 --- a/latex.el +++ b/latex.el @@ -3935,8 +3935,8 @@ space does not end a sentence, so don't break a line there." (if (member match-string '("$" "$$")) (save-excursion (skip-chars-backward "$") - (not (TeX-search-backward-unescaped - match-string (line-beginning-position) t))) + (TeX-search-backward-unescaped + match-string (line-beginning-position) t)) (texmathp-match-switch (line-beginning-position))))) (save-excursion (skip-chars-forward "^ \n")