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

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

Re: elisp from CL transition guide


From: Daniel Jensen
Subject: Re: elisp from CL transition guide
Date: Thu, 16 Aug 2007 14:43:12 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

Tamas Papp <tkpapp@gmail.com> writes:

> One thing I don't understand yet is namespaces in Elisp: if I set fill-column 
> in
> a buffer (setq fill-column 80), that doesn't seem to affect fill-column in 
> other
> buffers.  But if I set some other variable eg (setq foo 12), foo will evaluate
> to 12 in other buffers.  What would be a correct mental model for this?

Think of it as a special kind of scoping; buffer-local scoping. To read
more, see the Elisp manual in (info "(elisp) Buffer-Local Variables").

You can see whether a variable is buffer-local when you describe it with
C-h v (describe-variable).


reply via email to

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