GNU bug report logs -
#22417
Self parsing bug
Previous Next
Reported by: andreas.tjarnberg <at> fripost.org
Date: Wed, 20 Jan 2016 21:11:01 UTC
Severity: normal
Done: Mosè Giordano <mose <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 22417 in the body.
You can then email your comments to 22417 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#22417
; Package
auctex
.
(Wed, 20 Jan 2016 21:11:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
andreas.tjarnberg <at> fripost.org
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Wed, 20 Jan 2016 21:11:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
I came across the following error when loading a tex file.
It somehow seems to be connected to the latex package subfigure.
* Bug report in org-mode markup
Ubuntu 15.10
Emacs version: GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version
3.16.7) of 2016-01-20
Auctex version: auctex.git commit #4f618ec
I fetch =auctex= with =el-get= but later only start it with =-l
auctex.el=, either way produces the same error.
I start emacs
#+begin_src sh
emacs -q -l auctex.el
#+end_src
I then load my TeX setting
#+begin_src emacs-lisp
(setq debug-on-error t)
(setq TeX-parse-self t)
#+end_src
I then proceed to load my latex file
#+name: tex-file
#+begin_src sh :results output
cat equations.tex
#+end_src
#+RESULTS: tex-file
#+begin_example
\documentclass[12pt]{article}
% \usepackage{graphicx}
% \makeatletter
% \g <at> addto <at> macro\@floatboxreset\centering
% \makeatother
\usepackage{subfigure}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\textbf{G}: \textbf{P} \mapsto \textbf{Y}
\end{displaymath}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
#+end_example
This produces an error as follows:
Debugger entered--Lisp error: (wrong-number-of-arguments setq 3)
signal(wrong-number-of-arguments (setq 3))
(for some reason I can't paste the whole traceback in the mail client)
I noticed that when not using the =\usepackage{subfigure}= package, the
error does not appear.
I think this is a bug but can't figure out where exactly it's coming
from or how it appears.
regards
Andreas
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#22417
; Package
auctex
.
(Wed, 20 Jan 2016 21:31:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 22417 <at> debbugs.gnu.org (full text, mbox):
Hi Andrea,
2016-01-20 22:09 GMT+01:00 <andreas.tjarnberg <at> fripost.org>:
> Hi,
>
> I came across the following error when loading a tex file.
> It somehow seems to be connected to the latex package subfigure.
>
> * Bug report in org-mode markup
>
> Ubuntu 15.10
> Emacs version: GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version
> 3.16.7) of 2016-01-20
> Auctex version: auctex.git commit #4f618ec
>
> I fetch =auctex= with =el-get= but later only start it with =-l auctex.el=,
> either way produces the same error.
>
> I start emacs
> #+begin_src sh
> emacs -q -l auctex.el
> #+end_src
>
> I then load my TeX setting
> #+begin_src emacs-lisp
> (setq debug-on-error t)
> (setq TeX-parse-self t)
> #+end_src
>
> I then proceed to load my latex file
>
> #+name: tex-file
> #+begin_src sh :results output
> cat equations.tex
> #+end_src
>
> #+RESULTS: tex-file
> #+begin_example
> \documentclass[12pt]{article}
> % \usepackage{graphicx}
> % \makeatletter
> % \g <at> addto <at> macro\@floatboxreset\centering
> % \makeatother
> \usepackage{subfigure}
>
> \pagestyle{empty}
> \begin{document}
>
> \begin{displaymath}
> \textbf{G}: \textbf{P} \mapsto \textbf{Y}
> \end{displaymath}
>
> \end{document}
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% End:
> #+end_example
>
> This produces an error as follows:
> Debugger entered--Lisp error: (wrong-number-of-arguments setq 3)
> signal(wrong-number-of-arguments (setq 3))
>
> (for some reason I can't paste the whole traceback in the mail client)
>
> I noticed that when not using the =\usepackage{subfigure}= package, the
> error does not appear.
>
> I think this is a bug but can't figure out where exactly it's coming from or
> how it appears.
Do you get the error every time you open that file? I can't reproduce
this bug with Emacs 24.5, same version of AUCTeX. I can open the file
and compile it without any problem. Have you tried to check whether
you have something in your init file triggering this bug?
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#22417
; Package
auctex
.
(Wed, 20 Jan 2016 21:45:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 22417 <at> debbugs.gnu.org (full text, mbox):
2016-01-20 22:29 skrev Mosè Giordano:
> Hi Andrea,
>
> 2016-01-20 22:09 GMT+01:00 <andreas.tjarnberg <at> fripost.org>:
>> Hi,
>>
>> I came across the following error when loading a tex file.
>> It somehow seems to be connected to the latex package subfigure.
>>
>> * Bug report in org-mode markup
>>
>> Ubuntu 15.10
>> Emacs version: GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version
>> 3.16.7) of 2016-01-20
>> Auctex version: auctex.git commit #4f618ec
>>
>> I fetch =auctex= with =el-get= but later only start it with =-l
>> auctex.el=,
>> either way produces the same error.
>>
>> I start emacs
>> #+begin_src sh
>> emacs -q -l auctex.el
>> #+end_src
>>
>> I then load my TeX setting
>> #+begin_src emacs-lisp
>> (setq debug-on-error t)
>> (setq TeX-parse-self t)
>> #+end_src
>>
>> I then proceed to load my latex file
>>
>> #+name: tex-file
>> #+begin_src sh :results output
>> cat equations.tex
>> #+end_src
>>
>> #+RESULTS: tex-file
>> #+begin_example
>> \documentclass[12pt]{article}
>> % \usepackage{graphicx}
>> % \makeatletter
>> % \g <at> addto <at> macro\@floatboxreset\centering
>> % \makeatother
>> \usepackage{subfigure}
>>
>> \pagestyle{empty}
>> \begin{document}
>>
>> \begin{displaymath}
>> \textbf{G}: \textbf{P} \mapsto \textbf{Y}
>> \end{displaymath}
>>
>> \end{document}
>> %%% Local Variables:
>> %%% mode: latex
>> %%% TeX-master: t
>> %%% End:
>> #+end_example
>>
>> This produces an error as follows:
>> Debugger entered--Lisp error: (wrong-number-of-arguments setq 3)
>> signal(wrong-number-of-arguments (setq 3))
>>
>> (for some reason I can't paste the whole traceback in the mail client)
>>
>> I noticed that when not using the =\usepackage{subfigure}= package,
>> the
>> error does not appear.
>>
>> I think this is a bug but can't figure out where exactly it's coming
>> from or
>> how it appears.
>
> Do you get the error every time you open that file? I can't reproduce
> this bug with Emacs 24.5, same version of AUCTeX. I can open the file
> and compile it without any problem. Have you tried to check whether
> you have something in your init file triggering this bug?
>
> Bye,
> Mosè
The only thing I load is auctex.el and the two lines
(setq debug-on-error t)
(setq TeX-parse-self t)
so my init should be only that.
The original error prevents the file to open but on subsequent tries the
files opens without error.
I didn't triet with an older version of emacs as I don't have it
currently.
I think it's a bit odd that it seems to be triggered by a latex package.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#22417
; Package
auctex
.
(Wed, 20 Jan 2016 21:50:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 22417 <at> debbugs.gnu.org (full text, mbox):
2016-01-20 22:44 GMT+01:00 <andreas.tjarnberg <at> fripost.org>:
> The only thing I load is auctex.el and the two lines
> (setq debug-on-error t)
> (setq TeX-parse-self t)
> so my init should be only that.
What if you comment the line
(setq TeX-parse-self t)
delete the auto parsed file (if it exists, it's in the auto/
subdirectory of the path where your file is), restart Emacs and open
the file?
> The original error prevents the file to open but on subsequent tries the
> files opens without error.
> I didn't triet with an older version of emacs as I don't have it currently.
> I think it's a bit odd that it seems to be triggered by a latex package.
Sorry, I don't have Emacs 25.1, I can't test myself. Without a
reproducible (for me) recipe I can't do much on this.
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#22417
; Package
auctex
.
(Wed, 20 Jan 2016 21:51:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 22417 <at> debbugs.gnu.org (full text, mbox):
2016-01-20 22:44 skrev andreas.tjarnberg <at> fripost.org:
> 2016-01-20 22:29 skrev Mosè Giordano:
>> Hi Andrea,
>>
>> 2016-01-20 22:09 GMT+01:00 <andreas.tjarnberg <at> fripost.org>:
>>> Hi,
>>>
>>> I came across the following error when loading a tex file.
>>> It somehow seems to be connected to the latex package subfigure.
>>>
>>> * Bug report in org-mode markup
>>>
>>> Ubuntu 15.10
>>> Emacs version: GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version
>>> 3.16.7) of 2016-01-20
>>> Auctex version: auctex.git commit #4f618ec
>>>
>>> I fetch =auctex= with =el-get= but later only start it with =-l
>>> auctex.el=,
>>> either way produces the same error.
>>>
>>> I start emacs
>>> #+begin_src sh
>>> emacs -q -l auctex.el
>>> #+end_src
>>>
>>> I then load my TeX setting
>>> #+begin_src emacs-lisp
>>> (setq debug-on-error t)
>>> (setq TeX-parse-self t)
>>> #+end_src
>>>
>>> I then proceed to load my latex file
>>>
>>> #+name: tex-file
>>> #+begin_src sh :results output
>>> cat equations.tex
>>> #+end_src
>>>
>>> #+RESULTS: tex-file
>>> #+begin_example
>>> \documentclass[12pt]{article}
>>> % \usepackage{graphicx}
>>> % \makeatletter
>>> % \g <at> addto <at> macro\@floatboxreset\centering
>>> % \makeatother
>>> \usepackage{subfigure}
>>>
>>> \pagestyle{empty}
>>> \begin{document}
>>>
>>> \begin{displaymath}
>>> \textbf{G}: \textbf{P} \mapsto \textbf{Y}
>>> \end{displaymath}
>>>
>>> \end{document}
>>> %%% Local Variables:
>>> %%% mode: latex
>>> %%% TeX-master: t
>>> %%% End:
>>> #+end_example
>>>
>>> This produces an error as follows:
>>> Debugger entered--Lisp error: (wrong-number-of-arguments setq 3)
>>> signal(wrong-number-of-arguments (setq 3))
>>>
>>> (for some reason I can't paste the whole traceback in the mail
>>> client)
>>>
>>> I noticed that when not using the =\usepackage{subfigure}= package,
>>> the
>>> error does not appear.
>>>
>>> I think this is a bug but can't figure out where exactly it's coming
>>> from or
>>> how it appears.
>>
>> Do you get the error every time you open that file? I can't reproduce
>> this bug with Emacs 24.5, same version of AUCTeX. I can open the file
>> and compile it without any problem. Have you tried to check whether
>> you have something in your init file triggering this bug?
>>
>> Bye,
>> Mosè
>
> The only thing I load is auctex.el and the two lines
> (setq debug-on-error t)
> (setq TeX-parse-self t)
> so my init should be only that.
>
> The original error prevents the file to open but on subsequent tries
> the files opens without error.
> I didn't triet with an older version of emacs as I don't have it
> currently.
> I think it's a bit odd that it seems to be triggered by a latex
> package.
I loaded a regular tex file and figured out that different latex packges
have there own style file in auctex
subdirectory
looking in the file
auctex/style/subfigure.el i found the following setq command that fails
when I try to execute it with the same error as i got before.
;; Install completion for labels:
(setq TeX-complete-list
(append
'(("\\\\[Ss]ubref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")))
TeX-complete-list)
maybe this is what causes the error. I don't understand why the error
only happens for me though.
Reply sent
to
Mosè Giordano <mose <at> gnu.org>
:
You have taken responsibility.
(Wed, 20 Jan 2016 22:08:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
andreas.tjarnberg <at> fripost.org
:
bug acknowledged by developer.
(Wed, 20 Jan 2016 22:08:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 22417-done <at> debbugs.gnu.org (full text, mbox):
Hi Andreas,
2016-01-20 22:50 GMT+01:00 <andreas.tjarnberg <at> fripost.org>:
> looking in the file
> auctex/style/subfigure.el i found the following setq command that fails when
> I try to execute it with the same error as i got before.
>
> ;; Install completion for labels:
> (setq TeX-complete-list
> (append
> '(("\\\\[Ss]ubref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}")))
> TeX-complete-list)
>
> maybe this is what causes the error. I don't understand why the error only
> happens for me though.
This was useful! setq's syntax has been changed in Emacs 25 so that
it requires an even number of arguments, see the NEWS file, that's why
you get the error while I don't. Anyway the previous setq was wrong,
as the last `TeX-complete-list' escaped outside `append' call. Thanks
for spotting this bug! Fixed with the latest commit.
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#22417
; Package
auctex
.
(Wed, 20 Jan 2016 22:11:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 22417 <at> debbugs.gnu.org (full text, mbox):
2016-01-20 22:49 skrev Mosè Giordano:
> 2016-01-20 22:44 GMT+01:00 <andreas.tjarnberg <at> fripost.org>:
>> The only thing I load is auctex.el and the two lines
>> (setq debug-on-error t)
>> (setq TeX-parse-self t)
>> so my init should be only that.
>
> What if you comment the line
>
> (setq TeX-parse-self t)
>
> delete the auto parsed file (if it exists, it's in the auto/
> subdirectory of the path where your file is), restart Emacs and open
> the file?
>
>> The original error prevents the file to open but on subsequent tries
>> the
>> files opens without error.
>> I didn't triet with an older version of emacs as I don't have it
>> currently.
>> I think it's a bit odd that it seems to be triggered by a latex
>> package.
>
> Sorry, I don't have Emacs 25.1, I can't test myself. Without a
> reproducible (for me) recipe I can't do much on this.
>
> Bye,
> Mosè
That is to bad. Thanks anyway for your answer.
Just for completeness.
As I said in my other mail, the error seems to originate from the
auctex/style/subfigure.el file
and the original code that I referred to do seem like a bug to me, with
the original intent being to add to the list. And that a parenthesis has
gotten misplaced. I changed the code as follows
(setq TeX-complete-list
(append
'(("\\\\[Ss]ubref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}"))
TeX-complete-list))
and now extend the TeX-complete-list variable (I think). This produces
no error for me now. This is how the code looks in many other of the
style files in that subdirectory as well.
Again I'm not sure why this would not produce an error for an earlier
emacs, as I understand, setq should accept an even number of variable
value pairs by default.
Bye,
Andreas
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 18 Feb 2016 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 127 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.