From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Koppelman Newsgroups: gmane.emacs.bugs Subject: bug#13686: hi-yellow vs. hi-lock-1 Date: Wed, 06 Mar 2013 13:55:28 -0600 Message-ID: References: <878v6vidh7.fsf@gmail.com> <7BC00EAA1AF8466D8F9C17B3CA4E82B8@us.oracle.com> <87bob65sbw.fsf@gmail.com> <87wqtkxspi.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362599801 27136 80.91.229.3 (6 Mar 2013 19:56:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Mar 2013 19:56:41 +0000 (UTC) Cc: 13686@debbugs.gnu.org To: Jambunathan K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 06 20:57:04 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UDKSV-0007L1-87 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 20:57:03 +0100 Original-Received: from localhost ([::1]:52523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDKS9-0007u5-Mq for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 14:56:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDKS4-0007rJ-W8 for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 14:56:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDKS3-00089w-FS for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 14:56:36 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDKS3-00089l-Cn for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 14:56:35 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UDKSU-0007Tt-2T for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 14:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Koppelman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Mar 2013 19:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13686 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13686-submit@debbugs.gnu.org id=B13686.136259976728688 (code B ref 13686); Wed, 06 Mar 2013 19:57:02 +0000 Original-Received: (at 13686) by debbugs.gnu.org; 6 Mar 2013 19:56:07 +0000 Original-Received: from localhost ([127.0.0.1]:34780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDKRZ-0007Sc-4Z for submit@debbugs.gnu.org; Wed, 06 Mar 2013 14:56:07 -0500 Original-Received: from ecelsrv1.ece.lsu.edu ([130.39.16.10]:38690) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDKRV-0007S3-SJ for 13686@debbugs.gnu.org; Wed, 06 Mar 2013 14:56:03 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by ecelsrv1.ece.lsu.edu (Postfix) with ESMTP id 1BBC728093; Wed, 6 Mar 2013 19:55:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at ece.lsu.edu Original-Received: from ecelsrv1.ece.lsu.edu ([127.0.0.1]) by localhost (ecelsrv1.ece.lsu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZO+qppKU3sYD; Wed, 6 Mar 2013 13:55:28 -0600 (CST) Original-Received: from sky.ece.lsu.edu (sky.ece.lsu.edu [130.39.96.14]) by ecelsrv1.ece.lsu.edu (Postfix) with ESMTP id B768728091; Wed, 6 Mar 2013 13:55:28 -0600 (CST) In-Reply-To: <87wqtkxspi.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 07 Mar 2013 00:26:41 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72179 Archived-At: > From: Jambunathan K gmail.com> > > Let's focus on core, themable faces. How many you want in what prefix > or file. I propose that these faces be named opaquely as > hi-lock-N > highlight-N > font-lock-user-N > font-lock-highlight-N > font-lock-extra-face-N I object to using cryptic names for faces. The user should see a recognizable color name for the default hi-lock faces, and should be able to pick any face he or she likes. Hi-lock currently does this. I know that this can be achieved using face names such as hi-lock-1 by extracting a color from a face definition (if necessary, mapping an RGB triple to a name), but this is an unnecessary complication. As I see it, the only things that will be achieved are providing for themability and abiding by a convention that some interpret as a separation of face attributes from face names. I still don't understand why themability is so important for someone who wants to quickly highlight things for their own purposes. This is not the same as having a face reserved for errors, warnings, etc. As for the convention of not naming or otherwise linking a face with particular attributes (as some may interpret it), either it doesn't apply here, or if it does, it's a good place to ignore it. I've argued before that it does not apply because as most agree faces should be defined for a particular purpose rather than for appearance, such as for highlighting variable names. The face hi-yellow has a purpose: highlight something with a background of yellow. It is named appropriately and its attributes are so set. If there is a rule somewhere which clearly states that this is not allowed, then that rule should be broken in this case.