GNU bug report logs - #24866
AucTeX not working on Emacs 25.1.1 for Mac

Previous Next

Package: auctex;

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.

View this report as an mbox folder, status mbox, maintainer mbox


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):

From: Lars Eriksson <larer <at> isy.liu.se>
To: bug-auctex <at> gnu.org
Subject: AucTeX not working on Emacs 25.1.1 for Mac
Date: Thu, 3 Nov 2016 12:54:03 +0100
[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):

From: Mosè Giordano <mose <at> gnu.org>
To: Lars Eriksson <larer <at> isy.liu.se>
Cc: 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Thu, 3 Nov 2016 16:44:11 +0100
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):

From: emacs user <user.emacs <at> gmail.com>
To: bug-auctex <at> gnu.org, larer <at> isy.liu.se
Subject: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Fri, 4 Nov 2016 00:55:34 +0200
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):

From: Lars Eriksson <larer <at> isy.liu.se>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Sat, 5 Nov 2016 12:42:52 +0100
[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):

From: Mosè Giordano <mose <at> gnu.org>
To: Lars Eriksson <larer <at> isy.liu.se>
Cc: 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Mon, 7 Nov 2016 00:26:05 +0100
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):

From: Mosè Giordano <mose <at> gnu.org>
To: Lars Eriksson <larer <at> isy.liu.se>
Cc: 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Mon, 7 Nov 2016 15:23:32 +0100
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):

From: Mosè Giordano <mose <at> gnu.org>
To: Lars Eriksson <larer <at> isy.liu.se>, 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Mon, 7 Nov 2016 15:47:03 +0100
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):

From: Lars Eriksson <larer <at> isy.liu.se>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Tue, 8 Nov 2016 00:02:16 +0100
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'\314\n\315\"\210\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(#<buffer test.tex> "~/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è Giordano <mose <at> gnu.org>:
> 
> 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:29:02 GMT) Full text and rfc822 format available.

Message #29 received at 24866 <at> debbugs.gnu.org (full text, mbox):

From: Mosè Giordano <mose <at> gnu.org>
To: Lars Eriksson <larer <at> isy.liu.se>
Cc: 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Tue, 8 Nov 2016 00:27:46 +0100
Hi Lars,

2016-11-08 0:02 GMT+01:00 Lars Eriksson <larer <at> isy.liu.se>:
> 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.

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è




Information forwarded to bug-auctex <at> gnu.org:
bug#24866; Package auctex. (Sat, 19 Nov 2016 19:58:02 GMT) Full text and rfc822 format available.

Message #32 received at 24866 <at> debbugs.gnu.org (full text, mbox):

From: Lars Eriksson <larer <at> isy.liu.se>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Sat, 19 Nov 2016 20:57:14 +0100
[Message part 1 (text/plain, inline)]
Dear Mosè,

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… 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 <at> 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è Giordano <mose <at> gnu.org>:
> 
> Hi Lars,
> 
> 2016-11-08 0:02 GMT+01:00 Lars Eriksson <larer <at> isy.liu.se>:
>> 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.
> 
> 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è

[Message part 2 (text/html, inline)]

Information forwarded to bug-auctex <at> gnu.org:
bug#24866; Package auctex. (Sat, 19 Nov 2016 21:13:02 GMT) Full text and rfc822 format available.

Message #35 received at 24866 <at> debbugs.gnu.org (full text, mbox):

From: Mosè Giordano <mose <at> gnu.org>
To: Lars Eriksson <larer <at> isy.liu.se>, Tassilo Horn <tsdh <at> gnu.org>
Cc: 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Sat, 19 Nov 2016 22:11:15 +0100
Hi Lars,

2016-11-19 20:57 GMT+01:00 Lars Eriksson <larer <at> isy.liu.se>:
> Dear Mosè,
>
> 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 the
> following, results.
> I have not analyzed what the difference is between the versions but it its
> clear that it touches the preview… 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 <at> 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'.

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è




Information forwarded to bug-auctex <at> gnu.org:
bug#24866; Package auctex. (Sun, 20 Nov 2016 15:20:01 GMT) Full text and rfc822 format available.

Message #38 received at 24866 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: Mosè Giordano <mose <at> gnu.org>
Cc: Lars Eriksson <larer <at> isy.liu.se>, 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Sun, 20 Nov 2016 16:19:33 +0100
Mosè Giordano <mose <at> gnu.org> writes:

Hi Lars & Mosè,

>> 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… 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 <tsdh <at> 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'.
>
> 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\"\210\310\311\313\"\210\305\314!\203'\314\n\315\"\210\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()
  ...
--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




Information forwarded to bug-auctex <at> gnu.org:
bug#24866; Package auctex. (Sun, 20 Nov 2016 18:02:01 GMT) Full text and rfc822 format available.

Message #41 received at 24866 <at> debbugs.gnu.org (full text, mbox):

From: Lars Eriksson <larer <at> isy.liu.se>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: Mosè Giordano <mose <at> gnu.org>, 24866 <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Sun, 20 Nov 2016 19:01:37 +0100
Hi,

I have now uninstalled it and installed the ELPA version and it worked out of the box…

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… No need to answer if you don’t 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…

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” 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 <tsdh <at> gnu.org> wrote:
> 
> Mosè Giordano <mose <at> gnu.org> writes:
> 
> Hi Lars & Mosè,
> 
>>> 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… 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 <tsdh <at> 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'.
>> 
>> 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\"\210\310\311\313\"\210\305\314!\203'\314\n\315\"\210\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()
>  ...
> --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





Reply sent to Tassilo Horn <tsdh <at> gnu.org>:
You have taken responsibility. (Mon, 21 Nov 2016 11:48:02 GMT) Full text and rfc822 format available.

Notification sent to Lars Eriksson <larer <at> isy.liu.se>:
bug acknowledged by developer. (Mon, 21 Nov 2016 11:48:02 GMT) Full text and rfc822 format available.

Message #46 received at 24866-done <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: Lars Eriksson <larer <at> isy.liu.se>
Cc: Mosè Giordano <mose <at> gnu.org>, 24866-done <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Mon, 21 Nov 2016 12:47:00 +0100
Lars Eriksson <larer <at> isy.liu.se> writes:

Hi Lars,

> I have now uninstalled it and installed the ELPA version and it worked
> out of the box…

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…

package.el, the Emacs package manager, generates a
<package>-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” 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




Information forwarded to bug-auctex <at> gnu.org:
bug#24866; Package auctex. (Mon, 21 Nov 2016 20:34:02 GMT) Full text and rfc822 format available.

Message #49 received at 24866-done <at> debbugs.gnu.org (full text, mbox):

From: Lars Eriksson <larer <at> isy.liu.se>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: Mosè Giordano <mose <at> gnu.org>, 24866-done <at> debbugs.gnu.org
Subject: Re: bug#24866: AucTeX not working on Emacs 25.1.1 for Mac
Date: Mon, 21 Nov 2016 21:33:57 +0100
Hi Tassilo and Mosè,

Thanks for your help and input.

It’s 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…

Best,
Lars
> On 21 Nov 2016, at 12:47, Tassilo Horn <tsdh <at> gnu.org> wrote:
> 
> Lars Eriksson <larer <at> isy.liu.se> writes:
> 
> Hi Lars,
> 
>> I have now uninstalled it and installed the ELPA version and it worked
>> out of the box…
> 
> 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…
> 
> package.el, the Emacs package manager, generates a
> <package>-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” 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





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 20 Dec 2016 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 242 days ago.

Previous Next


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