From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Ezequiel Gallina Newsgroups: gmane.emacs.devel Subject: adding a standard font-lock-number-face Date: Thu, 16 Jun 2011 23:00:12 -0300 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: dough.gmane.org 1308276257 1907 80.91.229.12 (17 Jun 2011 02:04:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2011 02:04:17 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 04:04:11 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 1QXOPo-0003vJ-Qi for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 04:04:08 +0200 Original-Received: from localhost ([::1]:47975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXOPn-0003KV-T1 for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2011 22:04:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXOM4-0002bk-H2 for emacs-devel@gnu.org; Thu, 16 Jun 2011 22:00:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXOM2-0006ly-T0 for emacs-devel@gnu.org; Thu, 16 Jun 2011 22:00:16 -0400 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:37205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXOM2-0006lT-46 for emacs-devel@gnu.org; Thu, 16 Jun 2011 22:00:14 -0400 Original-Received: by pzk4 with SMTP id 4so1767958pzk.0 for ; Thu, 16 Jun 2011 19:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=8Zu4/zV1l7li21Xp+1u8g5+ekBJ/9nGxdXrL0v9tzNE=; b=DRNSv7RczSFahbzAkDezs1d3pTBbzvS1NeyiBU16koTgiYXLNaPNe3WGzsHAEkjVog qW1Hk1Uw6HZNARO0v+HRN6ZzrfGqJ0G2naFxBw/Y1ROkhNIZNdMgR4MqygOtATtGxxzE t7wAUBIqsv8V/OMHGMrxVGAVvkQ735KHq88I4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=cPzGNzXQk4B7Kjh6WEny2Q9cztNgdCwrpNm0CcoFfmK9P9BW6diXNog/wDmIDrSQod zhF4GEWSNW6zwhEndOQo+SmHEsXs21384+9a0L+AKjGq+ee+G3FQn/kVGI6ukEJfkrU9 AIoXf5/GRveYw3rTERhkcZk2KdAc9yTSJXmj0= Original-Received: by 10.68.58.198 with SMTP id t6mr825401pbq.276.1308276012985; Thu, 16 Jun 2011 19:00:12 -0700 (PDT) Original-Received: by 10.68.41.98 with HTTP; Thu, 16 Jun 2011 19:00:12 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.41 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:140578 Archived-At: Hi devs, In the python.el bugtracker[0] an interesting discussion started about highlighting numbers in python.el. I'm kinda against of adding a custom python.el face for it and contribute to the non-standard faces hell we already face from other packages which make Emacs hard to theme. So the first idea the user mentioned when I rejected such approach was using font-lock-constant-face which sounds good, but I don't think I've seen another package to do such thing, and I'm sure most Emacs users are accustomed to see numbers in a different decoration than constants. 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? [0] https://github.com/fgallina/python.el/issues/42 Thanks, --=20 Fabi=E1n E. Gallina