unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 15974@debbugs.gnu.org
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)	[thread overview]
Message-ID: <6c51b99e-75bb-4b1e-9455-8fa5d0ea0220@default> (raw)
In-Reply-To: <8761ony9e3.fsf@building.gnus.org>

> 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 =' 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.





  reply	other threads:[~2014-02-10  3:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25 19:13 bug#15974: 24.3.50; emacs -Q -nw: awful color for input fields: BRIGHT YELLOW Drew Adams
2014-02-08  3:10 ` Lars Ingebrigtsen
2014-02-08  9:10   ` Eli Zaretskii
2014-02-08 10:24     ` Lars Ingebrigtsen
2014-02-08 10:57       ` Eli Zaretskii
2014-02-08 23:02   ` Drew Adams
2014-02-09  2:24     ` Lars Ingebrigtsen
2014-02-10  0:57       ` Drew Adams
2014-02-10  2:44         ` Lars Ingebrigtsen
2014-02-10  3:03           ` Drew Adams [this message]
2014-02-10  3:06             ` Lars Ingebrigtsen
2014-02-10  3:14               ` Drew Adams
     [not found]             ` <83y51iubdy.fsf@gnu.org>
     [not found]               ` <0087db25-ff93-4dd9-822c-41afd1746dbf@default>
     [not found]                 ` <83ppmuu910.fsf@gnu.org>
     [not found]                   ` <3ad5abea-959f-46b1-90f2-527df4d7f52e@default>
2014-02-11  3:33                     ` Eli Zaretskii
     [not found] <<4f10904c-6fb1-470f-a2fd-0032209f80dc@default>
     [not found] ` <<87iosq9u55.fsf@building.gnus.org>
     [not found]   ` <<83zjm2vuk1.fsf@gnu.org>
2014-02-10  1:01     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6c51b99e-75bb-4b1e-9455-8fa5d0ea0220@default \
    --to=drew.adams@oracle.com \
    --cc=15974@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).