auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] Changes to auctex/latex.el


From: Ralf Angeli
Subject: [AUCTeX-diffs] Changes to auctex/latex.el
Date: Thu, 12 May 2005 09:15:13 -0400

Index: auctex/latex.el
diff -u auctex/latex.el:5.366 auctex/latex.el:5.367
--- auctex/latex.el:5.366       Wed May 11 14:41:26 2005
+++ auctex/latex.el     Thu May 12 13:15:13 2005
@@ -2286,6 +2286,9 @@
   "Regexp matching a character where no interword space is necessary.
 Words formed by such characters can be broken across newlines.")
 
+(defvar LaTeX-fill-newline-hook nil
+  "Hook run after `LaTeX-fill-newline' inserted and indented a new line.")
+
 (defun LaTeX-fill-region-as-paragraph (from to &optional justify-flag)
   "Fill region as one paragraph.
 Break lines to fit `fill-column', but leave all lines ending with
@@ -2845,7 +2848,8 @@
        ;; Markers that were after the whitespace are now at point: insert
        ;; before them so they don't get stuck before the prefix.
        (insert-before-markers-and-inherit fill-prefix))
-  (indent-according-to-mode))
+  (indent-according-to-mode)
+  (run-hooks 'LaTeX-fill-newline-hook))
 
 (defun LaTeX-fill-paragraph (&optional justify)
   "Like \\[fill-paragraph], but handle LaTeX comments.




reply via email to

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