GNU bug report logs -
#24866
AucTeX not working on Emacs 25.1.1 for Mac
Previous Next
Reported by: Lars Eriksson <larer <at> isy.liu.se>
Date: Thu, 3 Nov 2016 15:27:02 UTC
Severity: normal
Done: Tassilo Horn <tsdh <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24866 in the body.
You can then email your comments to 24866 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#24866
; Package
auctex
.
(Thu, 03 Nov 2016 15:27:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lars Eriksson <larer <at> isy.liu.se>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Thu, 03 Nov 2016 15:27:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
git clone git://git.savannah.gnu.org/auctex.git
export EMACSMAIN=/Applications/Emacs.app/Contents/Resources
export SITELISPDIR=$EMACSMAIN/site-lisp
export INFODIR=$EMACSMAIN/info
cd auctex
./autogen.sh
./configure --with-emacs --with-lispdir=$SITELISPDIR \
--with-auto-dir=$SITELISPDIR/auctex/auto \
--infodir=$INFODIR --without-texmf-dir
make
sudo make install
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24866
; Package
auctex
.
(Thu, 03 Nov 2016 15:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 24866 <at> debbugs.gnu.org (full text, mbox):
Hi Lars,
2016-11-03 12:54 GMT+01:00 Lars Eriksson <larer <at> 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è
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24866
; Package
auctex
.
(Thu, 03 Nov 2016 22:56:01 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24866
; Package
auctex
.
(Sat, 05 Nov 2016 11:43:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 24866 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Mosé,
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… But when the dmg was unmounted AucTeX was not working.
So the latest AucTeX-build did not work on 24.5….
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è Giordano <mose <at> gnu.org>:
>
> Hi Lars,
>
> 2016-11-03 12:54 GMT+01:00 Lars Eriksson <larer <at> 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è
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24866
; Package
auctex
.
(Sun, 06 Nov 2016 23:27:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 24866 <at> debbugs.gnu.org (full text, mbox):
Hi Lars,
2016-11-05 12:42 GMT+01:00 Lars Eriksson <larer <at> isy.liu.se>:
> 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… But when the dmg was unmounted AucTeX was not working.
>
> So the latest AucTeX-build did not work on 24.5….
> 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è
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24866
; Package
auctex
.
(Mon, 07 Nov 2016 14:25:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 24866 <at> debbugs.gnu.org (full text, mbox):
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=/usr/local/share/emacs/site-lisp \
--with-auto-dir=/usr/local/share/emacs/site-lisp/auctex/auto \
--infodir=/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è
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24866
; Package
auctex
.
(Mon, 07 Nov 2016 14:48:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 24866 <at> debbugs.gnu.org (full text, mbox):
2016-11-07 15:40 GMT+01:00 Lars Eriksson <larer <at> isy.liu.se>:
> Hi Mosè,
>
> Thanks for being engaged in this.
>
> Are you working on a Mac and did you try to start it without the load path added?
>
> 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...
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 <at> 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è
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#24866
; Package
auctex
.
(Mon, 07 Nov 2016 23:03:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 24866 <at> debbugs.gnu.org (full text, mbox):
Hi Mosè,
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)
From 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 ”test.tex" and get the following backtrace:
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'