auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 39badf048916c309437f3


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 39badf048916c309437f37dbfb5c9d6ba5bf4801
Date: Tue, 03 Mar 2015 10:11:25 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  39badf048916c309437f37dbfb5c9d6ba5bf4801 (commit)
      from  3cf92fc2daa70cb111b73fbf6be7a51ce42d19d2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 39badf048916c309437f37dbfb5c9d6ba5bf4801
Author: Tassilo Horn <address@hidden>
Date:   Tue Mar 3 11:10:44 2015 +0100

    New defcustom LaTeX-fill-excluded-macros
    
    * latex.el (LaTeX-fill-excluded-macros): New defcustom for
    excluding macro arguments from filling.
    (LaTeX-fill-region-as-paragraph): Use it.

diff --git a/ChangeLog b/ChangeLog
index e81c6bb..de66ef6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-03-03  Tassilo Horn  <address@hidden>
+
+       * latex.el (LaTeX-fill-excluded-macros): New defcustom for
+       excluding macro arguments from filling.
+       (LaTeX-fill-region-as-paragraph): Use it.
+
 2015-03-02  Tassilo Horn  <address@hidden>
 
        * font-latex.el (font-latex-match-command-with-arguments): Fix
diff --git a/latex.el b/latex.el
index 9c2646f..fc5ebdb 100644
--- a/latex.el
+++ b/latex.el
@@ -3353,6 +3353,12 @@ does not fit into the line."
   :group 'LaTeX
   :type 'boolean)
 
+(defcustom LaTeX-fill-excluded-macros nil
+  "List of macro names (without leading \\) whose arguments must
+not be subject to filling."
+  :group 'LaTeX
+  :type '(repeat string))
+
 (defvar LaTeX-nospace-between-char-regexp
   (if (featurep 'xemacs)
     (if (and (boundp 'word-across-newline) word-across-newline)
@@ -3379,6 +3385,7 @@ pass args FROM, TO and JUSTIFY-FLAG."
   (interactive "*r\nP")
   (let ((end-marker (save-excursion (goto-char to) (point-marker))))
     (if (or (assoc (LaTeX-current-environment) LaTeX-indent-environment-list)
+           (member (TeX-current-macro) LaTeX-fill-excluded-macros)
            ;; This could be generalized, if there are more cases where
            ;; a special string at the start of a region to fill should
            ;; inhibit filling.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    6 ++++++
 latex.el  |    7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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