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

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

RE: hooks and let-bound variables


From: Drew Adams
Subject: RE: hooks and let-bound variables
Date: Tue, 23 Jun 2015 14:44:17 -0700 (PDT)

> I’m trying to get eshell-autojump to work but I’m getting
> errors about an undefined variable (curdir). This variable is bound by a
> let before a hook is called:

Yes, but occurrences of that variable in the function called by the hook are 
not within the lexical scope of that let.

What happens if you add (defvar curdir), to let Emacs know that the variable is 
to be dynamically scoped?



reply via email to

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