Hi Arash and Michael,

>>>>> Arash Esbati <[email protected]> writes:
>> To developers: How about removing this check by the attached patch
>> (which may be a bit radaical change)?

> My suggestion is not to do it now.  Can you think of a sort of advice
> around the `TeX-LaTeX-sentinel' function?

OK. As Michael suggested to have customizable regexp, my next proposal
is the attached patch. What do you think about it?

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW

diff --git a/tex.el b/tex.el
index 357dbb58..8865d011 100644
--- a/tex.el
+++ b/tex.el
@@ -709,6 +709,13 @@ commands."
   :group 'TeX-command
   :type 'boolean)
 
+(defcustom TeX-LaTeX-sentinel-banner-regexp
+  "^\\(\\*\\* \\)?J?I?p?\\(La\\|Sli\\)TeX\\(2e\\)? \
+\\(Version\\|ver\\.\\|<[0-9/-]*\\(?:u[^>]*\\)?>\\)"
+  "Regexp to identify the banner line in the LaTeX output."
+  :group 'TeX-output
+  :type 'regexp)
+
 ;;; Portability.
 
 (defmacro TeX--if-macro-fboundp (name then &rest else)
@@ -8463,8 +8470,7 @@ Rerun to get mark in right position\\." nil t)
           "%s" "You should run LaTeX again to synchronize exercise properties")
          (setq TeX-command-next TeX-command-default))
         ((re-search-forward
-          "^\\(\\*\\* \\)?J?I?p?\\(La\\|Sli\\)TeX\\(2e\\)? \
-\\(Version\\|ver\\.\\|<[0-9/-]*\\(?:u[^>]*\\)?>\\)" nil t)
+          TeX-LaTeX-sentinel-banner-regexp nil t)
          (let* ((warnings (and TeX-debug-warnings
                                (TeX-LaTeX-sentinel-has-warnings)))
                 (bad-boxes (and TeX-debug-bad-boxes
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to