* List of buffer-local variables in a buffer?
@ 2009-12-18 23:02 Stephen Eglen
2009-12-18 23:07 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Eglen @ 2009-12-18 23:02 UTC (permalink / raw)
To: emacs-devel
How do I get a list of the names of the variables that are buffer-local
within a buffer?
(specifically, I want to protect (using the 'permanent-local
property) the many local variables that are created by term.el in M-x
term).
Thanks, Stephen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: List of buffer-local variables in a buffer?
2009-12-18 23:02 List of buffer-local variables in a buffer? Stephen Eglen
@ 2009-12-18 23:07 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2009-12-18 23:07 UTC (permalink / raw)
To: Stephen Eglen; +Cc: emacs-devel
Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk> writes:
> How do I get a list of the names of the variables that are buffer-local
> within a buffer?
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.
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] 2+ messages in thread
end of thread, other threads:[~2009-12-18 23:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-18 23:02 List of buffer-local variables in a buffer? Stephen Eglen
2009-12-18 23:07 ` Andreas Schwab
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.