emacs-devel
[Top][All Lists]
Advanced

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

Re: List of buffer-local variables


From: Andreas Schwab
Subject: Re: List of buffer-local variables
Date: Wed, 13 Jan 2010 13:57:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Deniz Dogan <address@hidden> 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, 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]