[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?
- eval-after-load causes void-variable error,
Sean McAfee <=
- Re: eval-after-load causes void-variable error, Barry Margolin, 2013/01/17
- Re: eval-after-load causes void-variable error, Le Wang, 2013/01/17
- Re: eval-after-load causes void-variable error, Dmitry Gutov, 2013/01/17
- Message not available
- Re: eval-after-load causes void-variable error, Barry Margolin, 2013/01/18
- Re: eval-after-load causes void-variable error, Dmitry Gutov, 2013/01/18
- Message not available
- Re: eval-after-load causes void-variable error, Sean McAfee, 2013/01/18
- Re: eval-after-load causes void-variable error, Barry Margolin, 2013/01/18
- Re: eval-after-load causes void-variable error, Eli Zaretskii, 2013/01/18
- Message not available
- Re: eval-after-load causes void-variable error, Barry Margolin, 2013/01/18
- Re: eval-after-load causes void-variable error, Dmitry Gutov, 2013/01/18