From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: Lars Eriksson Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 03 Nov 2016 15:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 24866@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.147818676720804 (code B ref -1); Thu, 03 Nov 2016 15:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2016 15:26:07 +0000 Received: from localhost ([127.0.0.1]:41773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2Ju3-0005PT-7K for submit@debbugs.gnu.org; Thu, 03 Nov 2016 11:26:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2Gb7-0000ZV-VG for submit@debbugs.gnu.org; Thu, 03 Nov 2016 07:54:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Gb1-00030L-LJ for submit@debbugs.gnu.org; Thu, 03 Nov 2016 07:54:16 -0400 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,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2Gb1-00030H-IW for submit@debbugs.gnu.org; Thu, 03 Nov 2016 07:54:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Gb0-0005Hi-FZ for bug-auctex@gnu.org; Thu, 03 Nov 2016 07:54:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Gaw-0002ye-Jb for bug-auctex@gnu.org; Thu, 03 Nov 2016 07:54:14 -0400 Received: from muon.isy.liu.se ([130.236.48.25]:51195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Gaw-0002x2-8m for bug-auctex@gnu.org; Thu, 03 Nov 2016 07:54:10 -0400 Received: from c-10-253-38-144.eduroam.liu.se (unknown [10.253.38.144]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.isy.liu.se (Postfix) with ESMTPSA id 0E5E1278 for ; Thu, 3 Nov 2016 12:54:05 +0100 (MET) From: Lars Eriksson Content-Type: multipart/alternative; boundary="Apple-Mail=_4C4A6ACC-F6E7-41B0-A7E5-B2C5FCB58CD0" Message-Id: Date: Thu, 3 Nov 2016 12:54:03 +0100 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Thu, 03 Nov 2016 11:26:06 -0400 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 (-----) --Apple-Mail=_4C4A6ACC-F6E7-41B0-A7E5-B2C5FCB58CD0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, Might be Emacs and not AucTeX that cause the problems but it was AucTeX = that triggered my problems, and I wanted to make you aware... I have a clean installation of Emacs for Mac 25.1.1 and pulled a fresh = auctex from github (see script below).=20 In my .emacs I have reduced everything to to (load "auctex.el" nil t t) When I try to open a LaTeX-file I get the message:=20 File mode specification error: (void-variable LaTeX-preview-setup) Any clues or instructions? As a follow-up: I have downgraded to Emacs 24.5 and AucTeX pulled from = git works fine there. Best, Lars #!/bin/sh git clone git://git.savannah.gnu.org/auctex.git export EMACSMAIN=3D/Applications/Emacs.app/Contents/Resources export SITELISPDIR=3D$EMACSMAIN/site-lisp export INFODIR=3D$EMACSMAIN/info cd auctex ./autogen.sh ./configure --with-emacs --with-lispdir=3D$SITELISPDIR \ --with-auto-dir=3D$SITELISPDIR/auctex/auto \ --infodir=3D$INFODIR --without-texmf-dir make sudo make install --Apple-Mail=_4C4A6ACC-F6E7-41B0-A7E5-B2C5FCB58CD0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi,

Might = be Emacs and not AucTeX that cause the problems but it was AucTeX that = triggered my problems, and I wanted to make you aware...

I have a clean installation of = Emacs for Mac 25.1.1 and pulled a fresh auctex from github (see script = below). 
In my .emacs I have reduced = everything to to (load "auctex.el" nil t t)
When I = try to open a LaTeX-file I get the  message: 

File mode specification = error: (void-variable LaTeX-preview-setup)

Any clues or = instructions?

As= a follow-up: I have downgraded to Emacs 24.5 and AucTeX pulled from git = works fine there.

Best,
Lars


#!/bin/sh


export = EMACSMAIN=3D/Applications/Emacs.app/Contents/Resources
export = SITELISPDIR=3D$EMACSMAIN/site-lisp
export INFODIR=3D$EMACSMAIN/info

cd auctex
./autogen.sh
./configure --with-emacs --with-lispdir=3D$SITELISPDIR = \
--with-auto-dir=3D$SITELISPDIR/auctex/auto \
--infodir=3D$INFODIR = --without-texmf-dir

make
sudo = make install

= --Apple-Mail=_4C4A6ACC-F6E7-41B0-A7E5-B2C5FCB58CD0-- From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: =?UTF-8?Q?Mos=C3=A8?= Giordano Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 03 Nov 2016 15:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Lars Eriksson Cc: 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.147818790522604 (code B ref 24866); Thu, 03 Nov 2016 15:46:02 +0000 Received: (at 24866) by debbugs.gnu.org; 3 Nov 2016 15:45:05 +0000 Received: from localhost ([127.0.0.1]:41787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2KCO-0005sV-NV for submit@debbugs.gnu.org; Thu, 03 Nov 2016 11:45:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2KCM-0005rj-UO for 24866@debbugs.gnu.org; Thu, 03 Nov 2016 11:45:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2KCD-0007Es-Ow for 24866@debbugs.gnu.org; Thu, 03 Nov 2016 11:44:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_50, RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2KCD-0007Eh-MR for 24866@debbugs.gnu.org; Thu, 03 Nov 2016 11:44:53 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:35646) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c2KCD-0005XN-80 for 24866@debbugs.gnu.org; Thu, 03 Nov 2016 11:44:53 -0400 Received: by mail-wm0-f49.google.com with SMTP id a197so213539234wmd.0 for <24866@debbugs.gnu.org>; Thu, 03 Nov 2016 08:44:53 -0700 (PDT) X-Gm-Message-State: ABUngvetqu285Om2Tbfl7gnBioWaLqyOpUdh+oqt5B8s894wGRH1xyCXmoO+pe+Jk1+t4YyI2QZB4HTXkfmzYA== X-Received: by 10.28.30.3 with SMTP id e3mr2851845wme.40.1478187891932; Thu, 03 Nov 2016 08:44:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.26.4 with HTTP; Thu, 3 Nov 2016 08:44:11 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Mos=C3=A8?= Giordano Date: Thu, 3 Nov 2016 16:44:11 +0100 X-Gmail-Original-Message-ID: Message-ID: 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: -6.8 (------) 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: -6.8 (------) Hi Lars, 2016-11-03 12:54 GMT+01:00 Lars Eriksson : > Hi, > > Might be Emacs and not AucTeX that cause the problems but it was AucTeX t= hat > triggered my problems, and I wanted to make you aware... > > I have a clean installation of Emacs for Mac 25.1.1 and pulled a fresh > auctex from github (see script below). > In my .emacs I have reduced everything to to (load "auctex.el" nil t t) > When I try to open a LaTeX-file I get the message: I see that you're passing to configure an explicit --with-lispdir, did you add to your init file the line (add-to-list 'load-path "~/elisp") before loading auctex.el, as explained in the manual? Bye, Mos=C3=A8 From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac References: In-Reply-To: Resent-From: emacs user Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 03 Nov 2016 22:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 24866@debbugs.gnu.org, larer@isy.liu.se X-Debbugs-Original-To: bug-auctex@gnu.org, larer@isy.liu.se Received: via spool by submit@debbugs.gnu.org id=B.14782137472657 (code B ref -1); Thu, 03 Nov 2016 22:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2016 22:55:47 +0000 Received: from localhost ([127.0.0.1]:41968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2QvD-0000gn-FE for submit@debbugs.gnu.org; Thu, 03 Nov 2016 18:55:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2QvA-0000gZ-Pp for submit@debbugs.gnu.org; Thu, 03 Nov 2016 18:55:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Qv4-0000Oh-Tj for submit@debbugs.gnu.org; Thu, 03 Nov 2016 18:55:39 -0400 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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47852) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2Qv4-0000O6-QI for submit@debbugs.gnu.org; Thu, 03 Nov 2016 18:55:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Qv3-0005c9-Nr for bug-auctex@gnu.org; Thu, 03 Nov 2016 18:55:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Qv2-0000MM-Sp for bug-auctex@gnu.org; Thu, 03 Nov 2016 18:55:37 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:35452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2Qv2-0000Km-LT for bug-auctex@gnu.org; Thu, 03 Nov 2016 18:55:36 -0400 Received: by mail-wm0-x22e.google.com with SMTP id a197so16794281wmd.0 for ; Thu, 03 Nov 2016 15:55:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=hCVBjHF9KKsDv6yWeVf2xkIM8ylEIaTvr/qivhCWyBo=; b=E+C7L+JH1D7zP6JvQDHJImJR2gGnQh/ShTQElJtFmDxVuFjVEcfey6PjuSgpc4rs/y EcNIMhY9j5LmRpNJk6RYaYOusDmTT1FUxYw1cTZ1knec7lfIhyNqQLsLV6uWTBwM0ioU Eb0Wbl49/5JF5+CkQCiBWUs1vxJQROeaxJv/WTN9/F1RIg7dQa2xBlchvMumsW6iVpl9 RsiB3F/BGEaFZ94fgIXChkeva729h8VfY9QGk48n4CtYcWkdZUlVB7VETrrEd4ZPW7vR qbRZkoJTZup0Ns/GA8jbP2qJ/iEMxctCOit5G6mGoZ/vBVzwHU8ktmzRkNwfckF7VhBn N54Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hCVBjHF9KKsDv6yWeVf2xkIM8ylEIaTvr/qivhCWyBo=; b=li4DyyD3T4CtOUQgON/dIRvhYOtsCecowFdSc0tmL/BDZJErf5p7Bl2dJqqmwIrtpM PujKuw2PVSiVJyZO+zR2BNBku499IIwPo+F8cGP/2i6ldBzQpsdzWxBuM73rZTns2w+Q IpbqIXlVak32VMTT4E7JK9GZ114KqQWfjmsvcqyMKwqNY1mCkik60MLi0/eVdfrHO5E0 AU1RR1s/p7g8mLy/FEoQt/sYa6k1U6JVODQif0T9LTQDUffYpfOdSTd9tYX1L7wMEmhq eLxVWRa2CkUtpyVoKXJvOLX33HAuwtwF5BLN3XFR1od7H0tTXlh4wVdckETCt1hRtJ30 7hAw== X-Gm-Message-State: ABUngvcnlyCIBuJAn44yuLPAIrs54ipqbqgdKvUIViohm7pBMgSQA8lcf3hWUYgJeruXHRRyZT5IE/nt7pyP4A== X-Received: by 10.194.24.34 with SMTP id r2mr9097383wjf.111.1478213735016; Thu, 03 Nov 2016 15:55:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.172.110 with HTTP; Thu, 3 Nov 2016 15:55:34 -0700 (PDT) From: emacs user Date: Fri, 4 Nov 2016 00:55:34 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 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.0 (----) 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.0 (----) Hi, just to say that I am having the same/ related problem: emacs 25.1, latest auctex from elpa, on a Mac OS X Sierra. auctex seems to work fine, but preview latex is not recognized. used to work previously, although am not sure if this is due to the upgraded emacs or auctex versions. thanks for any hints... E ________________________________ Hi, Might be Emacs and not AucTeX that cause the problems but it was AucTeX that triggered my problems, and I wanted to make you aware... I have a clean installation of Emacs for Mac 25.1.1 and pulled a fresh auctex from github (see script below). In my .emacs I have reduced everything to to (load "auctex.el" nil t t) When I try to open a LaTeX-file I get the message: File mode specification error: (void-variable LaTeX-preview-setup) Any clues or instructions? As a follow-up: I have downgraded to Emacs 24.5 and AucTeX pulled from git works fine there. Best, Lars From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: Lars Eriksson Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 05 Nov 2016 11:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: =?UTF-8?Q?Mos=C3=A8?= Giordano Cc: 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.14783461789432 (code B ref 24866); Sat, 05 Nov 2016 11:43:01 +0000 Received: (at 24866) by debbugs.gnu.org; 5 Nov 2016 11:42:58 +0000 Received: from localhost ([127.0.0.1]:45452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2zNB-0002S4-No for submit@debbugs.gnu.org; Sat, 05 Nov 2016 07:42:57 -0400 Received: from muon.isy.liu.se ([130.236.48.25]:43768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2zNA-0002Rw-CO for 24866@debbugs.gnu.org; Sat, 05 Nov 2016 07:42:57 -0400 Received: from [192.168.0.23] (h83-209-96-160.cust.se.alltele.net [83.209.96.160]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.isy.liu.se (Postfix) with ESMTPSA id F3FCFB63; Sat, 5 Nov 2016 12:42:53 +0100 (MET) Content-Type: multipart/alternative; boundary="Apple-Mail=_76C6405A-E94F-41B2-871B-A7CCA6A99FE1" Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Lars Eriksson In-Reply-To: Date: Sat, 5 Nov 2016 12:42:52 +0100 Message-Id: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> References: X-Mailer: Apple Mail (2.3124) X-Spam-Score: -4.7 (----) 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.7 (----) --Apple-Mail=_76C6405A-E94F-41B2-871B-A7CCA6A99FE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Mos=C3=A9,=20 Thank you for your prompt response, sorry for not responding earlier. I did not add the search path explicitly as it was placed under the = site-lisp directly inside the emacs distribution /Applications/Emacs.app/Contents/Resources/site-lisp This directory should be available automatically by emacs. Emacs does = find and execute the main auctex-file, so I believed that the path was = not necessary. This might be my error. A correction: I made a mistake in my test with the 24.5, I was too quick on the = keyboard With the auctex error there is no syntax highlighting. I = installed 24.5 and AucTeX and opened emacs with a latex file and got = syntax highlighting so I believed auctex was loaded but it was not, at = the time of me sending the mail. Some more testing showed that my Mac = had started Emacs from the dmg file that was still open at the time of = testing and only loaded the standard latex mode and gave me syntax = highlighting and I jumped to the conclusion that all was working=E2=80=A6 = But when the dmg was unmounted AucTeX was not working. So the latest AucTeX-build did not work on 24.5=E2=80=A6. I later tried the old Au11.89 and Em 24.5 without success (same error) = so I went for Au 11.88 and Em 24.5 and can confirm that this works for = me. I have AucTex in the distribution place /Applications/Emacs.app/Contents/Resources/site-lisp and=20 Hope this helps some one: Best, Lars > 3 nov. 2016 kl. 16:44 skrev Mos=C3=A8 Giordano : >=20 > Hi Lars, >=20 > 2016-11-03 12:54 GMT+01:00 Lars Eriksson : >> Hi, >>=20 >> Might be Emacs and not AucTeX that cause the problems but it was = AucTeX that >> triggered my problems, and I wanted to make you aware... >>=20 >> I have a clean installation of Emacs for Mac 25.1.1 and pulled a = fresh >> auctex from github (see script below). >> In my .emacs I have reduced everything to to (load "auctex.el" nil t = t) >> When I try to open a LaTeX-file I get the message: >=20 > I see that you're passing to configure an explicit --with-lispdir, did > you add to your init file the line >=20 > (add-to-list 'load-path "~/elisp") >=20 > before loading auctex.el, as explained in the manual? >=20 > Bye, > Mos=C3=A8 --Apple-Mail=_76C6405A-E94F-41B2-871B-A7CCA6A99FE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Mos=C3=A9, 

Thank you for your prompt response, sorry for not responding = earlier.

I did not = add the search path explicitly as it was placed under the site-lisp = directly inside the emacs distribution
 /Applications/Emacs.app/Contents/Resources/site-lisp
This directory should be available = automatically by emacs. Emacs does find and execute the main = auctex-file, so I believed that the path was not necessary. This might = be my error.

A = correction:
I made a mistake in my test with the = 24.5, I was too quick on the keyboard With the auctex error there is no = syntax highlighting. I installed 24.5 and AucTeX and opened emacs with a = latex file and got syntax highlighting so I believed auctex was loaded = but it was not, at the time of me sending the mail. Some more testing = showed that my Mac had started Emacs from the dmg file that was still = open at the time of testing and only loaded the standard latex mode and = gave me syntax highlighting and I jumped to the conclusion that all was = working=E2=80=A6 But when the dmg was unmounted AucTeX was not = working.

So = the latest AucTeX-build did not work on 24.5=E2=80=A6.
I later tried the old Au11.89 and Em 24.5 without success = (same error) so I went for Au 11.88 and Em 24.5 and can confirm that = this works for me.
I have AucTex in the = distribution place
 /Applications/Emacs.app/Contents/Resources/site-lisp
and 

Hope this helps some one:

Best,
Lars

3 = nov. 2016 kl. 16:44 skrev Mos=C3=A8 Giordano <mose@gnu.org>:

Hi = Lars,

2016-11-03 12:54 GMT+01:00 Lars = Eriksson <larer@isy.liu.se>:
Hi,

Might be Emacs = and not AucTeX that cause the problems but it was AucTeX that
triggered my problems, and I wanted to make you aware...

I have a clean installation of Emacs for Mac = 25.1.1 and pulled a fresh
auctex from github (see script = below).
In my .emacs I have reduced everything to to (load = "auctex.el" nil t t)
When I try to open a LaTeX-file I get = the  message:

I see that = you're passing to configure an explicit --with-lispdir, did
you add to your init file the line

  (add-to-list 'load-path "~/elisp")

before loading auctex.el, as explained in the = manual?

Bye,
Mos=C3=A8

= --Apple-Mail=_76C6405A-E94F-41B2-871B-A7CCA6A99FE1-- From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: =?UTF-8?Q?Mos=C3=A8?= Giordano Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 06 Nov 2016 23:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Lars Eriksson Cc: 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.14784748194665 (code B ref 24866); Sun, 06 Nov 2016 23:27:02 +0000 Received: (at 24866) by debbugs.gnu.org; 6 Nov 2016 23:26:59 +0000 Received: from localhost ([127.0.0.1]:47231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3Wq2-0001DA-Mm for submit@debbugs.gnu.org; Sun, 06 Nov 2016 18:26:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3Wq0-0001Cx-8D for 24866@debbugs.gnu.org; Sun, 06 Nov 2016 18:26:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3Wpr-0004Tu-EV for 24866@debbugs.gnu.org; Sun, 06 Nov 2016 18:26:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.0 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]:54900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3Wpr-0004Th-Bj for 24866@debbugs.gnu.org; Sun, 06 Nov 2016 18:26:47 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:36750) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c3Wpq-0003OO-TU for 24866@debbugs.gnu.org; Sun, 06 Nov 2016 18:26:47 -0500 Received: by mail-wm0-f42.google.com with SMTP id p190so151362771wmp.1 for <24866@debbugs.gnu.org>; Sun, 06 Nov 2016 15:26:46 -0800 (PST) X-Gm-Message-State: ABUngvciQMhU3iwc9xTQK/jDga1EEtfKJJtfx3kHpgiTr+F53SB19R1kpIWbh6oHwARMXrGh9tO2cisiH0SJWQ== X-Received: by 10.28.105.78 with SMTP id e75mr6940021wmc.55.1478474805794; Sun, 06 Nov 2016 15:26:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.26.4 with HTTP; Sun, 6 Nov 2016 15:26:05 -0800 (PST) In-Reply-To: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> From: =?UTF-8?Q?Mos=C3=A8?= Giordano Date: Mon, 7 Nov 2016 00:26:05 +0100 X-Gmail-Original-Message-ID: Message-ID: 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: -7.0 (-------) 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: -7.0 (-------) Hi Lars, 2016-11-05 12:42 GMT+01:00 Lars Eriksson : > A correction: > I made a mistake in my test with the 24.5, I was too quick on the keyboar= d > With the auctex error there is no syntax highlighting. I installed 24.5 a= nd > AucTeX and opened emacs with a latex file and got syntax highlighting so = I > believed auctex was loaded but it was not, at the time of me sending the > mail. Some more testing showed that my Mac had started Emacs from the dmg > file that was still open at the time of testing and only loaded the stand= ard > latex mode and gave me syntax highlighting and I jumped to the conclusion > that all was working=E2=80=A6 But when the dmg was unmounted AucTeX was n= ot working. > > So the latest AucTeX-build did not work on 24.5=E2=80=A6. > I later tried the old Au11.89 and Em 24.5 without success (same error) so= I > went for Au 11.88 and Em 24.5 and can confirm that this works for me. > I have AucTex in the distribution place > /Applications/Emacs.app/Contents/Resources/site-lisp > and The source tree of AUCTeX has been changed in 11.89, so in principle it makes sense that you actually experience the problem with version 11.89 but not 11.88. What looks strange to me is that the change actually simplified things moving all files to the same directory. I'll try to reproduce your issue. Bye, Mos=C3=A8 From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: =?UTF-8?Q?Mos=C3=A8?= Giordano Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 07 Nov 2016 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Lars Eriksson Cc: 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.14785286679581 (code B ref 24866); Mon, 07 Nov 2016 14:25:01 +0000 Received: (at 24866) by debbugs.gnu.org; 7 Nov 2016 14:24:27 +0000 Received: from localhost ([127.0.0.1]:47668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3kqZ-0002US-8T for submit@debbugs.gnu.org; Mon, 07 Nov 2016 09:24:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3kqX-0002UG-0P for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 09:24:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3kqN-0001qL-1U for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 09:24:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 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]:36734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3kqM-0001qC-U2 for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 09:24:14 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38527) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c3kqM-0004nx-GD for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 09:24:14 -0500 Received: by mail-wm0-f45.google.com with SMTP id f82so121791244wmf.1 for <24866@debbugs.gnu.org>; Mon, 07 Nov 2016 06:24:14 -0800 (PST) X-Gm-Message-State: ABUngvdddLq916obfkgNMymnf6CVTPDpSuzPd5DJCrSREspm8hrPr2wmVoiYlFiiVnmjGEm/ndHPcZnzK2CJBA== X-Received: by 10.194.2.198 with SMTP id 6mr6869281wjw.51.1478528653456; Mon, 07 Nov 2016 06:24:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.26.4 with HTTP; Mon, 7 Nov 2016 06:23:32 -0800 (PST) In-Reply-To: References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> From: =?UTF-8?Q?Mos=C3=A8?= Giordano Date: Mon, 7 Nov 2016 15:23:32 +0100 X-Gmail-Original-Message-ID: Message-ID: 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: -7.9 (-------) 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: -7.9 (-------) Hi Lars, I tried to reproduce your problem, to no avail. I actually used the following configuration line (I use GNU/Linux): ./configure --with-lispdir=3D/usr/local/share/emacs/site-lisp \ --with-auto-dir=3D/usr/local/share/emacs/site-lisp/auctex/auto \ --infodir=3D/usr/local/share/emacs/info --without-texmf-dir and added to my init file: (add-to-list 'load-path "/usr/local/share/emac/site-lisp") (load "auctex.el" nil t t) When I open *TeX files, I get no error. Thus, you should try to debug it yourself. An indication: is "$EMACSMAIN/site-lisp/auctex" in your `load-path'? Bye, Mos=C3=A8 From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: =?UTF-8?Q?Mos=C3=A8?= Giordano Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 07 Nov 2016 14:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Lars Eriksson , 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.147853007711634 (code B ref 24866); Mon, 07 Nov 2016 14:48:01 +0000 Received: (at 24866) by debbugs.gnu.org; 7 Nov 2016 14:47:57 +0000 Received: from localhost ([127.0.0.1]:47678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3lDJ-00031a-G1 for submit@debbugs.gnu.org; Mon, 07 Nov 2016 09:47:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3lDI-00031O-5h for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 09:47:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3lD8-0007cw-IB for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 09:47:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_50, RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3lD8-0007cr-En for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 09:47:46 -0500 Received: from mail-lf0-f47.google.com ([209.85.215.47]:34886) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c3lD8-0008FU-1Z for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 09:47:46 -0500 Received: by mail-lf0-f47.google.com with SMTP id b14so115165146lfg.2 for <24866@debbugs.gnu.org>; Mon, 07 Nov 2016 06:47:45 -0800 (PST) X-Gm-Message-State: ABUngvfViobrDwdSjYipZV6HmK5g2uoAEXFnQ1ZwCNLpgslvGYazMCqGZnyD2eI7xl6ba7nHCZTBQAMVA4FQjA== X-Received: by 10.194.222.202 with SMTP id qo10mr5860042wjc.115.1478530064417; Mon, 07 Nov 2016 06:47:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.26.4 with HTTP; Mon, 7 Nov 2016 06:47:03 -0800 (PST) In-Reply-To: References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> From: =?UTF-8?Q?Mos=C3=A8?= Giordano Date: Mon, 7 Nov 2016 15:47:03 +0100 X-Gmail-Original-Message-ID: Message-ID: 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: -7.4 (-------) 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: -7.4 (-------) 2016-11-07 15:40 GMT+01:00 Lars Eriksson : > Hi Mos=C3=A8, > > Thanks for being engaged in this. > > Are you working on a Mac and did you try to start it without the load pat= h added? > > I have a configuration that works (Au 11.88 and Em 24.5) so I will need t= o uninstall and reinstall and do the testing, anyway I will test tonight fo= r the benefit of the community... No, I don't use Mac OS, but I'd surprised to discover this is an operating-system-related issue, the setup is supposed to be the same on all *nix systems. Please, keep the 24866@debbugs.gnu.org address in the CC list when replying to this thread (simply hit the "Reply all" button), so that everybody can follow it. Bye, Mos=C3=A8 From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: Lars Eriksson Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 07 Nov 2016 23:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: =?UTF-8?Q?Mos=C3=A8?= Giordano Cc: 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.147855974211442 (code B ref 24866); Mon, 07 Nov 2016 23:03:02 +0000 Received: (at 24866) by debbugs.gnu.org; 7 Nov 2016 23:02:22 +0000 Received: from localhost ([127.0.0.1]:48810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3svm-0002yT-Ge for submit@debbugs.gnu.org; Mon, 07 Nov 2016 18:02:22 -0500 Received: from muon.isy.liu.se ([130.236.48.25]:58140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3svk-0002yJ-Cx for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 18:02:21 -0500 Received: from [192.168.0.23] (h83-209-96-160.cust.se.alltele.net [83.209.96.160]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.isy.liu.se (Postfix) with ESMTPSA id B46D7E39; Tue, 8 Nov 2016 00:02:18 +0100 (MET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Lars Eriksson In-Reply-To: Date: Tue, 8 Nov 2016 00:02:16 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <2B040C3E-50A7-4386-AB41-D96CC727CC6C@isy.liu.se> References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> X-Mailer: Apple Mail (2.3124) X-Spam-Score: -5.2 (-----) 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.2 (-----) Hi Mos=C3=A8, I have now tested AucTeX (from git) on Emacs 25.1-1 on Mac and I am = sorry to say that adding load paths did not help in my case. Same error, = independent of load path. I have tried both without and with the = addition of one and both of the following load paths before loading = auctex.el (add-to-list 'load-path = "/Applications/Emacs.app/Contents/Resources/site-lisp") (add-to-list 'load-path = "/Applications/Emacs.app/Contents/Resources/site-lisp/auctex") (load "auctex.el" nil t t) =46rom the debugger output below I have found that the error is = encountered when it evaluates TeX-latex-mode() in the file latex.el. = Even without the load paths above Emacs finds the file latex.el file = that resides in the directory: /Applications/Emacs.app/Contents/Resources/site-lisp/auctex/ My debugging skills and emacs hacking skills are limited so I have only = run the lisp code to start the debugger (setq debug-on-error t). Then I = load a latex file =E2=80=9Dtest.tex" and get the following backtrace: Debugger entered--Lisp error: (void-variable LaTeX-preview-setup) byte-code("\303\300\304\"\210\305\306!\203=12=00\306=08\307 = C#\210\310\311\312\"\210\310\311\313\"\210\305\314!\203'=00\314\n\315\"\21= 0\304\207" [latex-mode-abbrev-table text-mode-abbrev-table = LaTeX-preview-setup define-abbrev-table nil fboundp abbrev-table-put = :parents add-to-list auto-mode-alist ("\\.drv\\'" . latex-mode) = ("\\.hva\\'" . latex-mode) declare-function "preview"] 4) TeX-latex-mode() apply(TeX-latex-mode nil) latex-mode() TeX-tex-mode() apply(TeX-tex-mode nil) tex-mode() set-auto-mode-0(tex-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/Src/test.tex" nil nil = "~/Src/test.tex" (16477140 16777220)) find-file-noselect("~/Src/test.tex" nil nil t) find-file("~/Src/test.tex" t) funcall-interactively(find-file "~/Src/test.tex" t) call-interactively(find-file nil nil) command-execute(find-file) Tests with Emacs 25.1-1 show that auctex-11.88 works but neither = auctex-11.89 nor the recent git version, this is on a Mac running El = Capitan 10.11.6. With Em25.5-1 and Auc11.88 I have a working configuration that I am = satisfied with. I really appreciate what Emacs and AucTeX helps me do in my writing, = thanks for all your excellent work and efforts! This is reported to help you in the development process. Kind regards, Lars Eriksson > 7 nov. 2016 kl. 15:47 skrev Mos=C3=A8 Giordano : >=20 > 2016-11-07 15:40 GMT+01:00 Lars Eriksson : >> Hi Mos=C3=A8, >>=20 >> Thanks for being engaged in this. >>=20 >> Are you working on a Mac and did you try to start it without the load = path added? >>=20 >> I have a configuration that works (Au 11.88 and Em 24.5) so I will = need to uninstall and reinstall and do the testing, anyway I will test = tonight for the benefit of the community... >=20 > No, I don't use Mac OS, but I'd surprised to discover this is an > operating-system-related issue, the setup is supposed to be the same > on all *nix systems. >=20 > Please, keep the 24866@debbugs.gnu.org address in the CC list when > replying to this thread (simply hit the "Reply all" button), so that > everybody can follow it. >=20 > Bye, > Mos=C3=A8 From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: =?UTF-8?Q?Mos=C3=A8?= Giordano Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 07 Nov 2016 23:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Lars Eriksson Cc: 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.147856131913730 (code B ref 24866); Mon, 07 Nov 2016 23:29:02 +0000 Received: (at 24866) by debbugs.gnu.org; 7 Nov 2016 23:28:39 +0000 Received: from localhost ([127.0.0.1]:48828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3tLC-0003ZN-0b for submit@debbugs.gnu.org; Mon, 07 Nov 2016 18:28:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3tLB-0003Z9-5o for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 18:28:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3tL2-0004Pm-Q0 for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 18:28:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_50, RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3tL2-0004Pb-MV for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 18:28:28 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:36955) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c3tL2-0006F9-7Q for 24866@debbugs.gnu.org; Mon, 07 Nov 2016 18:28:28 -0500 Received: by mail-wm0-f52.google.com with SMTP id t79so207331197wmt.0 for <24866@debbugs.gnu.org>; Mon, 07 Nov 2016 15:28:28 -0800 (PST) X-Gm-Message-State: ABUngvd0O/TYnj3L0icoYAZNasuBlm02JUC4fKWXkAS3OPt6OiNMK5/08T5xjD/7qDdIi8odfuJYsTmQGbvUxg== X-Received: by 10.194.2.198 with SMTP id 6mr9097970wjw.51.1478561307103; Mon, 07 Nov 2016 15:28:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.26.4 with HTTP; Mon, 7 Nov 2016 15:27:46 -0800 (PST) In-Reply-To: <2B040C3E-50A7-4386-AB41-D96CC727CC6C@isy.liu.se> References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> <2B040C3E-50A7-4386-AB41-D96CC727CC6C@isy.liu.se> From: =?UTF-8?Q?Mos=C3=A8?= Giordano Date: Tue, 8 Nov 2016 00:27:46 +0100 X-Gmail-Original-Message-ID: Message-ID: 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: -7.4 (-------) 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: -7.4 (-------) Hi Lars, 2016-11-08 0:02 GMT+01:00 Lars Eriksson : > Hi Mos=C3=A8, > > I have now tested AucTeX (from git) on Emacs 25.1-1 on Mac and I am sorry= to say that adding load paths did not help in my case. Same error, indepen= dent of load path. I have tried both without and with the addition of one a= nd both of the following load paths before loading auctex.el > (add-to-list 'load-path "/Applications/Emacs.app/Contents/Resources/site-= lisp") > (add-to-list 'load-path "/Applications/Emacs.app/Contents/Resources/site-= lisp/auctex") > (load "auctex.el" nil t t) > > From the debugger output below I have found that the error is encountered= when it evaluates TeX-latex-mode() in the file latex.el. That's no surprise, since it's the only place where the function is called ;-) The point is that the function should be called only if it's available, but when it's called it turns out that it's not actually there. If you're familiar with git, can you please run git bisect in order to look for the offending revision? You can use "release_11_88" as good revision, and "release_11_89" as the bad one. Thanks, Mos=C3=A8 From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: Lars Eriksson Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 19 Nov 2016 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: =?UTF-8?Q?Mos=C3=A8?= Giordano Cc: 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.147958544115159 (code B ref 24866); Sat, 19 Nov 2016 19:58:02 +0000 Received: (at 24866) by debbugs.gnu.org; 19 Nov 2016 19:57:21 +0000 Received: from localhost ([127.0.0.1]:35335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8BlI-0003wQ-Ry for submit@debbugs.gnu.org; Sat, 19 Nov 2016 14:57:21 -0500 Received: from muon.isy.liu.se ([130.236.48.25]:50460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8BlH-0003wI-4l for 24866@debbugs.gnu.org; Sat, 19 Nov 2016 14:57:20 -0500 Received: from [192.168.0.23] (h83-209-96-160.cust.se.alltele.net [83.209.96.160]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.isy.liu.se (Postfix) with ESMTPSA id 9E7901EB; Sat, 19 Nov 2016 20:57:16 +0100 (MET) Content-Type: multipart/alternative; boundary="Apple-Mail=_E4E16D53-DA7D-4CF5-9ECB-C76BA55A8681" Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Lars Eriksson In-Reply-To: Date: Sat, 19 Nov 2016 20:57:14 +0100 Message-Id: <6A96DF4E-A282-4940-8475-2EAD2E007BD6@isy.liu.se> References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> <2B040C3E-50A7-4386-AB41-D96CC727CC6C@isy.liu.se> X-Mailer: Apple Mail (2.3124) X-Spam-Score: -5.2 (-----) 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.2 (-----) --Apple-Mail=_E4E16D53-DA7D-4CF5-9ECB-C76BA55A8681 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Mos=C3=A8, Thank you for caring about this, and pointing me to git bisect. Sorry = for taking so long time to respond but I had to make a business trip to = China and did not have access to this computer for testing. I am now = back and I have now run a git bisect (for the first time in my life) and = received the following, results. I have not analyzed what the difference is between the versions but it = its clear that it touches the preview=E2=80=A6 I do not know why it = causes the error on Mac... Best, Lars=20 ~/Src/auctex $ git bisect good 3fdeb4b8de31702d4c58b063cd9536284bb27ff7 is the first bad commit commit 3fdeb4b8de31702d4c58b063cd9536284bb27ff7 Author: Tassilo Horn Date: Fri Aug 7 17:54:58 2015 +0200 Setup preview differently; fixes bug#21188 =20 * latex.el (TeX-latex-mode): Call `LaTeX-preview-setup' unconditionally instead of calling it from `LaTeX-mode-hook' which breaks things if that hook is customized (bug#21188). =20 * preview.el.in: Don't add `LaTeX-preview-setup' to `LaTeX-mode-hook'. :100644 100644 8ff70975fc8294c4aaa10ea85c646309b1bb1427 = 8e92d51a5e68dcf256012010adc267126e43fdc8 M ChangeLog :100644 100644 0fb1641f98fb72e80dad950d2ab18fbfa54b6cc2 = fee3f8b7b43a751f4dc9fa17796d67e236f5620b M latex.el :100644 100644 9dded29a41f252e299171d8a9a35878728ab44ae = b26cf0a50655b1b32364be19d7777243d07c38ed M preview.el.in ~/Src/auctex $ git bisect log git bisect start # good: [4f02339fd36004e9e8c53e475a9cfe0e012b7780] Release_11.88 git bisect good 4f02339fd36004e9e8c53e475a9cfe0e012b7780 # bad: [df7dbbd3a029f02042b4fa01725c4a1f4502ff56] Release_11.89 git bisect bad df7dbbd3a029f02042b4fa01725c4a1f4502ff56 # good: [11d759de56d27efab320ae3738003a9fe2e45701] More font-lock fix = for verbatim environment args. git bisect good 11d759de56d27efab320ae3738003a9fe2e45701 # bad: [f4c5af9a2bfb64fc62a6319c903f7a96dc9052a8] Fix loading of = polyglossia language style files. git bisect bad f4c5af9a2bfb64fc62a6319c903f7a96dc9052a8 # bad: [2648a5807bf6567b86ecd9342a39d439c7288b38] New function to read = labels. git bisect bad 2648a5807bf6567b86ecd9342a39d439c7288b38 # good: [609470047cfbfffa91e81cd8a3c38f57b9d80ff9] Restore deleted = preview README. git bisect good 609470047cfbfffa91e81cd8a3c38f57b9d80ff9 # good: [166e14bf5496e2c8a85bcefb1786c7ae9e474a14] Fix a typo in the = name of provided env's. git bisect good 166e14bf5496e2c8a85bcefb1786c7ae9e474a14 # bad: [be9f14a1726b74848186b921ed6dc4f89f7cd4ac] Add the missing = starred version of \AddEnumerateCounter. git bisect bad be9f14a1726b74848186b921ed6dc4f89f7cd4ac # bad: [3fdeb4b8de31702d4c58b063cd9536284bb27ff7] Setup preview = differently; fixes bug#21188 git bisect bad 3fdeb4b8de31702d4c58b063cd9536284bb27ff7 # good: [e351a3a6ad8bcb15c959d77227849f50cd5d8de9] Add missing commands = ` ameref*' and `\Nameref'. git bisect good e351a3a6ad8bcb15c959d77227849f50cd5d8de9 # first bad commit: [3fdeb4b8de31702d4c58b063cd9536284bb27ff7] Setup = preview differently; fixes bug#21188 > 8 nov. 2016 kl. 00:27 skrev Mos=C3=A8 Giordano : >=20 > Hi Lars, >=20 > 2016-11-08 0:02 GMT+01:00 Lars Eriksson : >> Hi Mos=C3=A8, >>=20 >> I have now tested AucTeX (from git) on Emacs 25.1-1 on Mac and I am = sorry to say that adding load paths did not help in my case. Same error, = independent of load path. I have tried both without and with the = addition of one and both of the following load paths before loading = auctex.el >> (add-to-list 'load-path = "/Applications/Emacs.app/Contents/Resources/site-lisp") >> (add-to-list 'load-path = "/Applications/Emacs.app/Contents/Resources/site-lisp/auctex") >> (load "auctex.el" nil t t) >>=20 >> =46rom the debugger output below I have found that the error is = encountered when it evaluates TeX-latex-mode() in the file latex.el. >=20 > That's no surprise, since it's the only place where the function is > called ;-) The point is that the function should be called only if > it's available, but when it's called it turns out that it's not > actually there. >=20 > If you're familiar with git, can you please run git bisect in order to > look for the offending revision? You can use "release_11_88" as good > revision, and "release_11_89" as the bad one. >=20 > Thanks, > Mos=C3=A8 --Apple-Mail=_E4E16D53-DA7D-4CF5-9ECB-C76BA55A8681 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Dear Mos=C3=A8,

Thank you for caring about this, and = pointing me to git bisect. Sorry for taking so long time to respond but = I had to make a business trip to China and did not have access to this = computer for testing. I am now back and I have now run a git bisect (for = the first time in my life) and received the following, = results.
I have not analyzed what the difference is = between the versions but it its clear that it touches the preview=E2=80=A6= I do not know why it causes the error on Mac...

Best,
Lars 


~/Src/auctex $ git bisect good
3fdeb4b8de31702d4c58b063cd9536284bb27ff7 = is the first bad commit
commit = 3fdeb4b8de31702d4c58b063cd9536284bb27ff7
Author: Tassilo Horn <tsdh@gnu.org>
Date:   Fri Aug 7 17:54:58 2015 +0200

    Setup preview differently; fixes = bug#21188

    

    * latex.el (TeX-latex-mode): Call = `LaTeX-preview-setup'
  =   unconditionally instead of calling it from `LaTeX-mode-hook' = which
  =   breaks things if that hook is customized = (bug#21188).

    

    * preview.el.in: Don't add = `LaTeX-preview-setup' to
    `LaTeX-mode-hook'.

:100644 100644 8ff70975fc8294c4aaa10ea85c646309b1bb1427 = 8e92d51a5e68dcf256012010adc267126e43fdc8 M ChangeLog
:100644 100644 = 0fb1641f98fb72e80dad950d2ab18fbfa54b6cc2 = fee3f8b7b43a751f4dc9fa17796d67e236f5620b M latex.el
:100644 100644 = 9dded29a41f252e299171d8a9a35878728ab44ae = b26cf0a50655b1b32364be19d7777243d07c38ed M preview.el.in

~/Src/auctex $ git bisect log
git bisect start
# good: [4f02339fd36004e9e8c53e475a9cfe0e012b7780] = Release_11.88
git = bisect good 4f02339fd36004e9e8c53e475a9cfe0e012b7780
# bad: = [df7dbbd3a029f02042b4fa01725c4a1f4502ff56] = Release_11.89
git = bisect bad df7dbbd3a029f02042b4fa01725c4a1f4502ff56
# good: = [11d759de56d27efab320ae3738003a9fe2e45701] More font-lock fix for = verbatim environment args.
git bisect good = 11d759de56d27efab320ae3738003a9fe2e45701
# bad: [f4c5af9a2bfb64fc62a6319c903f7a96dc9052a8] Fix loading = of polyglossia language style files.
git bisect bad = f4c5af9a2bfb64fc62a6319c903f7a96dc9052a8
# bad: [2648a5807bf6567b86ecd9342a39d439c7288b38] New = function to read labels.
git bisect bad = 2648a5807bf6567b86ecd9342a39d439c7288b38
# good: [609470047cfbfffa91e81cd8a3c38f57b9d80ff9] Restore = deleted preview README.
git bisect good = 609470047cfbfffa91e81cd8a3c38f57b9d80ff9
# good: [166e14bf5496e2c8a85bcefb1786c7ae9e474a14] Fix a typo = in the name of provided env's.
git bisect good = 166e14bf5496e2c8a85bcefb1786c7ae9e474a14
# bad: [be9f14a1726b74848186b921ed6dc4f89f7cd4ac] Add the = missing starred version of \AddEnumerateCounter.
git bisect bad = be9f14a1726b74848186b921ed6dc4f89f7cd4ac
# bad: [3fdeb4b8de31702d4c58b063cd9536284bb27ff7] Setup = preview differently; fixes bug#21188
git bisect bad = 3fdeb4b8de31702d4c58b063cd9536284bb27ff7
# good: [e351a3a6ad8bcb15c959d77227849f50cd5d8de9] Add = missing commands `
ameref*' = and `\Nameref'.
git = bisect good e351a3a6ad8bcb15c959d77227849f50cd5d8de9
# first bad commit: = [3fdeb4b8de31702d4c58b063cd9536284bb27ff7] Setup preview differently; = fixes bug#21188


8 nov. 2016 kl. 00:27 skrev = Mos=C3=A8 Giordano <mose@gnu.org>:

Hi = Lars,

2016-11-08 0:02 GMT+01:00 Lars = Eriksson <larer@isy.liu.se>:
Hi Mos=C3=A8,

I = have now tested AucTeX (from git) on Emacs 25.1-1 on Mac and I am sorry = to say that adding load paths did not help in my case. Same error, = independent of load path. I have tried both without and with the = addition of one and both of the following load paths before loading = auctex.el
(add-to-list 'load-path = "/Applications/Emacs.app/Contents/Resources/site-lisp")
(add-to-list 'load-path = "/Applications/Emacs.app/Contents/Resources/site-lisp/auctex")
(load "auctex.el" nil t t)

=46rom = the debugger output below I have found that the error is encountered = when it evaluates TeX-latex-mode() in the file latex.el.

That's no surprise, since it's = the only place where the function is
called ;-)  The = point is that the function should be called only if
it's = available, but when it's called it turns out that it's not
actually there.

If you're = familiar with git, can you please run git bisect in order to
look for the offending revision?  You can use = "release_11_88" as good
revision, and "release_11_89" as = the bad one.

Thanks,
Mos=C3=A8<= br class=3D"">

= --Apple-Mail=_E4E16D53-DA7D-4CF5-9ECB-C76BA55A8681-- From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: =?UTF-8?Q?Mos=C3=A8?= Giordano Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 19 Nov 2016 21:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Lars Eriksson , Tassilo Horn Cc: 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.147958992723120 (code B ref 24866); Sat, 19 Nov 2016 21:13:01 +0000 Received: (at 24866) by debbugs.gnu.org; 19 Nov 2016 21:12:07 +0000 Received: from localhost ([127.0.0.1]:35353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8Cvf-00060q-J0 for submit@debbugs.gnu.org; Sat, 19 Nov 2016 16:12:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8Cve-00060F-7n for 24866@debbugs.gnu.org; Sat, 19 Nov 2016 16:12:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8CvV-0003q6-0M for 24866@debbugs.gnu.org; Sat, 19 Nov 2016 16:12:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_50, RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8CvU-0003px-Si for 24866@debbugs.gnu.org; Sat, 19 Nov 2016 16:11:56 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:34028) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c8CvU-0006OH-EY for 24866@debbugs.gnu.org; Sat, 19 Nov 2016 16:11:56 -0500 Received: by mail-wm0-f46.google.com with SMTP id u144so12466613wmu.1 for <24866@debbugs.gnu.org>; Sat, 19 Nov 2016 13:11:56 -0800 (PST) X-Gm-Message-State: AKaTC01bhKbb4OtNogYI7kyWdiVrLRgGHnJyZMue/kVyzUxQFHJS2Wt3MXFaJxJMDaUZQWxZYK0x0VhFz+3C5A== X-Received: by 10.28.234.85 with SMTP id i82mr4984076wmh.6.1479589915478; Sat, 19 Nov 2016 13:11:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.26.4 with HTTP; Sat, 19 Nov 2016 13:11:15 -0800 (PST) In-Reply-To: <6A96DF4E-A282-4940-8475-2EAD2E007BD6@isy.liu.se> References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> <2B040C3E-50A7-4386-AB41-D96CC727CC6C@isy.liu.se> <6A96DF4E-A282-4940-8475-2EAD2E007BD6@isy.liu.se> From: =?UTF-8?Q?Mos=C3=A8?= Giordano Date: Sat, 19 Nov 2016 22:11:15 +0100 X-Gmail-Original-Message-ID: Message-ID: 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: -7.4 (-------) 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: -7.4 (-------) Hi Lars, 2016-11-19 20:57 GMT+01:00 Lars Eriksson : > Dear Mos=C3=A8, > > Thank you for caring about this, and pointing me to git bisect. Sorry for > taking so long time to respond but I had to make a business trip to China > and did not have access to this computer for testing. Don't worry, thanks for the help! ;-) > I am now back and I > have now run a git bisect (for the first time in my life) and received th= e > following, results. > I have not analyzed what the difference is between the versions but it it= s > clear that it touches the preview=E2=80=A6 I do not know why it causes th= e error on > Mac... > > Best, > Lars > > > ~/Src/auctex $ git bisect good > 3fdeb4b8de31702d4c58b063cd9536284bb27ff7 is the first bad commit > commit 3fdeb4b8de31702d4c58b063cd9536284bb27ff7 > Author: Tassilo Horn > Date: Fri Aug 7 17:54:58 2015 +0200 > > Setup preview differently; fixes bug#21188 > > > > * latex.el (TeX-latex-mode): Call `LaTeX-preview-setup' > unconditionally instead of calling it from `LaTeX-mode-hook' which > breaks things if that hook is customized (bug#21188). > > > > * preview.el.in: Don't add `LaTeX-preview-setup' to > `LaTeX-mode-hook'. This was easy to guess, since it's the commit which introduced the function call, but a confirmation is useful anyway. @Tassilo, could you please have a look at this? I'm a bit confused by this problem, I can't see what's the culprit and why should be operating system-dependent :-/ Bye, Mos=C3=A8 From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 20 Nov 2016 15:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: =?UTF-8?Q?Mos=C3=A8?= Giordano Cc: Lars Eriksson , 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.147965517920645 (code B ref 24866); Sun, 20 Nov 2016 15:20:01 +0000 Received: (at 24866) by debbugs.gnu.org; 20 Nov 2016 15:19:39 +0000 Received: from localhost ([127.0.0.1]:36255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8Tu6-0005Mv-RK for submit@debbugs.gnu.org; Sun, 20 Nov 2016 10:19:39 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:46861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8Tu5-0005Mn-2c for 24866@debbugs.gnu.org; Sun, 20 Nov 2016 10:19:37 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 8CB072076F; Sun, 20 Nov 2016 10:19:36 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Sun, 20 Nov 2016 10:19:36 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=kRYvLtSucWqg0BG5Zmb7URlGFPc=; b=jzhZVwjaKwVGBH8b6ARs /H7ZSUcYFy12X7iahrzuqYWZUTFh683aGWHtiTgZAteCxio6kOesybDD2Gf4Fix6 in9xxUDNjnaFKqGus8YXAJTs9kRJRf6mqX7i7EXjzHbId0+DCBvjGuNLkVr60B3c zq7uWFzy7Rn4MLs1euqQjxk= X-ME-Sender: X-Sasl-enc: DRooNaev1aWni6Ct8wa7zvkGwtmMRuLFWKiQonMGbCew 1479655176 Received: from thinkpad-t440p (ip5f5bdb79.dynamic.kabel-deutschland.de [95.91.219.121]) by mail.messagingengine.com (Postfix) with ESMTPA id 8889024046; Sun, 20 Nov 2016 10:19:35 -0500 (EST) From: Tassilo Horn References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> <2B040C3E-50A7-4386-AB41-D96CC727CC6C@isy.liu.se> <6A96DF4E-A282-4940-8475-2EAD2E007BD6@isy.liu.se> Date: Sun, 20 Nov 2016 16:19:33 +0100 In-Reply-To: ("=?UTF-8?Q?Mos=C3=A8?= Giordano"'s message of "Sat, 19 Nov 2016 22:11:15 +0100") Message-ID: <87lgwegovu.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) 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: 0.3 (/) Mos=C3=A8 Giordano writes: Hi Lars & Mos=C3=A8, >> have now run a git bisect (for the first time in my life) I guess it won't be the last time. ;-) >> and received the following, results. I have not analyzed what the >> difference is between the versions but it its clear that it touches >> the preview=E2=80=A6 I do not know why it causes the error on Mac... >> >> ~/Src/auctex $ git bisect good >> 3fdeb4b8de31702d4c58b063cd9536284bb27ff7 is the first bad commit >> commit 3fdeb4b8de31702d4c58b063cd9536284bb27ff7 >> Author: Tassilo Horn >> Date: Fri Aug 7 17:54:58 2015 +0200 >> >> Setup preview differently; fixes bug#21188 >> >> * latex.el (TeX-latex-mode): Call `LaTeX-preview-setup' >> unconditionally instead of calling it from `LaTeX-mode-hook' which >> breaks things if that hook is customized (bug#21188). >> >> * preview.el.in: Don't add `LaTeX-preview-setup' to >> `LaTeX-mode-hook'. > > This was easy to guess, since it's the commit which introduced the > function call, but a confirmation is useful anyway. > > @Tassilo, could you please have a look at this? I'm a bit confused by > this problem, I can't see what's the culprit and why should be > operating system-dependent :-/ Me neither, and I guess we would have been made aware of such a breakage if it would happen for all MacOS X users. But I think there's something different gone wonky here. Lars' backtrace reads --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (void-variable LaTeX-preview-setup) byte-code("\303\300\304\"\210\305\306!\203\306\307 C#\210\310\311\312\"\2= 10\310\311\313\"\210\305\314!\203'\314\n\315\"\210\304\207" [latex-mode-abb= rev-table text-mode-abbrev-table LaTeX-preview-setup define-abbrev-table ni= l fboundp abbrev-table-put :parents add-to-list auto-mode-alist ("\\.drv\\'= " . latex-mode) ("\\.hva\\'" . latex-mode) declare-function "preview"] 4) TeX-latex-mode() apply(TeX-latex-mode nil) latex-mode() ... --8<---------------cut here---------------end--------------->8--- Note that it says `void-variable' and not `void-function' as it would say when you try to eval (this-function-does-not-exist). Hm, Lars, can you uninstall AUCTeX completely and try the ELPA version? I.e., just install it using M-x package-install RET auctex RET Bye, Tassilo From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: Lars Eriksson Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sun, 20 Nov 2016 18:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: =?UTF-8?Q?Mos=C3=A8?= Giordano , 24866@debbugs.gnu.org Received: via spool by 24866-submit@debbugs.gnu.org id=B24866.14796649035609 (code B ref 24866); Sun, 20 Nov 2016 18:02:01 +0000 Received: (at 24866) by debbugs.gnu.org; 20 Nov 2016 18:01:43 +0000 Received: from localhost ([127.0.0.1]:36349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8WQw-0001SP-Ns for submit@debbugs.gnu.org; Sun, 20 Nov 2016 13:01:42 -0500 Received: from muon.isy.liu.se ([130.236.48.25]:51121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8WQu-0001SE-KJ for 24866@debbugs.gnu.org; Sun, 20 Nov 2016 13:01:41 -0500 Received: from [192.168.0.23] (h83-209-96-160.cust.se.alltele.net [83.209.96.160]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.isy.liu.se (Postfix) with ESMTPSA id 45E61D27; Sun, 20 Nov 2016 19:01:39 +0100 (MET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Lars Eriksson In-Reply-To: <87lgwegovu.fsf@gnu.org> Date: Sun, 20 Nov 2016 19:01:37 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> <2B040C3E-50A7-4386-AB41-D96CC727CC6C@isy.liu.se> <6A96DF4E-A282-4940-8475-2EAD2E007BD6@isy.liu.se> <87lgwegovu.fsf@gnu.org> X-Mailer: Apple Mail (2.3124) X-Spam-Score: -5.2 (-----) 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.2 (-----) Hi, I have now uninstalled it and installed the ELPA version and it worked = out of the box=E2=80=A6 I have some colleagues that also had troubles installing auctex on a Mac = this summer (I was not involved in the installation but the installation = script that pulls it from git and places in site-lisp comes from the = same source) so I cannot say that he had the same problem. This is just for my curiosity and education. The answer is probably out = there but I am not sufficiently knowledgeable about ELPA to find the = answer=E2=80=A6 No need to answer if you don=E2=80=99t have time... How does emacs generate the search path to ELPA? Is the search path = ~/emacs.d/elpa/ hardcoded into Emacs? I have not added anything to my = .emacs but it finds auctex without my intervention=E2=80=A6 My load path now has the following entries: = "/Users/larer/.emacs.d/elpa/auctex-11.89.6/" = "/Users/larer/.emacs.d/elpa/auctex-11.89.6=E2=80=9D as a followup should = there be two, one with trailing slash and one without? Thanks for your efforts! They are really appreciated Best, Lars > On 20 Nov 2016, at 16:19, Tassilo Horn wrote: >=20 > Mos=C3=A8 Giordano writes: >=20 > Hi Lars & Mos=C3=A8, >=20 >>> have now run a git bisect (for the first time in my life) >=20 > I guess it won't be the last time. ;-) >=20 >>> and received the following, results. I have not analyzed what the >>> difference is between the versions but it its clear that it touches >>> the preview=E2=80=A6 I do not know why it causes the error on Mac... >>>=20 >>> ~/Src/auctex $ git bisect good >>> 3fdeb4b8de31702d4c58b063cd9536284bb27ff7 is the first bad commit >>> commit 3fdeb4b8de31702d4c58b063cd9536284bb27ff7 >>> Author: Tassilo Horn >>> Date: Fri Aug 7 17:54:58 2015 +0200 >>>=20 >>> Setup preview differently; fixes bug#21188 >>>=20 >>> * latex.el (TeX-latex-mode): Call `LaTeX-preview-setup' >>> unconditionally instead of calling it from `LaTeX-mode-hook' = which >>> breaks things if that hook is customized (bug#21188). >>>=20 >>> * preview.el.in: Don't add `LaTeX-preview-setup' to >>> `LaTeX-mode-hook'. >>=20 >> This was easy to guess, since it's the commit which introduced the >> function call, but a confirmation is useful anyway. >>=20 >> @Tassilo, could you please have a look at this? I'm a bit confused = by >> this problem, I can't see what's the culprit and why should be >> operating system-dependent :-/ >=20 > Me neither, and I guess we would have been made aware of such a = breakage > if it would happen for all MacOS X users. But I think there's = something > different gone wonky here. Lars' backtrace reads >=20 > --8<---------------cut here---------------start------------->8--- > Debugger entered--Lisp error: (void-variable LaTeX-preview-setup) > byte-code("\303\300\304\"\210\305\306!\203\306\307 = C#\210\310\311\312\"\210\310\311\313\"\210\305\314!\203'\314\n\315\"\210\3= 04\207" [latex-mode-abbrev-table text-mode-abbrev-table = LaTeX-preview-setup define-abbrev-table nil fboundp abbrev-table-put = :parents add-to-list auto-mode-alist ("\\.drv\\'" . latex-mode) = ("\\.hva\\'" . latex-mode) declare-function "preview"] 4) > TeX-latex-mode() > apply(TeX-latex-mode nil) > latex-mode() > ... > --8<---------------cut here---------------end--------------->8--- >=20 > Note that it says `void-variable' and not `void-function' as it would > say when you try to eval (this-function-does-not-exist). >=20 > Hm, Lars, can you uninstall AUCTeX completely and try the ELPA = version? > I.e., just install it using >=20 > M-x package-install RET auctex RET >=20 > Bye, > Tassilo From unknown Mon Aug 18 20:15:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Lars Eriksson Subject: bug#24866: closed (Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac) Message-ID: References: <8760nhxdfv.fsf@gnu.org> X-Gnu-PR-Message: they-closed 24866 X-Gnu-PR-Package: auctex Reply-To: 24866@debbugs.gnu.org Date: Mon, 21 Nov 2016 11:48:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1479728882-25118-1" This is a multi-part message in MIME format... ------------=_1479728882-25118-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #24866: AucTeX not working on Emacs 25.1.1 for Mac which was filed against the auctex package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 24866@debbugs.gnu.org. --=20 24866: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D24866 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1479728882-25118-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 24866-done) by debbugs.gnu.org; 21 Nov 2016 11:47:05 +0000 Received: from localhost ([127.0.0.1]:36715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8n3x-0006Vv-LG for submit@debbugs.gnu.org; Mon, 21 Nov 2016 06:47:05 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:41993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8n3v-0006Vn-Ai for 24866-done@debbugs.gnu.org; Mon, 21 Nov 2016 06:47:03 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A879620770; Mon, 21 Nov 2016 06:47:02 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Mon, 21 Nov 2016 06:47:02 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=10to1SDuw8WPA9wLXgzxmybfeQY=; b=ukx9136q5Inu5BW3CDRb w4ruueaG10Nflx1lfIUTRlBefO+6s/8jyKt4BuunTxu7/R9Vj8Wc1jmE+x8jkqcn x1uvM9LfyVIz7REaOHlx16RTEOSJIyg1dXT7H1/uCXlsP2Xhl3Iwvv1N2ndJCK9U 3T4WDNdjMAts571z9LgQosk= X-ME-Sender: X-Sasl-enc: LlNdOENiiueLGb/T6Q8VDOfi55plUTRRCeKmmFaeqFU6 1479728822 Received: from jiffyarch (j289989.servers.jiffybox.net [134.119.24.195]) by mail.messagingengine.com (Postfix) with ESMTPA id E993F7E9F4; Mon, 21 Nov 2016 06:47:01 -0500 (EST) From: Tassilo Horn To: Lars Eriksson Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> <2B040C3E-50A7-4386-AB41-D96CC727CC6C@isy.liu.se> <6A96DF4E-A282-4940-8475-2EAD2E007BD6@isy.liu.se> <87lgwegovu.fsf@gnu.org> Date: Mon, 21 Nov 2016 12:47:00 +0100 In-Reply-To: (Lars Eriksson's message of "Sun, 20 Nov 2016 19:01:37 +0100") Message-ID: <8760nhxdfv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 24866-done Cc: =?utf-8?Q?Mos=C3=A8?= Giordano , 24866-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: 0.3 (/) Lars Eriksson writes: Hi Lars, > I have now uninstalled it and installed the ELPA version and it worked > out of the box=E2=80=A6 Good, then I close this bug. Although it is really strange that you could pin this one single commit which seems to have broken things for you. The code in question is exactly the same in the ELPA version. > How does emacs generate the search path to ELPA? Is the search path > ~/emacs.d/elpa/ hardcoded into Emacs? I have not added anything to my > .emacs but it finds auctex without my intervention=E2=80=A6 package.el, the Emacs package manager, generates a -autoloads.el file in case it's not already contained in a package (which it is not in the case of auctex). That file contains an appropriate load-path addition. > My load path now has the following entries: > "/Users/larer/.emacs.d/elpa/auctex-11.89.6/" > "/Users/larer/.emacs.d/elpa/auctex-11.89.6=E2=80=9D as a followup should = there be two, > one with trailing slash and one without? Oh, right. In the case of auctex, the generated autoloads file adds the latter entry and in tex-site.el there's also code that adds the former entry. That shouldn't cause any harm but I should probably change the code in tex-site.el so that no duplicate entry will be added. Bye, Tassilo ------------=_1479728882-25118-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Nov 2016 15:26:07 +0000 Received: from localhost ([127.0.0.1]:41773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2Ju3-0005PT-7K for submit@debbugs.gnu.org; Thu, 03 Nov 2016 11:26:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2Gb7-0000ZV-VG for submit@debbugs.gnu.org; Thu, 03 Nov 2016 07:54:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Gb1-00030L-LJ for submit@debbugs.gnu.org; Thu, 03 Nov 2016 07:54:16 -0400 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,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2Gb1-00030H-IW for submit@debbugs.gnu.org; Thu, 03 Nov 2016 07:54:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Gb0-0005Hi-FZ for bug-auctex@gnu.org; Thu, 03 Nov 2016 07:54:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Gaw-0002ye-Jb for bug-auctex@gnu.org; Thu, 03 Nov 2016 07:54:14 -0400 Received: from muon.isy.liu.se ([130.236.48.25]:51195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Gaw-0002x2-8m for bug-auctex@gnu.org; Thu, 03 Nov 2016 07:54:10 -0400 Received: from c-10-253-38-144.eduroam.liu.se (unknown [10.253.38.144]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.isy.liu.se (Postfix) with ESMTPSA id 0E5E1278 for ; Thu, 3 Nov 2016 12:54:05 +0100 (MET) From: Lars Eriksson Content-Type: multipart/alternative; boundary="Apple-Mail=_4C4A6ACC-F6E7-41B0-A7E5-B2C5FCB58CD0" Subject: AucTeX not working on Emacs 25.1.1 for Mac Message-Id: Date: Thu, 3 Nov 2016 12:54:03 +0100 To: bug-auctex@gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 03 Nov 2016 11:26:06 -0400 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 (-----) --Apple-Mail=_4C4A6ACC-F6E7-41B0-A7E5-B2C5FCB58CD0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, Might be Emacs and not AucTeX that cause the problems but it was AucTeX = that triggered my problems, and I wanted to make you aware... I have a clean installation of Emacs for Mac 25.1.1 and pulled a fresh = auctex from github (see script below).=20 In my .emacs I have reduced everything to to (load "auctex.el" nil t t) When I try to open a LaTeX-file I get the message:=20 File mode specification error: (void-variable LaTeX-preview-setup) Any clues or instructions? As a follow-up: I have downgraded to Emacs 24.5 and AucTeX pulled from = git works fine there. Best, Lars #!/bin/sh git clone git://git.savannah.gnu.org/auctex.git export EMACSMAIN=3D/Applications/Emacs.app/Contents/Resources export SITELISPDIR=3D$EMACSMAIN/site-lisp export INFODIR=3D$EMACSMAIN/info cd auctex ./autogen.sh ./configure --with-emacs --with-lispdir=3D$SITELISPDIR \ --with-auto-dir=3D$SITELISPDIR/auctex/auto \ --infodir=3D$INFODIR --without-texmf-dir make sudo make install --Apple-Mail=_4C4A6ACC-F6E7-41B0-A7E5-B2C5FCB58CD0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi,

Might = be Emacs and not AucTeX that cause the problems but it was AucTeX that = triggered my problems, and I wanted to make you aware...

I have a clean installation of = Emacs for Mac 25.1.1 and pulled a fresh auctex from github (see script = below). 
In my .emacs I have reduced = everything to to (load "auctex.el" nil t t)
When I = try to open a LaTeX-file I get the  message: 

File mode specification = error: (void-variable LaTeX-preview-setup)

Any clues or = instructions?

As= a follow-up: I have downgraded to Emacs 24.5 and AucTeX pulled from git = works fine there.

Best,
Lars


#!/bin/sh


export = EMACSMAIN=3D/Applications/Emacs.app/Contents/Resources
export = SITELISPDIR=3D$EMACSMAIN/site-lisp
export INFODIR=3D$EMACSMAIN/info

cd auctex
./autogen.sh
./configure --with-emacs --with-lispdir=3D$SITELISPDIR = \
--with-auto-dir=3D$SITELISPDIR/auctex/auto \
--infodir=3D$INFODIR = --without-texmf-dir

make
sudo = make install

= --Apple-Mail=_4C4A6ACC-F6E7-41B0-A7E5-B2C5FCB58CD0-- ------------=_1479728882-25118-1-- From unknown Mon Aug 18 20:15:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac Resent-From: Lars Eriksson Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Mon, 21 Nov 2016 20:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24866 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: =?UTF-8?Q?Mos=C3=A8?= Giordano , 24866-done@debbugs.gnu.org Received: via spool by 24866-done@debbugs.gnu.org id=D24866.147976044121422 (code D ref 24866); Mon, 21 Nov 2016 20:34:02 +0000 Received: (at 24866-done) by debbugs.gnu.org; 21 Nov 2016 20:34:01 +0000 Received: from localhost ([127.0.0.1]:37446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8vHt-0005ZS-9P for submit@debbugs.gnu.org; Mon, 21 Nov 2016 15:34:01 -0500 Received: from muon.isy.liu.se ([130.236.48.25]:59544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8vHs-0005ZK-51 for 24866-done@debbugs.gnu.org; Mon, 21 Nov 2016 15:34:00 -0500 Received: from [192.168.0.23] (h83-209-96-160.cust.se.alltele.net [83.209.96.160]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.isy.liu.se (Postfix) with ESMTPSA id B7535269; Mon, 21 Nov 2016 21:33:58 +0100 (MET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Lars Eriksson In-Reply-To: <8760nhxdfv.fsf@gnu.org> Date: Mon, 21 Nov 2016 21:33:57 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <0F963F64-803D-48C1-9399-8277565BD013@isy.liu.se> <2B040C3E-50A7-4386-AB41-D96CC727CC6C@isy.liu.se> <6A96DF4E-A282-4940-8475-2EAD2E007BD6@isy.liu.se> <87lgwegovu.fsf@gnu.org> <8760nhxdfv.fsf@gnu.org> X-Mailer: Apple Mail (2.3124) X-Spam-Score: -5.3 (-----) 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.3 (-----) Hi Tassilo and Mos=C3=A8, Thanks for your help and input. It=E2=80=99s OK that the case is closed, but it feels unsatisfactorily = that there is something that triggers an unwanted behaviour in some = situations and that it could be pinpointed. Is there something that I could do to help you find the root cause? I am = sorry for not being a competent e-lisp hacker so I do not know where to = start and need pointers to how and where to start if it is = interesting=E2=80=A6 Best, Lars > On 21 Nov 2016, at 12:47, Tassilo Horn wrote: >=20 > Lars Eriksson writes: >=20 > Hi Lars, >=20 >> I have now uninstalled it and installed the ELPA version and it = worked >> out of the box=E2=80=A6 >=20 > Good, then I close this bug. Although it is really strange that you > could pin this one single commit which seems to have broken things for > you. The code in question is exactly the same in the ELPA version. >=20 >> How does emacs generate the search path to ELPA? Is the search path >> ~/emacs.d/elpa/ hardcoded into Emacs? I have not added anything to my >> .emacs but it finds auctex without my intervention=E2=80=A6 >=20 > package.el, the Emacs package manager, generates a > -autoloads.el file in case it's not already contained in a > package (which it is not in the case of auctex). That file contains = an > appropriate load-path addition. >=20 >> My load path now has the following entries: >> "/Users/larer/.emacs.d/elpa/auctex-11.89.6/" >> "/Users/larer/.emacs.d/elpa/auctex-11.89.6=E2=80=9D as a followup = should there be two, >> one with trailing slash and one without? >=20 > Oh, right. In the case of auctex, the generated autoloads file adds = the > latter entry and in tex-site.el there's also code that adds the former > entry. That shouldn't cause any harm but I should probably change the > code in tex-site.el so that no duplicate entry will be added. >=20 > Bye, > Tassilo