From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Nordl=F6w?= Newsgroups: gmane.emacs.help Subject: Enhancing font-locking in emacs-lisp-mode Date: Thu, 5 Jun 2008 12:37:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1212694847 17471 80.91.229.12 (5 Jun 2008 19:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2008 19:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 05 21:41:26 2008 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 1K4LKr-0005Dn-LP for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jun 2008 21:41:22 +0200 Original-Received: from localhost ([127.0.0.1]:58114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4LK4-0001C6-TQ for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jun 2008 15:40:32 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k13g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 81.170.250.228 Original-X-Trace: posting.google.com 1212694649 19032 127.0.0.1 (5 Jun 2008 19:37:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 5 Jun 2008 19:37:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k13g2000hse.googlegroups.com; posting-host=81.170.250.228; posting-account=ytJKAgoAAAA1tg4ScoRszebXiIldA5vg User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; sv-SE; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159141 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:54488 Archived-At: Hi again! Some thoughts regarding enhancements of font-locking in emacs-lisp- mode; I believe the readability of emacs-lisp code would be greatly enhanced by also highlighting the following cases - arguments to function/macro definition (defun/defmacro) in font-lock- variable-name-face - local variable names defined by the let/let* statement - function name part of function calls: I guess this is hard/ (impossible?) to get right for all cases but maybe we could somehow reuse `functionp' in the MATCHER to better filter out the more relevant cases? Does anyone have any tips on how to go about implementing this. For the second case I believe I have to use a function matcher in font- lock-keywords that navigates in the sub-expression structure (forward/ backward-sexp, backward-up-list, down-list). I now know how regexp- MATCHERs work. Does anyone have any good tutorial on how to design these function-MATCHERS? Is it adviced to solve this as an add-on or is it best to let the GNU Emacs hackers add this functionality to lisp-mode.el? /Nordl=F6w