GNU bug report logs - #10946
24.0.94; eval-after-load incompatible change

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Mon, 5 Mar 2012 11:00:02 UTC

Severity: normal

Found in version 24.0.94

Fixed in version 24.0.95

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#10946: closed (24.0.94; eval-after-load incompatible change)
Date: Fri, 16 Mar 2012 02:00:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 15 Mar 2012 21:29:06 -0400
with message-id <7g7gylxrj1.fsf <at> fencepost.gnu.org>
and subject line Re: bug#10946: 24.0.94; eval-after-load incompatible change
has caused the debbugs.gnu.org bug report #10946,
regarding 24.0.94; eval-after-load incompatible change
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
10946: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10946
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.94; eval-after-load incompatible change
Date: Mon, 05 Mar 2012 18:57:23 +0800
I recently upgraded to emacs 24 and I noticed some after-load forms not
running any more.

In emacs 23, when provide is invoked, it checks after-load-alist and
runs the matching form.

In emacs 24, the after-load form is guarded by load-file-name and thus
`provide' alone cannot trigger eval'ing after-load form.

One of my after-load forms is related to some code defined via pymacs,
which has no load-file-name. This incompatible change breaks all such
forms related to pymacs.

I don't know how best to fix this.

Leo


[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 10946-done <at> debbugs.gnu.org
Subject: Re: bug#10946: 24.0.94; eval-after-load incompatible change
Date: Thu, 15 Mar 2012 21:29:06 -0400
Version: 24.0.95

>> Isn't it possible to get the old behaviour back by changing the thing
>> that gets added to after-load-alist from:
>
>> (when load-file-name
>>    ...stuff...)
>
>> to
>
>> (if load-file-name
>>    ...stuff...
>>    ;; Not being provided from a file, run form right now.
>>    (form))

Implemented.


This bug report was last modified 13 years and 152 days ago.

Previous Next


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