[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 197/299: Fix C-x ` (next-error) for compile commands.
From: |
Stefan Monnier |
Subject: |
[elpa] 197/299: Fix C-x ` (next-error) for compile commands. |
Date: |
Sun, 02 Nov 2014 03:11:24 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 24f35445038ba1972b1cd2c8224fbed29921d544
Author: Tassilo Horn <address@hidden>
Date: Mon Nov 11 09:21:11 2013 +0100
Fix C-x ` (next-error) for compile commands.
* tex-buf.el (TeX-next-error, TeX-previous-error): Call
`next-error' also if last TeX command was a compile command (e.g.,
Check, ChkTeX).
(TeX-run-compile): Save compilation buffer in
`TeX-command-buffer'.
---
ChangeLog | 8 ++++++++
tex-buf.el | 10 +++++++---
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c97e020..540262c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2013-11-11 Tassilo Horn <address@hidden>
+
+ * tex-buf.el (TeX-next-error, TeX-previous-error): Call
+ `next-error' also if last TeX command was a compile command (e.g.,
+ Check, ChkTeX).
+ (TeX-run-compile): Save compilation buffer in
+ `TeX-command-buffer'.
+
2013-11-10 Ralf Angeli <address@hidden>
* bib-cite.el (bib-highlight-mouse): Change regexp to cope with
diff --git a/tex-buf.el b/tex-buf.el
index 2e313a4..efc19b5 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -270,7 +270,9 @@ the master file."
"Find the next error in the TeX output buffer.
With \\[universal-argument] prefix, start from the beginning of the errors."
(interactive "P")
- (if (null (TeX-active-buffer))
+ (if (or (null (TeX-active-buffer))
+ (eq 'compilation-mode (with-current-buffer TeX-command-buffer
+ major-mode)))
(next-error reparse)
(funcall (with-current-buffer TeX-command-buffer
(TeX-process-get-variable (TeX-active-master)
'TeX-parse-function))
@@ -279,7 +281,9 @@ With \\[universal-argument] prefix, start from the
beginning of the errors."
(defun TeX-previous-error (arg)
"Find the previous error in the TeX output buffer."
(interactive "P")
- (if (null (TeX-active-buffer))
+ (if (or (null (TeX-active-buffer))
+ (eq 'compilation-mode (with-current-buffer TeX-command-buffer
+ major-mode)))
(previous-error arg)
(error "Jumping to previous error not supported")))
@@ -687,7 +691,7 @@ run of `TeX-run-TeX', use
(defun TeX-run-compile (name command file)
"Ignore first and third argument, start compile with second argument."
(let ((default-directory (TeX-master-directory)))
- (compile command)))
+ (setq TeX-command-buffer (compile command))))
(defun TeX-run-shell (name command file)
"Ignore first and third argument, start shell-command with second argument."
- [elpa] 189/299: Run style files of the bibliography files when inserting bibliography macros., (continued)
- [elpa] 189/299: Run style files of the bibliography files when inserting bibliography macros., Stefan Monnier, 2014/11/01
- [elpa] 186/299: Add narrowing commands., Stefan Monnier, 2014/11/01
- [elpa] 190/299: Document missing folding variables., Stefan Monnier, 2014/11/01
- [elpa] 193/299: void-function error fix., Stefan Monnier, 2014/11/01
- [elpa] 184/299: Mention new tabular indentation in changes.texi., Stefan Monnier, 2014/11/01
- [elpa] 185/299: Add completion for ProvidesPackage, ProvidesClass, and ProvidesFile., Stefan Monnier, 2014/11/01
- [elpa] 198/299: Declare expert macros and envs in biblatex style file., Stefan Monnier, 2014/11/01
- [elpa] 194/299: Distinguish normal and expert macros/envs., Stefan Monnier, 2014/11/01
- [elpa] 196/299: * bib-cite.el (bib-highlight-mouse): Change regexp to cope with multiple optional arguments of a macro., Stefan Monnier, 2014/11/01
- [elpa] 192/299: Revert "Distinguish common and advanced macros/envs.", Stefan Monnier, 2014/11/01
- [elpa] 197/299: Fix C-x ` (next-error) for compile commands.,
Stefan Monnier <=
- [elpa] 200/299: Fix of the fix, my fault., Stefan Monnier, 2014/11/01
- [elpa] 195/299: Better signature of expert declaration functions., Stefan Monnier, 2014/11/01
- [elpa] 204/299: Revert "Skip comment or file in parens in output.", Stefan Monnier, 2014/11/01
- [elpa] 201/299: Disable electric-pair-mode., Stefan Monnier, 2014/11/01
- [elpa] 191/299: Distinguish common and advanced macros/envs., Stefan Monnier, 2014/11/01
- [elpa] 207/299: Add font name completion in fontspec.el., Stefan Monnier, 2014/11/01
- [elpa] 202/299: Disable electric-pair-mode conditionally., Stefan Monnier, 2014/11/01
- [elpa] 205/299: Handle package messages with parenthesized text., Stefan Monnier, 2014/11/01
- [elpa] 208/299: Use TeX-electric-math in LaTeX-math-insert/cal., Stefan Monnier, 2014/11/01
- [elpa] 199/299: Fix bindings of narrowing functions., Stefan Monnier, 2014/11/01