From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to find current font-lock settings of a buffer? Date: Sun, 8 Feb 2009 10:34:56 -0800 Message-ID: <002f01c98a1b$f14d60e0$0200a8c0@us.oracle.com> References: <2C73404D-3F35-4D7B-B9C3-C71B04BD739F@Web.DE> <87k5816xno.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234119457 8589 80.91.229.12 (8 Feb 2009 18:57:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2009 18:57:37 +0000 (UTC) To: "'Tassilo Horn'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 08 19:58:52 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LWEri-0005mS-Vs for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Feb 2009 19:58:51 +0100 Original-Received: from localhost ([127.0.0.1]:50189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWEqP-0002mV-Os for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Feb 2009 13:57:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWEUi-0007wa-Nn for help-gnu-emacs@gnu.org; Sun, 08 Feb 2009 13:35:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWEUh-0007vd-39 for help-gnu-emacs@gnu.org; Sun, 08 Feb 2009 13:35:04 -0500 Original-Received: from [199.232.76.173] (port=43258 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWEUg-0007vA-Rx for help-gnu-emacs@gnu.org; Sun, 08 Feb 2009 13:35:02 -0500 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:56098) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWEUf-0002xK-Or for help-gnu-emacs@gnu.org; Sun, 08 Feb 2009 13:35:02 -0500 Original-Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n18IYsAZ026109 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 8 Feb 2009 18:34:55 GMT Original-Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n18IYw3k000465; Sun, 8 Feb 2009 18:34:59 GMT Original-Received: from dradamslap1 (/24.5.128.33) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 08 Feb 2009 10:34:54 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87k5816xno.fsf@thinkpad.tsdh.de> Thread-Index: AcmJ1nxobzEYfREORESSkNx67CM+VgAQYPTA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt703.oracle.com [141.146.40.81] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A01020A.498F25D0.0139:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62009 Archived-At: > >> how can I see the current font-lock settings of a buffer? > > > > M-x describe-face RET on character of that face. In GNU Emacs 23 C-u > > C-x = works similarly. > > That displays only the face used for that character. The real > font-lock settings are in the variable font-lock-keywords (which > you normally don't set explicitly). > See (info "(elisp)Font Lock Mode") for details. Yes, but looking at the value of `font-lock-keywords' is likely to puzzle more than clarify ... unless you marry that with the face appearances using `list-faces-display'. IOW, `C-h v font-lock-keywords' will show you which faces are used by Font Lock mode in the current buffer. Then `M-x list-faces-display' will show you what they (and other faces actually look like).