all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: Alan Mackenzie <acm@muc.de>, emacs-devel@gnu.org
Subject: Re: eval-after-load changes
Date: Fri, 26 May 2006 18:20:54 +0200	[thread overview]
Message-ID: <v9lksodaft.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <873beywfew.fsf@pacem.orebokech.com> (Romain Francoise's message of "Thu, 25 May 2006 12:46:15 +0200")

On Thu, May 25 2006, Romain Francoise wrote:

> There's a bug in the changes you installed yesterday: `eval-after-load'
> forms get evaluated immediately if the last word of the name of the file
> they're contained in matches the FILE arg of the e-a-l form.
>
> To reproduce this bug, create a file named `this-is-not-ibuffer.el' that
> contains the following:
>
> (eval-after-load "ibuffer"
>   '(progn
>      (add-to-list 'ibuffer-maybe-show-predicates "\\.newsrc")))
>
> Then start Emacs with emacs -q and try to load the file.  Emacs signals
> the following error:
>
> | progn: Symbol's value as variable is void: ibuffer-maybe-show-predicates

I see the same problem using the following file `rs-tex.el':

--8<---------------cut here---------------start------------->8---
(eval-after-load "tex"
  '(progn
     (message "featurep tex? -> %s" (featurep 'tex))
     (message "featurep rs-tex? -> %s" (featurep 'rs-tex))
     (add-to-list
      'TeX-command-list (list "Make" "make dvi" 'TeX-run-compile t t) t)))
(provide 'rs-tex)
--8<---------------cut here---------------end--------------->8---

After loading this file, the form is immediately evaled, but `tex' and
the variable `TeX-command-list' isn't available yet:

,----[ *Messages* ]
| featurep tex? -> nil
| featurep rs-tex? -> t
| progn: Symbol's value as variable is void: TeX-command-list
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

  reply	other threads:[~2006-05-26 16:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-25 10:46 eval-after-load changes Romain Francoise
2006-05-26 16:20 ` Reiner Steib [this message]
2006-05-26 16:31   ` Romain Francoise

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9lksodaft.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.