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 Date: Wed, 13 Jan 2010 13:57:28 +0100 Message-ID: References: <7b501d5c1001130451y422ac34fo5e7bb47a9f6d804e@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263387481 11382 80.91.229.12 (13 Jan 2010 12:58:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 12:58:01 +0000 (UTC) Cc: Emacs-Devel devel To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 13 13:57:54 2010 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 1NV2nH-0006rk-MD for ged-emacs-devel@m.gmane.org; Wed, 13 Jan 2010 13:57:52 +0100 Original-Received: from localhost ([127.0.0.1]:49871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV2nI-0007t1-En for ged-emacs-devel@m.gmane.org; Wed, 13 Jan 2010 07:57:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV2nD-0007so-N5 for emacs-devel@gnu.org; Wed, 13 Jan 2010 07:57:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV2n8-0007re-8y for emacs-devel@gnu.org; Wed, 13 Jan 2010 07:57:46 -0500 Original-Received: from [199.232.76.173] (port=38777 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV2n8-0007rb-46 for emacs-devel@gnu.org; Wed, 13 Jan 2010 07:57:42 -0500 Original-Received: from mx1.redhat.com ([209.132.183.28]:7917) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NV2n7-0000RJ-HK for emacs-devel@gnu.org; Wed, 13 Jan 2010 07:57:41 -0500 Original-Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0DCvUPq015968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 13 Jan 2010 07:57:31 -0500 Original-Received: from hase.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0DCvS7w011484; Wed, 13 Jan 2010 07:57:29 -0500 X-Yow: NEWARK has been REZONED!! DES MOINES has been REZONED!! In-Reply-To: <7b501d5c1001130451y422ac34fo5e7bb47a9f6d804e@mail.gmail.com> (Deniz Dogan's message of "Wed, 13 Jan 2010 13:51:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:119911 Archived-At: Deniz Dogan 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."