GNU bug report logs - #38533
emacs-auctex breaks url package

Previous Next

Package: guix;

Reported by: Diego Nicola Barbato <dnbarbato <at> posteo.de>

Date: Sun, 8 Dec 2019 17:41:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

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 38533 in the body.
You can then email your comments to 38533 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-guix <at> gnu.org:
bug#38533; Package guix. (Sun, 08 Dec 2019 17:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Diego Nicola Barbato <dnbarbato <at> posteo.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 08 Dec 2019 17:41:02 GMT) Full text and rfc822 format available.

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

From: Diego Nicola Barbato <dnbarbato <at> posteo.de>
To: bug-guix <at> gnu.org
Subject: emacs-auctex breaks url package
Date: Sun, 08 Dec 2019 18:40:07 +0100
Hi Guix,

AUCTeX breaks Emacs' bult-in url package.  This bug appears to have been
introduced with commit 3ffdd00 and can be reproduced as follows:

1) Install ‘emacs’ and ‘emacs-auctex’.
2) Start Emacs and do M-: (require 'url), which will produce the
   following backtrace:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (void-function TeX-add-style-hook)
  (TeX-add-style-hook "url" #f(compiled-function () #<bytecode 0x48bbdd>) LaTeX-dialect)
  require(url)
  eval((require (quote url)) nil)
  eval-expression((require (quote url)) nil nil 127)
  funcall-interactively(eval-expression (require (quote url)) nil nil 127)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)
--8<---------------cut here---------------end--------------->8---

It looks like Emacs tries to load the file
$GUIX_PROFILE/share/emacs/site-lisp/style/url.elc, which is provided by
‘emacs-auctex’, instead of
$GUIX_PROFILE/share/emacs/26.3/lisp/url/url.elc, which is provided by
Emacs itself.

Regards,

Diego




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Mon, 09 Dec 2019 04:59:02 GMT) Full text and rfc822 format available.

Notification sent to Diego Nicola Barbato <dnbarbato <at> posteo.de>:
bug acknowledged by developer. (Mon, 09 Dec 2019 04:59:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Diego Nicola Barbato <dnbarbato <at> posteo.de>
Cc: 38533-done <at> debbugs.gnu.org
Subject: Re: bug#38533: emacs-auctex breaks url package
Date: Mon, 09 Dec 2019 13:58:34 +0900
Hello Diego,

Diego Nicola Barbato <dnbarbato <at> posteo.de> writes:

> Hi Guix,
>
> AUCTeX breaks Emacs' bult-in url package.  This bug appears to have been
> introduced with commit 3ffdd00 and can be reproduced as follows:
>
> 1) Install ‘emacs’ and ‘emacs-auctex’.
> 2) Start Emacs and do M-: (require 'url), which will produce the
>    following backtrace:
>
> Debugger entered--Lisp error: (void-function TeX-add-style-hook)
>   (TeX-add-style-hook "url" #f(compiled-function () #<bytecode 0x48bbdd>) LaTeX-dialect)
>   require(url)
>   eval((require (quote url)) nil)
>   eval-expression((require (quote url)) nil nil 127)
>   funcall-interactively(eval-expression (require (quote url)) nil nil 127)
>   call-interactively(eval-expression nil nil)
>   command-execute(eval-expression)
>
> It looks like Emacs tries to load the file
> $GUIX_PROFILE/share/emacs/site-lisp/style/url.elc, which is provided by
> ‘emacs-auctex’, instead of
> $GUIX_PROFILE/share/emacs/26.3/lisp/url/url.elc, which is provided by
> Emacs itself.
>
> Regards,
>
> Diego

This was caused by Emacs site-lisp/subdirs.el file, which when found in
a profile's union was causing Emacs to *recursively* add everything
under site-lisp to the load-path.

Fixed with commit a7a492899a.

Thank you for the report!

Closing,

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#38533; Package guix. (Mon, 09 Dec 2019 10:20:02 GMT) Full text and rfc822 format available.

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

From: Diego Nicola Barbato <dnbarbato <at> posteo.de>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 38533 <at> debbugs.gnu.org
Subject: Re: bug#38533: emacs-auctex breaks url package
Date: Mon, 09 Dec 2019 11:19:10 +0100
Hi Maxim,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> Hello Diego,
>
> Diego Nicola Barbato <dnbarbato <at> posteo.de> writes:
>
>> Hi Guix,
>>
>> AUCTeX breaks Emacs' bult-in url package.  This bug appears to have been
>> introduced with commit 3ffdd00 and can be reproduced as follows:
>>
>> 1) Install ‘emacs’ and ‘emacs-auctex’.
>> 2) Start Emacs and do M-: (require 'url), which will produce the
>>    following backtrace:
>>
>> Debugger entered--Lisp error: (void-function TeX-add-style-hook)
>>   (TeX-add-style-hook "url" #f(compiled-function () #<bytecode 0x48bbdd>) LaTeX-dialect)
>>   require(url)
>>   eval((require (quote url)) nil)
>>   eval-expression((require (quote url)) nil nil 127)
>>   funcall-interactively(eval-expression (require (quote url)) nil nil 127)
>>   call-interactively(eval-expression nil nil)
>>   command-execute(eval-expression)
>>
>> It looks like Emacs tries to load the file
>> $GUIX_PROFILE/share/emacs/site-lisp/style/url.elc, which is provided by
>> ‘emacs-auctex’, instead of
>> $GUIX_PROFILE/share/emacs/26.3/lisp/url/url.elc, which is provided by
>> Emacs itself.
>>
>> Regards,
>>
>> Diego
>
> This was caused by Emacs site-lisp/subdirs.el file, which when found in
> a profile's union was causing Emacs to *recursively* add everything
> under site-lisp to the load-path.
>
> Fixed with commit a7a492899a.

Wow, that was fast!

> Thank you for the report!

Thank you for fixing this (and the other Emacs related bugs I've
reported)!

Regards,

Diego




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 06 Jan 2020 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 105 days ago.

Previous Next


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