[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex-cont-latexmk b73ac67b86 085/100: New command tex
From: |
ELPA Syncer |
Subject: |
[elpa] externals/auctex-cont-latexmk b73ac67b86 085/100: New command tex-continuous-help-at-point |
Date: |
Thu, 6 Jun 2024 03:57:58 -0400 (EDT) |
branch: externals/auctex-cont-latexmk
commit b73ac67b86cfd2f338d51e859d03ada6e9276f3c
Author: Paul Nelson <ultrono@gmail.com>
Commit: Paul Nelson <ultrono@gmail.com>
New command tex-continuous-help-at-point
---
README.org | 1 +
tex-continuous.el | 15 +++++++++++++++
2 files changed, 16 insertions(+)
diff --git a/README.org b/README.org
index 49715fdf07..dd64c0a7a0 100644
--- a/README.org
+++ b/README.org
@@ -35,6 +35,7 @@ That's all. I prefer this workflow to the alternative in
which one compiles the
* Tips
- TeX compilers are not so good at locating errors involving braces. For
this, the Emacs commands =check-parens=, =tex-validate-buffer= and
=tex-validate-region= are indispensable.
+- You can use the command =M-x tex-continuous-help-at-point= (or bind it to a
key) if you want to see AUCTeX's help message (if any) for the error at point.
* Customization
- You can tweak the underlying =latexmk= command via =M-x customize-variable
tex-continuous-command=.
diff --git a/tex-continuous.el b/tex-continuous.el
index 783b2be226..ca9707a329 100644
--- a/tex-continuous.el
+++ b/tex-continuous.el
@@ -93,6 +93,21 @@ Takes into account `TeX-output-dir'."
(file-name-nondirectory (TeX-master-file ext))))
(TeX-master-file ext)))
+(defun tex-continuous--get-help (message)
+ "Return the AUCTeX help string for MESSAGE."
+ (let ((error-alist
+ (append TeX-error-description-list
+ TeX-error-description-list-local)))
+ (catch 'found
+ (dolist (error error-alist)
+ (when (string-match (car error) message)
+ (throw 'found (cdr error)))))))
+
+(defun tex-continuous-help-at-point ()
+ "Display the AUCTeX help for the error at point."
+ (interactive)
+ (message "%s" (tex-continuous--get-help (help-at-pt-kbd-string))))
+
(defun tex-continuous-process-item (type file line message offset _context
search-string _line-end bad-box
_error-point ignore)
- [elpa] externals/auctex-cont-latexmk 5c367ff46e 091/100: Replace tex-continuous--build-file with TeX-master-output-file, (continued)
- [elpa] externals/auctex-cont-latexmk 5c367ff46e 091/100: Replace tex-continuous--build-file with TeX-master-output-file, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 6a9518e566 097/100: indentation, swap cl for seq, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk acfaf552b7 011/100: Add .html to .gitignore, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 119577bfdf 076/100: Allow latexmk completion to be detected based on timing, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 2a48f822c9 084/100: Deactivate when the compilation buffer is killed, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 35cb9fac09 089/100: Check if compilation buffer has been killed before unsubscribing, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 5e9df47daf 086/100: Put errors without file or line number at end of buffer, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 78a651c254 093/100: add missing docstring, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk f30652de43 099/100: Preserve Flymake status and selected Flymake backends, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 79948cf651 066/100: tweaks, docs, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk b73ac67b86 085/100: New command tex-continuous-help-at-point,
ELPA Syncer <=
- [elpa] externals/auctex-cont-latexmk 1c5248a3ac 087/100: expand README tips, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 654f3570a7 095/100: undo one change in last commit, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 531429b321 096/100: capitalize Flymake, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 8ed7904de5 055/100: maybe did ok, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 973154d7d5 060/100: more tweaks, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk f16d095aad 065/100: rename, tweak, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 4320789184 048/100: remove unnecessary require, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk ad40452870 052/100: check that line is non-nil, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk b3ec5c29d4 058/100: flycheck errors, ELPA Syncer, 2024/06/06
- [elpa] externals/auctex-cont-latexmk 70ce392004 072/100: clarify docstring, ELPA Syncer, 2024/06/06