GNU bug report logs - #45521
13.0.0; C-c C-c gives "Wrong type argument: number-or-marker-p, nil"

Previous Next

Package: auctex;

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.

Full log


View this message in rfc822 format

From: Tassilo Horn <tsdh <at> gnu.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: 45521 <at> debbugs.gnu.org, uwe.siart <at> tum.de
Subject: bug#45521: 13.0.0; C-c C-c gives "Wrong type argument: number-or-marker-p, nil"
Date: Tue, 29 Dec 2020 19:58:28 +0100
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




This bug report was last modified 4 years and 200 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.