From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#15974: 24.3.50; emacs -Q -nw: awful color for input fields: BRIGHT YELLOW Date: Sun, 9 Feb 2014 19:03:05 -0800 (PST) Message-ID: <6c51b99e-75bb-4b1e-9455-8fa5d0ea0220@default> References: <4f10904c-6fb1-470f-a2fd-0032209f80dc@default> <87iosq9u55.fsf@building.gnus.org> <877g95koq1.fsf@building.gnus.org> <918507c4-1bf2-43bf-bbb5-b499f4974c27@default> <8761ony9e3.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1392001453 14562 80.91.229.3 (10 Feb 2014 03:04:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2014 03:04:13 +0000 (UTC) Cc: 15974@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 10 04:04:21 2014 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 1WChAS-0004ll-IF for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 04:04:20 +0100 Original-Received: from localhost ([::1]:53027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WChAS-0001lN-6k for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Feb 2014 22:04:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WChAH-0001lC-Ib for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 22:04:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WChAA-00070Y-27 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 22:04:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WChA9-00070T-V9 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 22:04:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WChA9-0004dX-N4 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 22:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2014 03:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15974 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15974-submit@debbugs.gnu.org id=B15974.139200139417748 (code B ref 15974); Mon, 10 Feb 2014 03:04:01 +0000 Original-Received: (at 15974) by debbugs.gnu.org; 10 Feb 2014 03:03:14 +0000 Original-Received: from localhost ([127.0.0.1]:33080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCh9N-0004cB-Dc for submit@debbugs.gnu.org; Sun, 09 Feb 2014 22:03:13 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:51323) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCh9L-0004c2-BE for 15974@debbugs.gnu.org; Sun, 09 Feb 2014 22:03:12 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1A339fT021906 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Feb 2014 03:03:09 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1A338rv016993 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 10 Feb 2014 03:03:09 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1A338hg017538; Mon, 10 Feb 2014 03:03:08 GMT In-Reply-To: <8761ony9e3.fsf@building.gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] 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:85145 Archived-At: > I was asking for a recipe to demonstrate the problem. It's not an > entirely novel idea, I would have thought? As I replied to Eli: http://www.emacswiki.org/emacs-en/download/highlight.el The option shown in the screenshot is `hlt-auto-face-backgrounds'. > What on Earth is `hlt-auto-face-backgrounds'? I can't find any > such symbol in the Emacs tree. Yes, Virginia; there is a Santa Claus. There is a world of Emacs code beyond the Emacs tree. ;-) In that file, you will find the defcustom, which was also in the mail you are replying to. That defcustom and these 2 functions are all you need to repro the bug and see for yourself: (defun hlt-tty-colors () "Colors available for use with Emacs in a terminal (`emacs -nw')." (hlt-remove-if-not #'x-color-defined-p (if (fboundp 'tty-color-alist) (mapcar #'car (tty-color-alist)) '("blue" "green" "cyan" "red" "magenta" "brown" "lightgray" "darkgray= " "yellow" "white" "lightblue" "lightgreen" "lightcyan" "lightred" "lightmagenta")))) (defun hlt-remove-if-not (pred xs) "A copy of list XS with only elements that satisfy predicate PRED." (let ((result ())) (dolist (x xs) (when (funcall pred x) (push x result))) (nreverse result))) Be sure to start with emacs -Q -nw. Use `C-u C-x =3D' on the yellow fields and you will see they use face `widget-field'. That is the face that needs fixing, IMO. But again, this bug has nothing to do with the code in that file. It is the Customize _edit fields_ that are bright yellow.