all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: daniel@bigwalter.net (Daniel Jensen)
To: help-gnu-emacs@gnu.org
Subject: Re: elisp from CL transition guide
Date: Thu, 16 Aug 2007 14:43:12 +0200	[thread overview]
Message-ID: <873ayjy7j3.fsf@orme.bigwalter.net> (raw)
In-Reply-To: 873ayjfzaa.fsf@pu100877.student.princeton.edu

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	other threads:[~2007-08-16 12:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-16  9:14 elisp from CL transition guide Tamas Papp
2007-08-16  9:47 ` Tassilo Horn
2007-08-16 10:05 ` Petter Gustad
2007-08-16 10:58 ` Daniel Jensen
2007-08-16 12:18   ` Tamas Papp
2007-08-16 12:43     ` Daniel Jensen [this message]
2007-08-16 12:58     ` Tassilo Horn
2007-08-16 13:30     ` How to indent sql lu
2007-08-18  6:39     ` elisp from CL transition guide Tim Cross
2007-08-16 15:24 ` Pascal Bourguignon
2007-08-18  6:21 ` Tim Cross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873ayjy7j3.fsf@orme.bigwalter.net \
    --to=daniel@bigwalter.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.