From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#19877: 24.4; highlight-regexp displays nonsense options for faces Date: Thu, 19 Feb 2015 21:14:40 +0200 Organization: LINKOV.NET Message-ID: <873861u31b.fsf@mail.linkov.net> References: <54E0E63C.8010907@gmx.com> <87zj8baxjy.fsf@mail.linkov.net> <54E52D3F.6090703@gmx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1424373627 31229 80.91.229.3 (19 Feb 2015 19:20:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2015 19:20:27 +0000 (UTC) Cc: 19877@debbugs.gnu.org To: Boruch Baum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 19 20:20:19 2015 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 1YOWe0-0008PJ-N9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Feb 2015 20:20:16 +0100 Original-Received: from localhost ([::1]:57782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOWdz-00056D-Sx for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Feb 2015 14:20:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOWdu-00051H-Gp for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 14:20:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOWdo-0007jK-BO for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 14:20:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOWdo-0007j8-9D for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 14:20:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YOWdo-0007gv-2s for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 14:20:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Feb 2015 19:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19877 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19877-submit@debbugs.gnu.org id=B19877.142437354929472 (code B ref 19877); Thu, 19 Feb 2015 19:20:03 +0000 Original-Received: (at 19877) by debbugs.gnu.org; 19 Feb 2015 19:19:09 +0000 Original-Received: from localhost ([127.0.0.1]:48938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOWcv-0007fH-18 for submit@debbugs.gnu.org; Thu, 19 Feb 2015 14:19:09 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.222.226]:39772 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOWcr-0007f0-Jw for 19877@debbugs.gnu.org; Thu, 19 Feb 2015 14:19:06 -0500 Original-Received: from localhost.linkov.net (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 6F97A303F31818; Thu, 19 Feb 2015 11:19:04 -0800 (PST) In-Reply-To: <54E52D3F.6090703@gmx.com> (Boruch Baum's message of "Wed, 18 Feb 2015 19:24:31 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:99615 Archived-At: >> Maybe the list of all faces (that come after the default faces) >> should be better sorted somehow, e.g. alphabetically or by use frequency. > My vote is to just restrict the options to those specified in > hi-lock-face-defaults. The value can be easily modified, and its a > simple way to keep unusual and unexpected faces from appearing. Currently it's not too easy to modify since hi-lock-face-defaults is defined with defvar, but not defcustom. > Also, how many hi-lock faces is anyone going to ever need? I'd say that in average 8 faces are needed, but the problem is that hi-lock-face-defaults provides only 4 usable default faces ("hi-yellow" "hi-pink" "hi-green" "hi-blue"). The rest of default faces with the prefix "-b" are highlighting with bold weight, so they are less usable. This is why often is necessary to find more faces in the list of all faces that come after default faces.