[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 33cee84 19/78: Allow TeX-command-sequence to pro
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 33cee84 19/78: Allow TeX-command-sequence to process the region |
Date: |
Mon, 19 Oct 2015 09:10:45 +0000 |
branch: externals/auctex
commit 33cee842a2a53b4f3fed5a66792a555b4c95bd2e
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Allow TeX-command-sequence to process the region
* tex-buf.el (TeX-command-sequence): Add argument for processing
the region file instead of the master file.
---
ChangeLog | 3 +++
tex-buf.el | 13 +++++++++----
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dde5951..99973b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2015-09-01 Tassilo Horn <address@hidden>
+ * tex-buf.el (TeX-command-sequence): Add argument for processing
+ the region file instead of the master file.
+
* tex.el (TeX--if-macro-fboundp): New portability macro.
(VirTeX-common-initialization): Use it.
diff --git a/tex-buf.el b/tex-buf.el
index a341727..c670fd7 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -584,7 +584,7 @@ It is set in `TeX-command-sequence' and used in
`TeX-command-sequence-sentinel' to call again
`TeX-command-sequence' with the appropriate command argument.")
-(defun TeX-command-sequence (command &optional reset)
+(defun TeX-command-sequence (command &optional reset file-fn)
"Run a sequence of TeX commands defined by COMMAND.
The COMMAND argument may be
@@ -614,7 +614,12 @@ total in any case. It ends when `TeX-command-Show' is the
command to be run.
A non-nil value for the optional argument RESET means this is the
-first run of the function and some variables need to be reset."
+first run of the function and some variables need to be reset.
+
+FILE-FN is a function of zero arguments returning the current
+filename. Valid choices are `TeX-master-file' (default if
+omitted) and `TeX-region-file'."
+ (setq file-fn (or file-fn #'TeX-master-file))
(if (null command)
(message "No command to run.")
(let (cmd process)
@@ -629,9 +634,9 @@ first run of the function and some variables need to be
reset."
(setq cmd (funcall command)
TeX-command-sequence-command command))
(t
- (setq cmd (TeX-command-default (TeX-master-file))
+ (setq cmd (TeX-command-default (funcall file-fn))
TeX-command-sequence-command t)))
- (TeX-command cmd 'TeX-master-file 0)
+ (TeX-command cmd file-fn 0)
(when reset
(setq TeX-command-sequence-count-same-command 1
TeX-command-sequence-count 1
- [elpa] externals/auctex eff71a7 10/78: Change | syntax to punctuation; fixes bug#21366, (continued)
- [elpa] externals/auctex eff71a7 10/78: Change | syntax to punctuation; fixes bug#21366, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex a4d23f6 07/78: Add menu and new functions for error overview., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex a85d7c6 15/78: Add support for undocumented macros `\captionbox[*]'., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex a3e3ab8 14/78: Add new style transparent.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 8d5acb0 13/78: Do not indent the content of `filecontents[*]' env., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 57338ec 24/78: Improve my last commit, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 400609e 18/78: New TeX--if-macro-fboundp compatibility macro, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 08ab3c1 23/78: Allow hiding ^ and _ script signs, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 0b3a6e8 12/78: Do not indent the content of `Form' environment., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 40963e5 08/78: Check engine before running LaTeX command., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 33cee84 19/78: Allow TeX-command-sequence to process the region,
Tassilo Horn <=
- [elpa] externals/auctex 513490f 22/78: Implement multi-level script fontification, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 76eb240 25/78: Docfix, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex a07f436 16/78: Implement TeX-update., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex dbc87df 17/78: Generate PDF via dvips+ps2pdf., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex dd9adef 21/78: Case-sensitive mode detection + AMS-TeX fixes, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex da7419f 42/78: Add new style AlegreyaSans.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 9cfd5d8 47/78: Improve LaTeX-find-matching-end, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 647a8fc 29/78: Fixes for "run-all" on current section, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 5ed22c0 45/78: FiX TeX error parsing., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 66b97ff 20/78: Don't add font-latex-setup to latex-mode-hook, Tassilo Horn, 2015/10/19