From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#19877: 24.4; highlight-regexp displays nonsense options for faces Date: Thu, 19 Feb 2015 16:41:33 -0500 Message-ID: <54E6588D.2030207@gmx.com> References: <54E0E63C.8010907@gmx.com> <87zj8baxjy.fsf@mail.linkov.net> <54E52D3F.6090703@gmx.com> <873861u31b.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AAPtt10hopwKnu9BcHle14cxDR3OtduJ0" X-Trace: ger.gmane.org 1424382155 3431 80.91.229.3 (19 Feb 2015 21:42:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2015 21:42:35 +0000 (UTC) Cc: 19877@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 19 22:42:21 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 1YOYrV-0003y6-70 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Feb 2015 22:42:21 +0100 Original-Received: from localhost ([::1]:58197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOYrU-0001iB-KG for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Feb 2015 16:42:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOYrK-0001hk-FJ for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 16:42:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOYrC-0007Ik-UA for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 16:42:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOYrC-0007Ig-R3 for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 16:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YOYrC-0002UN-A0 for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 16:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Feb 2015 21:42:02 +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.14243821119550 (code B ref 19877); Thu, 19 Feb 2015 21:42:02 +0000 Original-Received: (at 19877) by debbugs.gnu.org; 19 Feb 2015 21:41:51 +0000 Original-Received: from localhost ([127.0.0.1]:49001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOYr0-0002Tx-8n for submit@debbugs.gnu.org; Thu, 19 Feb 2015 16:41:50 -0500 Original-Received: from mout.gmx.com ([74.208.4.200]:56375) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOYqx-0002To-6F for 19877@debbugs.gnu.org; Thu, 19 Feb 2015 16:41:47 -0500 Original-Received: from [10.175.103.17] ([47.21.4.242]) by mail.gmx.com (mrgmxus001) with ESMTPSA (Nemesis) id 0MDhX6-1YKj6U14HO-00H7Ku; Thu, 19 Feb 2015 22:41:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 In-Reply-To: <873861u31b.fsf@mail.linkov.net> OpenPGP: url=hkp://keys.gnupg.net X-Provags-ID: V03:K0:4tvwCPuD4seRhtZZRzyoVpgSaR1/Lr/rBMK/Ts4LQfX3VO7Llh/ Wk6WdjS3v2xJjh0Jfdj3PXxkrm0n/3NilHGb0OwUxd/60k3c9qHcmmNrOENYLWt0RpO4l6a rxI8DARts01wwqxKvIJbYBMDcndwUiU90kjULT32A0gCQxboCnBb94GChJaDEbpGX9xI7vL niBC681WUqagJe6CL3shg== X-UI-Out-Filterresults: notjunk:1; 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:99620 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --AAPtt10hopwKnu9BcHle14cxDR3OtduJ0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/19/2015 02:14 PM, Juri Linkov wrote: >>> Maybe the list of all faces (that come after the default faces) >>> should be better sorted somehow, e.g. alphabetically or by use freque= ncy. >> 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. >=20 > Currently it's not too easy to modify since hi-lock-face-defaults > is defined with defvar, but not defcustom. >=20 >> Also, how many hi-lock faces is anyone going to ever need? >=20 > 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. >=20 What works for me to define faces and add them to hi-lock-face-defaults, are the following two snippets in my .emacs: (defface hi-test '((((background dark)) (:background "white" :foreground "red")) (t (:background "white"))) "Face for hi-lock mode." :group 'hi-lock-faces) (add-hook 'hi-lock-mode-hook (lambda () (setq hi-lock-face-defaults '("hi-green" "hi-blue" "hi-red" "hi-cyan" "hi-magenta" "hi-yellow" "hi-test")))) --=20 hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 --AAPtt10hopwKnu9BcHle14cxDR3OtduJ0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJU5liYAAoJEDvrUfDmCx9LaWIP/RSgaaz0sbZB0OjmvHICmc9r DQ3Jc8QhkQBIAkWnSRpP3mgIWu3MgyB+wly6AGEunJVa2WryCMygyEtMwmszjdox wmK4Ll81InoxxOe6rGsW8JLVYr23qGlRvrRNLyjBaeHa7A2jyTw7nDFS3HOArbj8 NzsEJksD8d2LWwYQq6Hd6STpxDxSYafZPOTFMQoiGoQKtYevse8VqTwoF9KMv0JJ FSV0Ix/MnAE9ot+qKtL/HC9vI7DSDMAXwHanoONzFdbQOsmNiq9RWmUSRWlFEbts razfRNz59kaydfSOMiwOXeoaD7Qq/W60EhNRtDQdaWnMRCUOIcdsIFjWdH0GYAeW dId/IcYjwAa7z48EzHB4KtlOvLvgb0iGe0GAtr01TtQRqCNjk0X3Zb5GORzMJGCX 9cWewkmpu5/NUz3ryBd78s4sSM8zowQbixMglBLdyWx6LdDVXURTOMZl7t8avpuv /NRai1wMCVZl4sC3fq07eAHFRnCsUflDuQ6pf3Z4wWjKxUmpED4VzecxUMIKwiKw 4hvkKKIZxDV1MNwNp83rz3yk96XnU+9jK/z3e5Mf4KgYWxIYJJIfJH3Q3bAR1kjr NIFyXy4ELcqX4bF07agk3fg3Meg0XndV+leAQtQucV7Flke+8winoe1bItxXIhKY JSjfZmdAeP9HYkIFiekr =L9jL -----END PGP SIGNATURE----- --AAPtt10hopwKnu9BcHle14cxDR3OtduJ0--