From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13686: hi-yellow vs. hi-lock-1 Date: Fri, 08 Mar 2013 20:33:15 -0500 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 1362792875 4536 80.91.229.3 (9 Mar 2013 01:34:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Mar 2013 01:34:35 +0000 (UTC) Cc: Jambunathan K , 13686@debbugs.gnu.org To: David Koppelman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 09 02:34:59 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 1UE8gc-000601-8Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Mar 2013 02:34:58 +0100 Original-Received: from localhost ([::1]:46935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE8gG-0002K7-6v for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 20:34:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE8g8-0002Ji-2z for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 20:34:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UE8g3-000071-8u for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 20:34:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE8g3-00006w-5p for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 20:34:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UE8gg-0000id-F7 for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 20:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Mar 2013 01:35: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.13627928482697 (code B ref 13686); Sat, 09 Mar 2013 01:35:02 +0000 Original-Received: (at 13686) by debbugs.gnu.org; 9 Mar 2013 01:34:08 +0000 Original-Received: from localhost ([127.0.0.1]:40314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UE8fn-0000hR-9R for submit@debbugs.gnu.org; Fri, 08 Mar 2013 20:34:07 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:14889) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UE8fl-0000gz-VW for 13686@debbugs.gnu.org; Fri, 08 Mar 2013 20:34:06 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXZ8/2dsb2JhbABEDr8AF3OCHgEBBAFWIwULCw4mEhQYDSSIHgbBLZEKA4hhiXmSIIFegjlc X-IPAS-Result: Av4EABK/CFFsoXZ8/2dsb2JhbABEDr8AF3OCHgEBBAFWIwULCw4mEhQYDSSIHgbBLZEKA4hhiXmSIIFegjlc X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="3379282" Original-Received: from 108-161-118-124.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([108.161.118.124]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Mar 2013 20:33:16 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 80BDAAE3FA; Fri, 8 Mar 2013 20:33:15 -0500 (EST) In-Reply-To: (David Koppelman's message of "Wed, 06 Mar 2013 13:55:28 -0600") 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:72251 Archived-At: >> hi-lock-N >> highlight-N >> font-lock-user-N >> font-lock-highlight-N >> font-lock-extra-face-N The "font-lock-" names are due to history. There's no point using this scheme for new faces, especially for faces not directly linked to font-lock. > 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. How 'bout designing a concise "face description" format, so that instead of choosing "hi-yellow", the user can choose (say) "b:yellow", "f:blue", or "s:bold". This would give access to "any color", and in order not to overwhelm the user, the completion would default to only completing among a predefined set (corresponding to the current predefined faces)? Stefan