From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: List of buffer-local variables in a buffer? Date: Sat, 19 Dec 2009 00:07:19 +0100 Message-ID: References: <9477.1261177365@cpc1-cmbg14-2-0-cust6.5-4.cable.virginmedia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261177662 26168 80.91.229.12 (18 Dec 2009 23:07:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2009 23:07:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Eglen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 19 00:07:35 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NLlv2-0007Iy-Sm for ged-emacs-devel@m.gmane.org; Sat, 19 Dec 2009 00:07:33 +0100 Original-Received: from localhost ([127.0.0.1]:48181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLlv2-00054E-VY for ged-emacs-devel@m.gmane.org; Fri, 18 Dec 2009 18:07:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLlux-00050u-0Y for emacs-devel@gnu.org; Fri, 18 Dec 2009 18:07:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLlur-0004qg-WA for emacs-devel@gnu.org; Fri, 18 Dec 2009 18:07:26 -0500 Original-Received: from [199.232.76.173] (port=33203 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLlur-0004qS-Ra for emacs-devel@gnu.org; Fri, 18 Dec 2009 18:07:21 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:37068) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLlur-0004IU-Uf for emacs-devel@gnu.org; Fri, 18 Dec 2009 18:07:22 -0500 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id A3AD91C15B34; Sat, 19 Dec 2009 00:07:20 +0100 (CET) Original-Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id 96D719037D; Sat, 19 Dec 2009 00:07:20 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id A2BB-B4ehaVI; Sat, 19 Dec 2009 00:07:19 +0100 (CET) Original-Received: from igel.home (DSL01.83.171.184.24.ip-pool.NEFkom.net [83.171.184.24]) by mail.mnet-online.de (Postfix) with ESMTP; Sat, 19 Dec 2009 00:07:19 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id 46C91CA28C; Sat, 19 Dec 2009 00:07:19 +0100 (CET) X-Yow: I OWN six pink HIPPOS!! In-Reply-To: <9477.1261177365@cpc1-cmbg14-2-0-cust6.5-4.cable.virginmedia.com> (Stephen Eglen's message of "Fri, 18 Dec 2009 23:02:45 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118735 Archived-At: Stephen Eglen 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."