[Top][All Lists]

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

Re: defvar vs setqif..

From: Miles Bader
Subject: Re: defvar vs setqif..
Date: 20 May 2002 09:05:10 +0900

Colin Walters <address@hidden> writes:
> > 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.

...and the above defvar won't bind it anyway...

I'd rather be consing.

reply via email to

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