unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* eval-after-load causes void-variable error
@ 2013-01-17 23:53 Sean McAfee
  2013-01-18  0:07 ` Barry Margolin
  0 siblings, 1 reply; 12+ messages in thread
From: Sean McAfee @ 2013-01-17 23:53 UTC (permalink / raw)
  To: help-gnu-emacs

For a long time I had this in my .emacs file:

(require 'ffap)
(add-to-list 'ffap-alist (cons +my-ffap-regexp+ #'my-ffap-hook))

I recently decided to optimize it a bit and changed it to:

(eval-after-load 'ffap
  '(add-to-list 'ffap-alist (cons +my-ffap-regexp+ #'my-ffap-hook)))

Now, however, as soon as the ffap command is activated, I get an error:

Lisp error: (void-variable ffap-alist)

Somehow, using eval-after-load is causing the variable ffap-alist to be
unbound, or not bound in the first place.  Does anyone have any idea
what's going on?


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-01-18 19:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-17 23:53 eval-after-load causes void-variable error Sean McAfee
2013-01-18  0:07 ` Barry Margolin
2013-01-18  1:35   ` Le Wang
2013-01-18  3:21   ` Dmitry Gutov
     [not found]   ` <mailman.17773.1358479324.855.help-gnu-emacs@gnu.org>
2013-01-18  5:15     ` Barry Margolin
2013-01-18  7:19       ` Dmitry Gutov
     [not found]       ` <mailman.17789.1358493580.855.help-gnu-emacs@gnu.org>
2013-01-18 17:57         ` Sean McAfee
2013-01-18 18:08           ` Barry Margolin
2013-01-18 19:04             ` Eli Zaretskii
     [not found]             ` <mailman.17839.1358535836.855.help-gnu-emacs@gnu.org>
2013-01-18 19:17               ` Barry Margolin
2013-01-18 18:34           ` Dmitry Gutov
2013-01-18 18:00         ` Barry Margolin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).