GNU bug report logs -
#68090
13.2.3; TeX-LaTeX-Sentinel: a way to stop requiring version line?
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68090 in the body.
You can then email your comments to 68090 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#68090
; Package
auctex
.
(Thu, 28 Dec 2023 20:29:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Michael Hoffman" <emacs-hoffman <at> snkmail.com>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Thu, 28 Dec 2023 20:29:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I have a few commands in `TeX-command-list' that produce way less output
than typical runs of latex or latexmk. They use texfot
<https://ctan.org/pkg/texfot> to eliminate clutter that requires no
action. Otherwise, they behave in a way where using TeX-run-TeX to run
them and process any errors or warnings that arise would make sense.
Unfortunately, if `TeX-LaTeX-Sentinel' doesn't find any other errors, it
looks for a version line, and if it doesn't find that, it reports
"problems after {(TeX-current-pages)}", and skips reporting warnings or
bad boxes.
My workaround is to insert the text "LaTeX Version" into the script
output to make `TeX-LaTeX-Sentinel' happy. But this is clunky.
It would be best if there were a way to customize the regular expression
that is searched for on successful run of a command. It might be
possible to get rid of this check altogether--it's might be that
checking for a version banner that occurs at the top protects doesn't
protect against many unexpected error conditions--but I assume it's
there for a reason.
Michael
Emacs : GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
of 2023-12-10
Package: 13.2.3
current state:
==============
(setq
AUCTeX-date "2023-12-07"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex" "/home/mhoffman/.emacs.d/elpa/auctex-13.2.3/style"
"/home/mhoffman/.emacs.d/auctex/auto" "/home/mhoffman/.emacs.d/auctex/style" "auto" "style")
TeX-auto-save t
TeX-parse-self t
TeX-master t
TeX-command-list '(("Fotlatexmk" "echo LaTeX Version; fotlatexmk -file-line-error -pv %t" TeX-run-TeX nil t :help
"Run Fotlatexmk")
("Texlint" "echo LaTeX Version; texlint %t" TeX-run-TeX nil t :help "Run Texlint")
("Make" "make" TeX-run-TeX t t :help "Run make")
("Latexmk" "latexmk -pv %t" TeX-run-TeX nil t :help "Run Latexmk")
("Texfot" "texfot pdflatex -file-line-error %t" TeX-run-TeX nil t :help "Run Texfot")
("Copy" "cp -v %s.pdf ~/Dropbox/work/review/next" TeX-run-command t t :help "Copy to Dropbox")
("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %(output-dir) %t"
TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX")
("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
("Makeinfo" "makeinfo %(extraopts) %(o-dir) %t" TeX-run-compile nil (texinfo-mode) :help
"Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t" TeX-run-compile nil (texinfo-mode)
:help "Run Makeinfo with HTML output")
("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %t" TeX-run-TeX nil
(ams-tex-mode) :help "Run AMSTeX")
("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil
(context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help
"Run ConTeXt until completion")
("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode context-mode) :help
"Run BibTeX")
("Biber" "biber %(output-dir) %s" TeX-run-Biber nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run Biber")
("Texindex" "texindex %s.??" TeX-run-command nil (texinfo-mode) :help "Run Texindex")
("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil (texinfo-mode) :help
"Run Texi2dvi or Texi2pdf")
("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")
("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible
TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Generate PostScript file")
("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Convert DVI file to PostScript")
("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Convert DVI file to PDF with dvipdfmx")
("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Convert PostScript file to PDF")
("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Run makeglossaries to create glossary file")
("Index" "makeindex %(O?idx)" TeX-run-index nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Run makeindex to create index file")
("upMendex" "upmendex %(O?idx)" TeX-run-index t
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Run upmendex to create index file")
("Xindy" "texindy %s" TeX-run-command nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Run xindy to create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help
"Check LaTeX file for correctness")
("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help
"Check LaTeX file for common mistakes")
("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document")
("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files")
("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
"Delete generated intermediate and output files")
("Other" "" TeX-run-command t t :help "Run an arbitrary command"))
)
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#68090
; Package
auctex
.
(Sat, 06 Jan 2024 10:50:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 68090 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Michael, sorry for late response.
>>>>> "Michael Hoffman" <emacs-hoffman <at> snkmail.com> writes:
> Unfortunately, if `TeX-LaTeX-Sentinel' doesn't find any other errors, it
> looks for a version line, and if it doesn't find that, it reports
> "problems after {(TeX-current-pages)}", and skips reporting warnings or
> bad boxes.
> My workaround is to insert the text "LaTeX Version" into the script
> output to make `TeX-LaTeX-Sentinel' happy. But this is clunky.
> It would be best if there were a way to customize the regular expression
> that is searched for on successful run of a command. It might be
> possible to get rid of this check altogether--it's might be that
> checking for a version banner that occurs at the top protects doesn't
> protect against many unexpected error conditions--but I assume it's
> there for a reason.
I think that the reason why `TeX-LaTeX-sentinel' searches for the
version banner is to check whether there is a working TeX distribution
at all.
The importance of this check is low since `TeX-command' introduced
similar check by `TeX-check-TeX'.
To developers: How about removing this check by the attached patch
(which may be a bit radaical change)?
Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW
[patch (text/x-diff, attachment)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#68090
; Package
auctex
.
(Tue, 09 Jan 2024 12:39:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 68090 <at> debbugs.gnu.org (full text, mbox):
Hi Keita,
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
> The importance of this check is low since `TeX-command' introduced
> similar check by `TeX-check-TeX'.
Thanks for looking at this. Does your comment above also apply to users
who have set `TeX-check-TeX' to nil?
> 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?
Best, Arash
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#68090
; Package
auctex
.
(Sun, 14 Jan 2024 09:07:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 68090 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Arash and Michael,
>>>>> Arash Esbati <arash <at> gnu.org> 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
[patch (text/x-diff, attachment)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#68090
; Package
auctex
.
(Tue, 23 Jan 2024 08:38:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 68090 <at> debbugs.gnu.org (full text, mbox):
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
> OK. As Michael suggested to have customizable regexp, my next proposal
> is the attached patch. What do you think about it?
Hi Keita,
sorry for my late response. If it fixes the issue reported by Michael,
we can install it. Is it possible to add this new variable to the
manual as well?
TIA. Best, Arash
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#68090
; Package
auctex
.
(Wed, 24 Jan 2024 08:58:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 68090 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Arash,
> sorry for my late response. If it fixes the issue reported by Michael,
> we can install it. Is it possible to add this new variable to the
> manual as well?
OK, here is such a proposal. I think this change is quite safe, so I'll
commit it soon.
Bye,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW
[0001-Make-banner-regexp-customizable.patch (text/x-diff, attachment)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#68090
; Package
auctex
.
(Wed, 24 Jan 2024 11:36:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 68090 <at> debbugs.gnu.org (full text, mbox):
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
> OK, here is such a proposal. I think this change is quite safe, so
> I'll commit it soon.
Thanks Keita. LGTM, please go ahead and install it.
Best, Arash
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#68090
; Package
auctex
.
(Wed, 24 Jan 2024 13:54:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 68090 <at> debbugs.gnu.org (full text, mbox):
>>>>> Arash Esbati <arash <at> gnu.org> writes:
> Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
>> OK, here is such a proposal. I think this change is quite safe, so
>> I'll commit it soon.
> Thanks Keita. LGTM, please go ahead and install it.
Done. I'll close this bug, Michael.
Bye,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW
bug closed, send any further explanations to
68090 <at> debbugs.gnu.org and "Michael Hoffman" <emacs-hoffman <at> snkmail.com>
Request was from
Ikumi Keita <ikumi <at> ikumi.que.jp>
to
control <at> debbugs.gnu.org
.
(Wed, 24 Jan 2024 13:54:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 22 Feb 2024 12:24:14 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 196 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.