emacs-devel
[Top][All Lists]
Advanced

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

Re: defvar vs setqif..


From: Colin Walters
Subject: Re: defvar vs setqif..
Date: 19 May 2002 16:59:46 -0400

On Sun, 2002-05-19 at 16:44, D. Goel wrote:

> An example: my .emacs needs to, say, (add-hook 'foo-mode-hook... ),
> but the hook may not be defined, so i (defvar foo-mode-hook) before
> this statement. 

Why do you defvar it?  The best solution is to (require 'foo-mode)
before adding the hook.  But `add-hook' won't lose if the hook isn't
bound yet.




reply via email to

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