help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

eval-after-load causes void-variable error


From: Sean McAfee
Subject: eval-after-load causes void-variable error
Date: Thu, 17 Jan 2013 15:53:11 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]