all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* List of buffer-local variables
@ 2010-01-13 12:51 Deniz Dogan
  2010-01-13 12:55 ` Lennart Borgman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Deniz Dogan @ 2010-01-13 12:51 UTC (permalink / raw)
  To: Emacs-Devel devel

Is there any way (using elisp) to see a list of all variables local to
a specific buffer?

-- 
Deniz Dogan




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: List of buffer-local variables
  2010-01-13 12:51 List of buffer-local variables Deniz Dogan
@ 2010-01-13 12:55 ` Lennart Borgman
  2010-01-13 12:57 ` Andreas Schwab
  2010-01-13 13:00 ` Christoph Conrad
  2 siblings, 0 replies; 4+ messages in thread
From: Lennart Borgman @ 2010-01-13 12:55 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: Emacs-Devel devel

On Wed, Jan 13, 2010 at 1:51 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
> Is there any way (using elisp) to see a list of all variables local to
> a specific buffer?

(buffer-local-variables)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: List of buffer-local variables
  2010-01-13 12:51 List of buffer-local variables Deniz Dogan
  2010-01-13 12:55 ` Lennart Borgman
@ 2010-01-13 12:57 ` Andreas Schwab
  2010-01-13 13:00 ` Christoph Conrad
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2010-01-13 12:57 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: Emacs-Devel devel

Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:

> Is there any way (using elisp) to see a list of all variables local to
> a specific buffer?

M-x apropos is your friend.

buffer-local-variables is a built-in function in `C source code'.

(buffer-local-variables &optional buffer)

Return an alist of variables that are buffer-local in buffer.
Most elements look like (SYMBOL . VALUE), describing one variable.
For a symbol that is locally unbound, just the symbol appears in the value.
Note that storing new VALUEs in these elements doesn't change the variables.
No argument or nil as argument means use current buffer as buffer.

[back]

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: List of buffer-local variables
  2010-01-13 12:51 List of buffer-local variables Deniz Dogan
  2010-01-13 12:55 ` Lennart Borgman
  2010-01-13 12:57 ` Andreas Schwab
@ 2010-01-13 13:00 ` Christoph Conrad
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Conrad @ 2010-01-13 13:00 UTC (permalink / raw)
  To: emacs-devel

Hi Deniz,

> Is there any way (using elisp) to see a list of all variables local to
> a specific buffer?

You can use the function `buffer-local-variables' to get an alist, or
functions from "describe-buffer-local-variables.el"[¹] to see a readable
list.

Regards,
Christoph

[¹] <http://www.gnuvola.org/software/personal-elisp/dist/lisp/low-stress/describe-buffer-local-variables.el>




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-13 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 12:51 List of buffer-local variables Deniz Dogan
2010-01-13 12:55 ` Lennart Borgman
2010-01-13 12:57 ` Andreas Schwab
2010-01-13 13:00 ` Christoph Conrad

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.