emacs-devel
[Top][All Lists]
Advanced

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

Re: List of buffer-local variables in a buffer?


From: Andreas Schwab
Subject: Re: List of buffer-local variables in a buffer?
Date: Sat, 19 Dec 2009 00:07:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

Stephen Eglen <address@hidden> 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, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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