From unknown Mon Jun 23 02:22:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22417 <22417@debbugs.gnu.org> To: bug#22417 <22417@debbugs.gnu.org> Subject: Status: Self parsing bug Reply-To: bug#22417 <22417@debbugs.gnu.org> Date: Mon, 23 Jun 2025 09:22:32 +0000 retitle 22417 Self parsing bug reassign 22417 auctex submitter 22417 andreas.tjarnberg@fripost.org severity 22417 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 16:10:20 2016 Received: (at submit) by debbugs.gnu.org; 20 Jan 2016 21:10:20 +0000 Received: from localhost ([127.0.0.1]:55551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM01E-0002kf-92 for submit@debbugs.gnu.org; Wed, 20 Jan 2016 16:10:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51600) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM01B-0002kS-Af for submit@debbugs.gnu.org; Wed, 20 Jan 2016 16:10:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM015-0000Dz-8l for submit@debbugs.gnu.org; Wed, 20 Jan 2016 16:10:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM015-0000Ds-5Z for submit@debbugs.gnu.org; Wed, 20 Jan 2016 16:10:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM014-00076r-7M for bug-auctex@gnu.org; Wed, 20 Jan 2016 16:10:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM011-0000A7-0s for bug-auctex@gnu.org; Wed, 20 Jan 2016 16:10:10 -0500 Received: from giraff.fripost.org ([178.16.208.44]:52734 helo=outgoing.fripost.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM010-00009I-Lk for bug-auctex@gnu.org; Wed, 20 Jan 2016 16:10:06 -0500 Received: from localhost (localhost [127.0.0.1]) by outgoing.fripost.org (Postfix) with ESMTP id 90AED394CCD for ; Wed, 20 Jan 2016 22:10:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fripost.org; h= user-agent:message-id:subject:subject:from:from:date:date :content-transfer-encoding:content-type:content-type :mime-version; s=20140703; t=1453324205; x=1455138606; bh=y15u2L XQ2b+pg441f9+SKK2aCF2/G/+ANqrrKQ0JOMU=; b=Qy+pTi3q9CMD/WthBD4san XYmSlMZIQUskgCIQEcZgvst/9G6fnSwPEKMZGTWCeO8Yg4dZTEEn1Fn0m2WxocFR iHYM6pW8Eg7MvQs4en63pjaK5t+Rq0a6swmKenPznV7tqasb6ldVBsDAqm+tlMbt 9RW6zY2Z4pWQTyrmfQGMk= X-Virus-Scanned: Debian amavisd-new at fripost.org Received: from outgoing.fripost.org ([127.0.0.1]) by localhost (giraff.fripost.org [127.0.0.1]) (amavisd-new, port 10040) with LMTP id UXmCsvicUdLQ for ; Wed, 20 Jan 2016 22:10:05 +0100 (CET) Received: from mail.fripost.org (elefant.fripost.org [171.25.193.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elefant.fripost.org", Issuer "elefant.fripost.org" (not verified)) by outgoing.fripost.org (Postfix) with ESMTPS id 45ADF394CCA for ; Wed, 20 Jan 2016 22:09:58 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 20 Jan 2016 22:09:58 +0100 From: andreas.tjarnberg@fripost.org To: bug-auctex@gnu.org Subject: Self parsing bug Message-ID: X-Sender: andreas.tjarnberg@fripost.org User-Agent: Roundcube Webmail/1.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) 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@addto@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 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 16:30:47 2016 Received: (at 22417) by debbugs.gnu.org; 20 Jan 2016 21:30:47 +0000 Received: from localhost ([127.0.0.1]:55567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0L0-0003EZ-TF for submit@debbugs.gnu.org; Wed, 20 Jan 2016 16:30:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57710) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0Ky-0003EL-Nw for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:30:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM0Ko-0005y9-PN for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:30:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM0Ko-0005xz-Lm for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:30:34 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:38160) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.82) (envelope-from ) id 1aM0Kn-0000Ud-8q for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:30:34 -0500 Received: by mail-wm0-f53.google.com with SMTP id b14so50676089wmb.1 for <22417@debbugs.gnu.org>; Wed, 20 Jan 2016 13:30:33 -0800 (PST) X-Gm-Message-State: AG10YOQ316JboyhjO56/PMYWvbeVgQ0aFcGjKDUcbRUz4vNllS7J0wQHK5uqf4G0Yb60riLExRmW/+/Od+b0gw== X-Received: by 10.28.153.3 with SMTP id b3mr6591217wme.7.1453325432185; Wed, 20 Jan 2016 13:30:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.10.194 with HTTP; Wed, 20 Jan 2016 13:29:52 -0800 (PST) In-Reply-To: References: From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Wed, 20 Jan 2016 22:29:52 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#22417: Self parsing bug To: andreas.tjarnberg@fripost.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22417 Cc: 22417@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi Andrea, 2016-01-20 22:09 GMT+01:00 : > 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 =3Dauctex=3D with =3Del-get=3D but later only start it with =3D-l= auctex.el=3D, > 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@addto@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 =3D\usepackage{subfigure}=3D package, t= he > 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=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 16:44:31 2016 Received: (at 22417) by debbugs.gnu.org; 20 Jan 2016 21:44:31 +0000 Received: from localhost ([127.0.0.1]:55583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0YJ-0003XL-2r for submit@debbugs.gnu.org; Wed, 20 Jan 2016 16:44:31 -0500 Received: from giraff.fripost.org ([178.16.208.44]:54921 helo=outgoing.fripost.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0YH-0003X9-HG for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:44:30 -0500 Received: from localhost (localhost [127.0.0.1]) by outgoing.fripost.org (Postfix) with ESMTP id 10D5B394DB2; Wed, 20 Jan 2016 22:44:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fripost.org; h= user-agent:message-id:references:in-reply-to:subject:subject :from:from:date:date:content-transfer-encoding:content-type :content-type:mime-version; s=20140703; t=1453326263; x= 1455140664; bh=DjR8rjwWNJfokJDQUKvZuTQwiOq3hbRZFWx3yCsvdJE=; b=Y MiywECZgMqg6fT9UkDRaOGtWgoZ6xa6WPYsV3a2PEEfmOIQy39LrcX1jvzF52qs9 PI+S1QAjkCd0UFRzHZfDpYsHCiYDYTCeEdifFXZohwvCNRHRwWzyo4n2krCF+G44 9sSPZK+4hgZsMdoRp6pesbcIASfDH9B3jrVlznEwXg= X-Virus-Scanned: Debian amavisd-new at fripost.org Received: from outgoing.fripost.org ([127.0.0.1]) by localhost (giraff.fripost.org [127.0.0.1]) (amavisd-new, port 10040) with LMTP id 45VK1w-kXrr8; Wed, 20 Jan 2016 22:44:23 +0100 (CET) Received: from mail.fripost.org (elefant.fripost.org [171.25.193.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elefant.fripost.org", Issuer "elefant.fripost.org" (not verified)) by outgoing.fripost.org (Postfix) with ESMTPS id DE3FB394DAA; Wed, 20 Jan 2016 22:44:14 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 20 Jan 2016 22:44:14 +0100 From: andreas.tjarnberg@fripost.org To: =?UTF-8?Q?Mos=C3=A8_Giordano?= Subject: Re: bug#22417: Self parsing bug In-Reply-To: References: Message-ID: <02cabadd2798bce2dc0bdf94c0515e39@fripost.org> X-Sender: andreas.tjarnberg@fripost.org User-Agent: Roundcube Webmail/1.1.4 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 22417 Cc: 22417@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 2016-01-20 22:29 skrev Mosè Giordano: > Hi Andrea, > > 2016-01-20 22:09 GMT+01:00 : >> 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@addto@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 16:49:53 2016 Received: (at 22417) by debbugs.gnu.org; 20 Jan 2016 21:49:54 +0000 Received: from localhost ([127.0.0.1]:55587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0dV-0003ew-OS for submit@debbugs.gnu.org; Wed, 20 Jan 2016 16:49:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:32782) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0dU-0003ek-Bm for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:49:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM0dL-0001km-AV for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:49:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM0dL-0001kf-7M for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:49:43 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:37308) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.82) (envelope-from ) id 1aM0dK-000400-Op for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:49:42 -0500 Received: by mail-wm0-f44.google.com with SMTP id n5so51335524wmn.0 for <22417@debbugs.gnu.org>; Wed, 20 Jan 2016 13:49:42 -0800 (PST) X-Gm-Message-State: AG10YOTHfhZs62GwSyXKlATMPLelBXBkUHcT82xaR/eVnRmvXEvPNkFaO+jV5bAKCJWw1e7ovP5CmhFyCq9Mpw== X-Received: by 10.28.218.78 with SMTP id r75mr6652406wmg.7.1453326581646; Wed, 20 Jan 2016 13:49:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.10.194 with HTTP; Wed, 20 Jan 2016 13:49:02 -0800 (PST) In-Reply-To: <02cabadd2798bce2dc0bdf94c0515e39@fripost.org> References: <02cabadd2798bce2dc0bdf94c0515e39@fripost.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Wed, 20 Jan 2016 22:49:02 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#22417: Self parsing bug To: andreas.tjarnberg@fripost.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22417 Cc: 22417@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 2016-01-20 22:44 GMT+01:00 : > 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 currentl= y. > 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=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 16:50:43 2016 Received: (at 22417) by debbugs.gnu.org; 20 Jan 2016 21:50:43 +0000 Received: from localhost ([127.0.0.1]:55591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0eI-0003gR-W3 for submit@debbugs.gnu.org; Wed, 20 Jan 2016 16:50:43 -0500 Received: from giraff.fripost.org ([178.16.208.44]:54929 helo=outgoing.fripost.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0eI-0003gG-0B for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 16:50:42 -0500 Received: from localhost (localhost [127.0.0.1]) by outgoing.fripost.org (Postfix) with ESMTP id 5E444394DD7; Wed, 20 Jan 2016 22:50:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fripost.org; h= user-agent:message-id:references:in-reply-to:subject:subject :from:from:date:date:content-transfer-encoding:content-type :content-type:mime-version; s=20140703; t=1453326636; x= 1455141037; bh=sRnaDyhZLU9958XWeUUuwZm0baHjI68LogbpYzebFSc=; b=e S8usi/6cLJlbNL6NwtWCE4U921yg8hqfo9FkTlHGMaGfr9/zyC/kcPVqupFmHUgj +BySQafhPXJlQ5bRUqHmQOz2xc8WJ0n8YGeLCC0M/ayo/POtUrEvr3XqSvxzrC7m A4RBE+W241ZqjuxlharCq6wBf2Z/ntGhIN5uKzPA64= X-Virus-Scanned: Debian amavisd-new at fripost.org Received: from outgoing.fripost.org ([127.0.0.1]) by localhost (giraff.fripost.org [127.0.0.1]) (amavisd-new, port 10040) with LMTP id jOogkSDq-Pvc; Wed, 20 Jan 2016 22:50:36 +0100 (CET) Received: from mail.fripost.org (elefant.fripost.org [171.25.193.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elefant.fripost.org", Issuer "elefant.fripost.org" (not verified)) by outgoing.fripost.org (Postfix) with ESMTPS id 1FE21394DD4; Wed, 20 Jan 2016 22:50:35 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 20 Jan 2016 22:50:35 +0100 From: andreas.tjarnberg@fripost.org To: =?UTF-8?Q?Mos=C3=A8_Giordano?= Subject: Re: bug#22417: Self parsing bug In-Reply-To: <02cabadd2798bce2dc0bdf94c0515e39@fripost.org> References: <02cabadd2798bce2dc0bdf94c0515e39@fripost.org> Message-ID: <1450ee6b07990e3e03cc18037d14f354@fripost.org> X-Sender: andreas.tjarnberg@fripost.org User-Agent: Roundcube Webmail/1.1.4 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 22417 Cc: 22417@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 2016-01-20 22:44 skrev andreas.tjarnberg@fripost.org: > 2016-01-20 22:29 skrev Mosè Giordano: >> Hi Andrea, >> >> 2016-01-20 22:09 GMT+01:00 : >>> 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@addto@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 17:07:28 2016 Received: (at 22417-done) by debbugs.gnu.org; 20 Jan 2016 22:07:28 +0000 Received: from localhost ([127.0.0.1]:55601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0uW-00044Y-LK for submit@debbugs.gnu.org; Wed, 20 Jan 2016 17:07:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39720) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0uV-00044L-AJ for 22417-done@debbugs.gnu.org; Wed, 20 Jan 2016 17:07:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM0uN-0007Gt-42 for 22417-done@debbugs.gnu.org; Wed, 20 Jan 2016 17:07:22 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM0uN-0007Gi-1O for 22417-done@debbugs.gnu.org; Wed, 20 Jan 2016 17:07:19 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:35806) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.82) (envelope-from ) id 1aM0uM-0001w4-I6 for 22417-done@debbugs.gnu.org; Wed, 20 Jan 2016 17:07:18 -0500 Received: by mail-wm0-f47.google.com with SMTP id r129so149247324wmr.0 for <22417-done@debbugs.gnu.org>; Wed, 20 Jan 2016 14:07:18 -0800 (PST) X-Gm-Message-State: AG10YORK7QUW82CwW6QtC5ZlLhxKK3tJDDcCDq2Fj11aKr04p6G5fldhO1/odRxuwna3X8wLXnSS0elgOL6VFg== X-Received: by 10.28.218.78 with SMTP id r75mr6713834wmg.7.1453327637673; Wed, 20 Jan 2016 14:07:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.10.194 with HTTP; Wed, 20 Jan 2016 14:06:38 -0800 (PST) In-Reply-To: <1450ee6b07990e3e03cc18037d14f354@fripost.org> References: <02cabadd2798bce2dc0bdf94c0515e39@fripost.org> <1450ee6b07990e3e03cc18037d14f354@fripost.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Wed, 20 Jan 2016 23:06:38 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#22417: Self parsing bug To: andreas.tjarnberg@fripost.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22417-done Cc: 22417-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi Andreas, 2016-01-20 22:50 GMT+01:00 : > looking in the file > auctex/style/subfigure.el i found the following setq command that fails w= hen > 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 onl= y > 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=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 17:10:42 2016 Received: (at 22417) by debbugs.gnu.org; 20 Jan 2016 22:10:42 +0000 Received: from localhost ([127.0.0.1]:55607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0xe-00049b-38 for submit@debbugs.gnu.org; Wed, 20 Jan 2016 17:10:42 -0500 Received: from giraff.fripost.org ([178.16.208.44]:54948 helo=outgoing.fripost.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aM0xc-00049P-Ht for 22417@debbugs.gnu.org; Wed, 20 Jan 2016 17:10:41 -0500 Received: from localhost (localhost [127.0.0.1]) by outgoing.fripost.org (Postfix) with ESMTP id 10902394F55; Wed, 20 Jan 2016 23:10:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fripost.org; h= user-agent:message-id:references:in-reply-to:subject:subject :from:from:date:date:content-transfer-encoding:content-type :content-type:mime-version; s=20140703; t=1453327834; x= 1455142235; bh=NqTdQPt+as2HwLym5+jyLMKFDjHxBW7Z4n4Tm/8VaIw=; b=b kbkU1Jft1trgHmUf0dq4TiZLzCCZEsFPXr8BgqoD5j5HfwJcpp4T605sXLoLlR7P 4bHZhwddXE7Ayp1tOvZI2bgzEU1x7+XU5EtFAAtgkiSn6wzrhzijQH+DC6P/SJHi kYpGkvOaOnVnVHf7e0NjPLB0T/oWpwje+FeQlkPB2c= X-Virus-Scanned: Debian amavisd-new at fripost.org Received: from outgoing.fripost.org ([127.0.0.1]) by localhost (giraff.fripost.org [127.0.0.1]) (amavisd-new, port 10040) with LMTP id QWeOIJtjxhZw; Wed, 20 Jan 2016 23:10:34 +0100 (CET) Received: from mail.fripost.org (elefant.fripost.org [171.25.193.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elefant.fripost.org", Issuer "elefant.fripost.org" (not verified)) by outgoing.fripost.org (Postfix) with ESMTPS id A16CE394F52; Wed, 20 Jan 2016 23:10:33 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 20 Jan 2016 23:10:33 +0100 From: andreas.tjarnberg@fripost.org To: =?UTF-8?Q?Mos=C3=A8_Giordano?= Subject: Re: bug#22417: Self parsing bug In-Reply-To: References: <02cabadd2798bce2dc0bdf94c0515e39@fripost.org> Message-ID: X-Sender: andreas.tjarnberg@fripost.org User-Agent: Roundcube Webmail/1.1.4 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 22417 Cc: 22417@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 2016-01-20 22:49 skrev Mosè Giordano: > 2016-01-20 22:44 GMT+01:00 : >> 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 From unknown Mon Jun 23 02:22:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 18 Feb 2016 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator