From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: adding a standard font-lock-number-face Date: Thu, 16 Jun 2011 23:19:44 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308280806 21116 80.91.229.12 (17 Jun 2011 03:20:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2011 03:20:06 +0000 (UTC) Cc: Emacs-Devel devel To: Fabian Ezequiel Gallina Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 05:20:03 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QXPbF-0006hv-Ey for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 05:20:01 +0200 Original-Received: from localhost ([::1]:49922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXPbE-00051R-23 for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2011 23:20:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXPaz-000512-VN for emacs-devel@gnu.org; Thu, 16 Jun 2011 23:19:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXPaz-0002xf-7q for emacs-devel@gnu.org; Thu, 16 Jun 2011 23:19:45 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:59600 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXPaz-0002xb-5B for emacs-devel@gnu.org; Thu, 16 Jun 2011 23:19:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAMjG+k1FpZvP/2dsb2JhbABSpmt4iHPBLYYnBJ1YhB8 X-IronPort-AV: E=Sophos;i="4.65,379,1304308800"; d="scan'208";a="116499818" Original-Received: from 69-165-155-207.dsl.teksavvy.com (HELO ceviche.home) ([69.165.155.207]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 16 Jun 2011 23:19:44 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 52F1466234; Fri, 17 Jun 2011 00:19:44 -0300 (ART) In-Reply-To: (Fabian Ezequiel Gallina's message of "Thu, 16 Jun 2011 23:00:12 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140582 Archived-At: > So long story short: isn't a good idea to add a standard > font-lock-number-face in order to have fine grained control on > font-lock and give the users the chance to customize numbers > decoration out of the box? I don't think highlighting tokens that are only lexically relevant but not syntactically relevant is a good idea. E.g. it's good to highlight keywords because they determine structure. It's good to highlight strings and comments because keywords within them *don't* determine structure. It's good to highlight identifier definitions because these are semantically important and they tend to be a bit like section titles, so syntactically meaningful. But it's not useful to highlight all identifiers, or all numbers, or all separators, or all infix operators, ... because that doesn't help the user navigate his code. Stefan