emacs-devel
[Top][All Lists]
Advanced

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

RE: remove-hook creates a symbol if it doesn't exist


From: Drew Adams
Subject: RE: remove-hook creates a symbol if it doesn't exist
Date: Tue, 21 Oct 2008 19:54:25 -0700

> > The function remove-hook creates a symbol if its HOOK arg 
> > doesn't exist as such:
> > 
> > (remove-hook 'non-existent-hook 'some-function)
> > 
> > ,-----[ C-h v non-existent-hook RET ]
> > | non-existent-hook's value is nil
> > | 
> > | Documentation:
> > | Not documented as a variable.
> > | 
> > | [back]
> > `-----
> 
> Actually, the read function interned the symbol.

`read', on its own, doesn't assign a value. It interns a name, creating a
symbol, but it doesn't give it a nil value.





reply via email to

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