GNU bug report logs -
#45521
13.0.0; C-c C-c gives "Wrong type argument: number-or-marker-p, nil"
Previous Next
Reported by: Uwe Siart <uwe.siart <at> tum.de>
Date: Tue, 29 Dec 2020 07:23:01 UTC
Severity: normal
Found in version 13.0.0
Done: Tassilo Horn <tsdh <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45521 in the body.
You can then email your comments to 45521 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#45521
; Package
auctex
.
(Tue, 29 Dec 2020 07:23:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Uwe Siart <uwe.siart <at> tum.de>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Tue, 29 Dec 2020 07:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When I try to call latex on any document I get "Wrong type argument:
number-or-marker-p, nil".
Thanks
Uwe
Emacs : GNU Emacs 27.1 (build 1, i686-w64-mingw32)
of 2020-08-21
Package: 13.0.0
current state:
==============
(setq
AUCTeX-date "2020-12-24"
window-system 'w32
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex" "c:/Users/siart/.emacs.d/elpa/auctex-13.0.0/style"
"c:/Users/siart/.emacs.d/auctex/auto" "c:/Users/siart/.emacs.d/auctex/style" "auto" "style")
TeX-auto-save t
TeX-parse-self t
TeX-master t
TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %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) %t" TeX-run-compile nil (texinfo-mode) :help
"Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help
"Run Makeinfo with HTML output")
("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %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 %s" TeX-run-BibTeX nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode context-mode) :help "Run BibTeX")
("Biber" "biber %s" TeX-run-Biber nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run Biber")
("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 %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" TeX-run-ps2pdf nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Convert PostScript file to PDF")
("Glossaries" "makeglossaries %s" TeX-run-command nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help
"Run makeglossaries to create glossary\n file")
("Index" "makeindex %s" 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 %s" 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"))
)
--
Dr.-Ing. Uwe Siart
Chair of High-Frequency Engineering
Department of Electrical and Computer Engineering
Technical University of Munich (TUM)
Arcisstr. 21, 80333 München, Germany
Email: uwe.siart <at> tum.de
Tel.: +49.89.289.23374
Fax: +49.89.289.23365
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Tue, 29 Dec 2020 15:35:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Uwe Siart <uwe.siart <at> tum.de> writes:
Hi Uwe,
> When I try to call latex on any document I get "Wrong type argument:
> number-or-marker-p, nil".
Could you please `M-x toggle-debug-on-error RET' and do the same again?
That should pop up a *Backtrace* buffer when the error happens again
whose contents will help debug and fix the problem.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Tue, 29 Dec 2020 15:35:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Tue, 29 Dec 2020 17:26:02 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello Tassilo,
Here's my *Backtrace*:
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
TeX-active-master-with-quotes(t t nil t)
apply(TeX-active-master-with-quotes (t t nil t))
TeX-command-expand("%`%l%(mode)%' %T")
TeX-command("LaTeX" TeX-master-file nil)
TeX-command-master(nil)
funcall-interactively(TeX-command-master nil)
call-interactively(TeX-command-master nil nil)
command-execute(TeX-command-master)
Is it ok like that? Or should I have sent it in a different way?
Thanks,
Uwe
On 29 Dec 2020 at 16:31, Tassilo Horn wrote:
> Uwe Siart <uwe.siart <at> tum.de> writes:
>
> Hi Uwe,
>
> > When I try to call latex on any document I get "Wrong type argument:
> > number-or-marker-p, nil".
>
> Could you please `M-x toggle-debug-on-error RET' and do the same again?
> That should pop up a *Backtrace* buffer when the error happens again
> whose contents will help debug and fix the problem.
>
> Bye,
> Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Tue, 29 Dec 2020 17:26:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Tue, 29 Dec 2020 17:32:02 GMT)
Full text and
rfc822 format available.
Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):
> Here's my *Backtrace*:
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
> TeX-active-master-with-quotes(t t nil t)
> apply(TeX-active-master-with-quotes (t t nil t))
> TeX-command-expand("%`%l%(mode)%' %T")
> TeX-command("LaTeX" TeX-master-file nil)
> TeX-command-master(nil)
> funcall-interactively(TeX-command-master nil)
> call-interactively(TeX-command-master nil nil)
> command-execute(TeX-command-master)
>
> Is it ok like that? Or should I have sent it in a different way?
It's perfect, I'll look into it later.
Thanks,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Tue, 29 Dec 2020 17:32:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Tue, 29 Dec 2020 19:06:02 GMT)
Full text and
rfc822 format available.
Message #26 received at submit <at> debbugs.gnu.org (full text, mbox):
Tassilo Horn <tsdh <at> gnu.org> writes:
Hi Uwe,
>> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>> TeX-active-master-with-quotes(t t nil t)
>> apply(TeX-active-master-with-quotes (t t nil t))
>> TeX-command-expand("%`%l%(mode)%' %T")
>> TeX-command("LaTeX" TeX-master-file nil)
>> TeX-command-master(nil)
>> funcall-interactively(TeX-command-master nil)
>> call-interactively(TeX-command-master nil nil)
>> command-execute(TeX-command-master)
Hm, I can't reproduce it. AFAICS, `TeX-active-master-with-quotes' can
only signal that error if `TeX-expand-pos' in
(setq TeX-expand-pos
(+ TeX-expand-pos (length res)))
is nil. `TeX-expand-pos' is new in auctex 13.0.0, before an undeclared
variable `pos' was used here.
Do you have some custom code (like a custom entry in `TeX-expand-list')
still using `pos' rather than `TeX-expand-pos'? If so, have a look at
(info "(auctex) Changes") which tells which breaking changes have been
made in AUCTeX 13.0.0 and how to adapt to them.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Tue, 29 Dec 2020 19:06:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Wed, 30 Dec 2020 08:25:02 GMT)
Full text and
rfc822 format available.
Message #32 received at submit <at> debbugs.gnu.org (full text, mbox):
Uwe Siart <uwe.siart <at> tum.de> writes:
Hi Uwe,
> Not that I know of. I've attached my .emacs (therefore not cc'ed to
> the list) and a file that issues the error.
Thanks, I've now added the list and the bug to Cc again.
> This is how I load AUCTeX in my site-start.el
>
> (setq TeX-auto-save t)
> (setq TeX-parse-self t)
> (setq-default TeX-master nil)
> (setq TeX-auto-untabify t)
I still can't reproduce the issue with my testuser account using emacs
27.1, auctex-13.0.0 or 13.0.1, your .emacs (with the windows-specific
parts removed), the above 4 lines in ~/.emacs.d/site-start.el, and your
testdoc.tex.
Does `M-x list-load-path-shadows RET' list something? (Maybe there's a
leftover from an old auctex install.)
Otherwise, are you able to operate edebug? If so, please `edebug-defun'
`TeX-active-master-with-quotes', and tell me which expression signals
the error. If it's really
(setq TeX-expand-pos
(+ TeX-expand-pos (length res)))
as I suspected, then you'd probably need to edebug `TeX-command-expand'
to see why `TeX-expand-pos' stays nil rather than being set to an
integer.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Wed, 30 Dec 2020 08:25:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Wed, 30 Dec 2020 09:21:01 GMT)
Full text and
rfc822 format available.
Message #38 received at submit <at> debbugs.gnu.org (full text, mbox):
Dear Tassilo,
edebug is something that I never used before. But I'm reading the docs
and if I manage to get something out of it, I'll let you know.
This is what I can report so far:
- `M-x list-load-path-shadows RET' does not list any paths
- I've tried with Emacs 27.1 in its "virgin" state by making my .emacs
completely empty and by just having nothing but the four lines to load
AUCTeX in my site-start.el ... the error remains.
Best,
Uwe
On 30 Dec 2020 at 9:01, Tassilo Horn wrote:
> Uwe Siart <uwe.siart <at> tum.de> writes:
>
> Hi Uwe,
>
> > Not that I know of. I've attached my .emacs (therefore not cc'ed to
> > the list) and a file that issues the error.
>
> Thanks, I've now added the list and the bug to Cc again.
>
> > This is how I load AUCTeX in my site-start.el
> >
> > (setq TeX-auto-save t)
> > (setq TeX-parse-self t)
> > (setq-default TeX-master nil)
> > (setq TeX-auto-untabify t)
>
> I still can't reproduce the issue with my testuser account using emacs
> 27.1, auctex-13.0.0 or 13.0.1, your .emacs (with the windows-specific
> parts removed), the above 4 lines in ~/.emacs.d/site-start.el, and your
> testdoc.tex.
>
> Does `M-x list-load-path-shadows RET' list something? (Maybe there's a
> leftover from an old auctex install.)
>
> Otherwise, are you able to operate edebug? If so, please `edebug-defun'
> `TeX-active-master-with-quotes', and tell me which expression signals
> the error. If it's really
>
> (setq TeX-expand-pos
> (+ TeX-expand-pos (length res)))
>
> as I suspected, then you'd probably need to edebug `TeX-command-expand'
> to see why `TeX-expand-pos' stays nil rather than being set to an
> integer.
>
> Bye,
> Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Wed, 30 Dec 2020 09:21:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Wed, 30 Dec 2020 09:26:02 GMT)
Full text and
rfc822 format available.
Message #44 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Tassilo,
Good news! With 13.0.1 the error is gone.
Many thanks for your readiness to help!
Uwe
On 30 Dec 2020 at 9:01, Tassilo Horn wrote:
> Uwe Siart <uwe.siart <at> tum.de> writes:
>
> Hi Uwe,
>
> > Not that I know of. I've attached my .emacs (therefore not cc'ed to
> > the list) and a file that issues the error.
>
> Thanks, I've now added the list and the bug to Cc again.
>
> > This is how I load AUCTeX in my site-start.el
> >
> > (setq TeX-auto-save t)
> > (setq TeX-parse-self t)
> > (setq-default TeX-master nil)
> > (setq TeX-auto-untabify t)
>
> I still can't reproduce the issue with my testuser account using emacs
> 27.1, auctex-13.0.0 or 13.0.1, your .emacs (with the windows-specific
> parts removed), the above 4 lines in ~/.emacs.d/site-start.el, and your
> testdoc.tex.
>
> Does `M-x list-load-path-shadows RET' list something? (Maybe there's a
> leftover from an old auctex install.)
>
> Otherwise, are you able to operate edebug? If so, please `edebug-defun'
> `TeX-active-master-with-quotes', and tell me which expression signals
> the error. If it's really
>
> (setq TeX-expand-pos
> (+ TeX-expand-pos (length res)))
>
> as I suspected, then you'd probably need to edebug `TeX-command-expand'
> to see why `TeX-expand-pos' stays nil rather than being set to an
> integer.
>
> Bye,
> Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Wed, 30 Dec 2020 09:26:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Wed, 30 Dec 2020 09:36:01 GMT)
Full text and
rfc822 format available.
Message #50 received at submit <at> debbugs.gnu.org (full text, mbox):
Uwe Siart <uwe.siart <at> tum.de> writes:
Hi Uwe,
> edebug is something that I never used before. But I'm reading the docs
> and if I manage to get something out of it, I'll let you know.
It's not too hard. Here's a minimal recipe.
1. C-h f TeX-active-master-with-quotes RET
2. Hit RET on the file name link to go to where that function is
defined.
3. Set point somewhere on the function, e.g., its name and do
M-x edebug-defun RET.
4. Now execute the command triggering the error. A window will pop up
showing the file where the edebugged function is defined, and point
is always before the sexp being evaluated next.
5. By pressing `n' you can evaluate the current sexp, the result will
be printed, and evaluation (and point) moves to the next sexp. So
just keep on pressing `n' until you get the error and report back
where it broke.
Thereafte, set point after the function and do C-x C-e. That will
remove the debugging instrumentation so that you won't pause and be put
into the edebugger whenever that function is called.
> This is what I can report so far:
>
> - `M-x list-load-path-shadows RET' does not list any paths
Hm, too bad. That would have been a problem easy to fix.
> - I've tried with Emacs 27.1 in its "virgin" state by making my .emacs
> completely empty and by just having nothing but the four lines to load
> AUCTeX in my site-start.el ... the error remains.
Argh, so probably something windows-specific.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Wed, 30 Dec 2020 09:36:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#45521
; Package
auctex
.
(Wed, 30 Dec 2020 09:51:02 GMT)
Full text and
rfc822 format available.
Message #56 received at submit <at> debbugs.gnu.org (full text, mbox):
Uwe Siart <uwe.siart <at> tum.de> writes:
Hi Uwe,
> Good news! With 13.0.1 the error is gone.
Oh, well, that was unexpected. The only change in 13.0.1 compared with
13.0.0 was a fix in how we call the evince viewer with filenames
containing question marks, and that we use spaces instead of tabs for
indenting the code. Both should have zero effects on your issue.
The only thing I can imagine is that the upgrade deleted some leftover
of some previous 12.x.y install which caused the malfunction. However,
that should have appeared in `M-x list-load-path-shadows RET'.
Anyway, I'm closing the bug. Feel free to report a new one in case the
error happens again.
> Many thanks for your readiness to help!
You're welcome!
Bye,
Tassilo
Reply sent
to
Tassilo Horn <tsdh <at> gnu.org>
:
You have taken responsibility.
(Wed, 30 Dec 2020 09:51:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Uwe Siart <uwe.siart <at> tum.de>
:
bug acknowledged by developer.
(Wed, 30 Dec 2020 09:51:03 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
.
(Wed, 27 Jan 2021 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 88 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.