[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex ed54fb1 36/43: Refine how we setup flymake backe
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex ed54fb1 36/43: Refine how we setup flymake backend function |
Date: |
Tue, 20 Mar 2018 11:34:15 -0400 (EDT) |
branch: externals/auctex
commit ed54fb1b6f4c64765ba5be4c7c2d75fbea4ecbff
Author: Alex Branham <address@hidden>
Commit: Mosè Giordano <address@hidden>
Refine how we setup flymake backend function
* latex.el: Add LaTeX-flymake to TeX-latex-mode
* latex-flymake.el: Don't add to LaTeX-mode-hook
Signed-off-by: Mosè Giordano <address@hidden>
---
latex-flymake.el | 7 -------
latex.el | 5 ++++-
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/latex-flymake.el b/latex-flymake.el
index b06149c..2a86ebe 100644
--- a/latex-flymake.el
+++ b/latex-flymake.el
@@ -100,12 +100,5 @@ REPORT-FN is flymake's callback function."
(process-send-region LaTeX--flymake-proc (point-min) (point-max))
(process-send-eof LaTeX--flymake-proc))))
-(defun LaTeX-setup-flymake-backend ()
- "Setup flymake backend for LaTeX."
- (add-hook 'flymake-diagnostic-functions 'LaTeX-flymake nil t))
-
-(when (< 25 emacs-major-version)
- (add-hook 'LaTeX-mode-hook #'LaTeX-setup-flymake-backend))
-
(provide 'latex-flymake)
;;; latex-flymake.el ends here
diff --git a/latex.el b/latex.el
index 7354c23..d3c2e65 100644
--- a/latex.el
+++ b/latex.el
@@ -5901,7 +5901,10 @@ of `LaTeX-mode-hook'."
;; Defeat filladapt
(if (and (boundp 'filladapt-mode)
filladapt-mode)
- (turn-off-filladapt-mode)))
+ (turn-off-filladapt-mode))
+ (when (< 25 emacs-major-version)
+ ;; Set up flymake backend, see latex-flymake.el
+ (add-hook 'flymake-diagnostic-functions 'LaTeX-flymake nil t)))
(TeX-abbrev-mode-setup doctex-mode)
- [elpa] externals/auctex e769c3c 25/43: Make sure `process-environment' is recovered after temporal setenv, (continued)
- [elpa] externals/auctex e769c3c 25/43: Make sure `process-environment' is recovered after temporal setenv, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 3e57fbe 26/43: ; * texmathp.el: Update comment header., Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 06f704f 31/43: Explicitly require Emacs 24, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex bd21b34 17/43: Remove code for compatibility with very old emacsens in bib-cite.el, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 4dfb98c 01/43: Remove XEmacs compatibility code in tex-buf.el, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 73cd17c 11/43: Add fontification for some core macros, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 688fae2 37/43: Remove cl from AUCTeX, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 4106f92 24/43: Add fontification for some core macros, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 8d2e9db 38/43: Add new function `TeX-arg-verb-delim-or-brace', Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 2d35adf 12/43: Update style/bidi.el to package version 31.7, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex ed54fb1 36/43: Refine how we setup flymake backend function,
Tassilo Horn <=
- [elpa] externals/auctex fad256b 34/43: * Makefile.in (AUCSRC): Add new file latex-flymake.el., Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 085a310 29/43: Replace cl with cl-lib, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 0011b68 43/43: Merge from master, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex d563566 42/43: Merge branch 'master' into externals/auctex, Tassilo Horn, 2018/03/20