[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 39badf0 15/35: New defcustom LaTeX-fill-excluded
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 39badf0 15/35: New defcustom LaTeX-fill-excluded-macros |
Date: |
Sun, 22 Mar 2015 09:27:01 +0000 |
branch: externals/auctex
commit 39badf048916c309437f37dbfb5c9d6ba5bf4801
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
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.
---
ChangeLog | 6 ++++++
latex.el | 7 +++++++
2 files changed, 13 insertions(+), 0 deletions(-)
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.
- [elpa] externals/auctex cc9c060 05/35: Fix compatibility with Emacs < 24., (continued)
- [elpa] externals/auctex cc9c060 05/35: Fix compatibility with Emacs < 24., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex cef38f9 04/35: Handle TeX-region in backward search with both PDF Tools and Evince, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 51e3aa8 06/35: Adapt to PDF Tool changes, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 1bc721b 07/35: Fix error introduced in previous commit, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex adf90e9 09/35: Simplify TeX-pdf-tools-sync-view, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex b858aae 10/35: Make TeX-pdf-tools-sync-view work with region files, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex b2957c8 11/35: Fix bug in pdf-tools support, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 86f4a1e 12/35: Add a hook that's run after an environment is modified, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 566426b 08/35: New style for color.sty, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 3cf92fc 14/35: Fix font-locking issue, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 39badf0 15/35: New defcustom LaTeX-fill-excluded-macros,
Tassilo Horn <=
- [elpa] externals/auctex 83306b4 13/35: Add some expl3 support, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 074af82 16/35: Add docs for LaTeX-fill-excluded-macros, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 61ed48c 19/35: Replace add-to-list with pushnew, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 31c42ca 23/35: Indent \[...\] display math as a normal environment., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 41c5f9a 24/35: Improve error/warning reporting when file cannot be determined., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 59f9440 26/35: Fix void-function error occuring if cl is not loaded, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 4034de2 21/35: New style for caption.sty., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex a2a4777 25/35: Add TeX-after-TeX-LaTeX-command-finished-hook, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex b853739 17/35: Add uninstall rules to Makefiles., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex d23de0a 18/35: Style for bidibeamer which delegates to beamer, Tassilo Horn, 2015/03/22