This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  ed54fb1b6f4c64765ba5be4c7c2d75fbea4ecbff (commit)
      from  5592c69435c03110e207ef05feed96741cb94d1b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ed54fb1b6f4c64765ba5be4c7c2d75fbea4ecbff
Author: Alex Branham <bran...@utexas.edu>
Date:   Mon Feb 26 10:18:55 2018 -0600

    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 <m...@gnu.org>

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)
 

-----------------------------------------------------------------------

Summary of changes:
 latex-flymake.el | 7 -------
 latex.el         | 5 ++++-
 2 files changed, 4 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to