GNU bug report logs - #33799
27.0.50; set-foreground-color completion shows background colors

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Juri Linkov <juri@HIDDEN>; dated Wed, 19 Dec 2018 00:03:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 33799 <at> debbugs.gnu.org:


Received: (at 33799) by debbugs.gnu.org; 20 Dec 2018 17:49:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 20 12:49:44 2018
Received: from localhost ([127.0.0.1]:56711 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ga2S8-000092-Lh
	for submit <at> debbugs.gnu.org; Thu, 20 Dec 2018 12:49:44 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36160)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1ga2S7-00008p-AD
 for 33799 <at> debbugs.gnu.org; Thu, 20 Dec 2018 12:49:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1ga2S1-00049Z-M0
 for 33799 <at> debbugs.gnu.org; Thu, 20 Dec 2018 12:49:38 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41364)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1ga2Rz-00047A-BS; Thu, 20 Dec 2018 12:49:35 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1ga2Rz-0007pQ-4e; Thu, 20 Dec 2018 12:49:35 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#33799: 27.0.50;
 set-foreground-color completion shows background colors
References: <875zvqz8om.fsf@HIDDEN>
 <5aftutcptc.fsf@HIDDEN> <87lg4lnvwp.fsf@HIDDEN>
X-Spook: Hazardous Torreon Drug Administration Vince Foster
X-Ran: 8B(qRv[4_C^^ngYP,A+z|~lV]`$h2beQE4%Ku99b{sfu}km?YSzcj{|@5V%9:~J0Rx28F~
X-Hue: black
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 20 Dec 2018 12:49:35 -0500
In-Reply-To: <87lg4lnvwp.fsf@HIDDEN> (Juri Linkov's message of "Wed, 
 19 Dec 2018 23:34:54 +0200")
Message-ID: <4i7eg45brk.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 33799
Cc: 33799 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Juri Linkov wrote:

> I don't know if readable background is needed for set-foreground-color
> like readable foreground is used for set-background-color.  I think
> your change to not use readable background is more correct because
> then the user will see how the selected color will fit with the background.
> This helps to select a suitable combination of foreground/background
> colors.  The same way maybe readable foreground should be removed
> from the completions of set-background-color.  This would allow to see
> how the current foreground color will look on different backgrounds
> in the completion list.

I think defined-colors-with-face-attributes probably needs yet another
argument, to control whether the non-varying component (be it foreground
or background) is a fixed value or a changing "readable" one.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33799; Package emacs. Full text available.

Message received at 33799 <at> debbugs.gnu.org:


Received: (at 33799) by debbugs.gnu.org; 19 Dec 2018 21:59:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 19 16:59:50 2018
Received: from localhost ([127.0.0.1]:55190 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gZjsa-00053V-0Y
	for submit <at> debbugs.gnu.org; Wed, 19 Dec 2018 16:59:50 -0500
Received: from indri.birch.relay.mailchannels.net ([23.83.209.92]:26532)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1gZjsY-00053N-L8
 for 33799 <at> debbugs.gnu.org; Wed, 19 Dec 2018 16:59:47 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 05243123B0D;
 Wed, 19 Dec 2018 21:59:45 +0000 (UTC)
Received: from pdx1-sub0-mail-a54.g.dreamhost.com (unknown [100.96.35.77])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id B65FA123E2F;
 Wed, 19 Dec 2018 21:59:44 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a54.g.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.16.2); Wed, 19 Dec 2018 21:59:44 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Soft-Drop: 6708cb7d7d0ef7e9_1545256784833_1310182480
X-MC-Loop-Signature: 1545256784832:3990609468
X-MC-Ingress-Time: 1545256784832
Received: from pdx1-sub0-mail-a54.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTP id 70C728039C;
 Wed, 19 Dec 2018 13:59:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type; s=linkov.net; bh=j/Y522XZukRat+IJi6UsLFb4W8k=; b=
 flOesAIMw9Wr4ee/sDLZ1OQu5JVhMiyzX9hZNIsDFr7YW/i3ZmiI/jOLm4T/VYHv
 Ex8755DxeVlILWfrmuhlZKewwET6yiLw18i1ze4gD252m8e8sVR0o02VQl9O6//3
 DtzzbHb6bXrr7HC6YDJtOMcGOW2rcpXz/OdIcUx3fpI=
Received: from mail.jurta.org (m91-129-106-79.cust.tele2.ee [91.129.106.79])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTPSA id 8F0ED803B7;
 Wed, 19 Dec 2018 13:59:41 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a54
From: Juri Linkov <juri@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#33799: 27.0.50;
 set-foreground-color completion shows background colors
Organization: LINKOV.NET
References: <875zvqz8om.fsf@HIDDEN> <5aftutcptc.fsf@HIDDEN>
Date: Wed, 19 Dec 2018 23:34:54 +0200
In-Reply-To: <5aftutcptc.fsf@HIDDEN> (Glenn Morris's message of
 "Wed, 19 Dec 2018 13:51:59 -0500")
Message-ID: <87lg4lnvwp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: 0
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudejtddgudehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdeirdejleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdeirdejledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehrghhmsehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 33799
Cc: 33799 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> 1. M-x set-foreground-color RET TAB
>>
>> shows a completion list of colors with different backgrounds, not
>> foregrounds as it would be natural to expect
>
> Very lightly tested:
>
>    (mapcar
>     (lambda (color-name)
> -     (let ((foreground (readable-foreground-color color-name))
> -	   (color      (copy-sequence color-name)))
> -       (propertize color 'face (list :foreground foreground
> -				     :background color))))
> +     (let ((readable (readable-foreground-color color-name))
> +	   (color (copy-sequence color-name)))
> +       (propertize color 'face
> +		   (if foreground
> +		       (list :foreground color)
> +		     (list :foreground readable :background color)))))

I don't know if readable background is needed for set-foreground-color
like readable foreground is used for set-background-color.  I think
your change to not use readable background is more correct because
then the user will see how the selected color will fit with the background.
This helps to select a suitable combination of foreground/background
colors.  The same way maybe readable foreground should be removed
from the completions of set-background-color.  This would allow to see
how the current foreground color will look on different backgrounds
in the completion list.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33799; Package emacs. Full text available.

Message received at 33799 <at> debbugs.gnu.org:


Received: (at 33799) by debbugs.gnu.org; 19 Dec 2018 18:52:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 19 13:52:13 2018
Received: from localhost ([127.0.0.1]:55090 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gZgx2-0000FY-Kw
	for submit <at> debbugs.gnu.org; Wed, 19 Dec 2018 13:52:12 -0500
Received: from eggs.gnu.org ([208.118.235.92]:58562)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1gZgx1-0000FK-RL
 for 33799 <at> debbugs.gnu.org; Wed, 19 Dec 2018 13:52:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1gZgwv-0006n6-3Q
 for 33799 <at> debbugs.gnu.org; Wed, 19 Dec 2018 13:52:06 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43997)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1gZgwp-0006l0-Ti; Wed, 19 Dec 2018 13:52:01 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1gZgwp-0007Sd-PX; Wed, 19 Dec 2018 13:51:59 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#33799: 27.0.50;
 set-foreground-color completion shows background colors
References: <875zvqz8om.fsf@HIDDEN>
X-Spook: Tehrik-i-Taliban Pakistan Arnett Influenza DES Power
X-Ran: /<[{md^PTPS)]`4\'OII|llu&.N:jT#(A)*vxJYz$HNz%]z0"&b^y~H)=c$'=^;x-?h*uN
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 19 Dec 2018 13:51:59 -0500
In-Reply-To: <875zvqz8om.fsf@HIDDEN> (Juri Linkov's message of "Wed, 
 19 Dec 2018 02:01:13 +0200")
Message-ID: <5aftutcptc.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 33799
Cc: 33799 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Juri Linkov wrote:

> 0. emacs -Q
>
> 1. M-x set-foreground-color RET TAB
>
> shows a completion list of colors with different backgrounds, not
> foregrounds as it would be natural to expect

Very lightly tested:


--- i/lisp/faces.el
+++ w/lisp/faces.el
@@ -1838,18 +1838,21 @@ defined-colors
     (mapcar 'car (tty-color-alist frame))))
 (defalias 'x-defined-colors 'defined-colors)
 
-(defun defined-colors-with-face-attributes (&optional frame)
+(defun defined-colors-with-face-attributes (&optional frame foreground)
   "Return a list of colors supported for a particular frame.
 See `defined-colors' for arguments and return value. In contrast
 to `define-colors' the elements of the returned list are color
 strings with text properties, that make the color names render
-with the color they represent as background color."
+with the color they represent as background (or foreground if
+optional argument FOREGROUND is no-nil) color. "
   (mapcar
    (lambda (color-name)
-     (let ((foreground (readable-foreground-color color-name))
-	   (color      (copy-sequence color-name)))
-       (propertize color 'face (list :foreground foreground
-				     :background color))))
+     (let ((readable (readable-foreground-color color-name))
+	   (color (copy-sequence color-name)))
+       (propertize color 'face
+		   (if foreground
+		       (list :foreground color)
+		     (list :foreground readable :background color)))))
    (defined-colors frame)))
 
 (defun readable-foreground-color (color)
@@ -1935,7 +1938,8 @@ display-grayscale-p
      (t
       (> (tty-color-gray-shades display) 2)))))
 
-(defun read-color (&optional prompt convert-to-RGB allow-empty-name msg)
+(defun read-color (&optional prompt convert-to-RGB allow-empty-name msg
+			     foreground)
   "Read a color name or RGB triplet.
 Completion is available for color names, but not for RGB triplets.
 
@@ -1962,14 +1966,19 @@ read-color
 to enter an empty color name (the empty string).
 
 Interactively, or with optional arg MSG non-nil, print the
-resulting color name in the echo area."
+resulting color name in the echo area.
+
+Interactively, displays a list of colored completions.  If optional
+argument FOREGROUND is non-nil, shows them as foregrounds, otherwise
+as backgrounds."
   (interactive "i\np\ni\np")    ; Always convert to RGB interactively.
   (let* ((completion-ignore-case t)
 	 (colors (or facemenu-color-alist
 		     (append '("foreground at point" "background at point")
 			     (if allow-empty-name '(""))
                              (if (display-color-p)
-                                 (defined-colors-with-face-attributes)
+                                 (defined-colors-with-face-attributes
+				   nil foreground)
                                (defined-colors)))))
 	 (color (completing-read
 		 (or prompt "Color (name or #RGB triplet): ")
diff --git i/lisp/frame.el w/lisp/frame.el
index 56b8c54..f056b6d 100644
--- i/lisp/frame.el
+++ w/lisp/frame.el
@@ -1335,7 +1335,7 @@ set-foreground-color
   "Set the foreground color of the selected frame to COLOR-NAME.
 When called interactively, prompt for the name of the color to use.
 To get the frame's current foreground color, use `frame-parameters'."
-  (interactive (list (read-color "Foreground color: ")))
+  (interactive (list (read-color "Foreground color: " nil nil nil t)))
   (modify-frame-parameters (selected-frame)
 			   (list (cons 'foreground-color color-name)))
   (or window-system




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33799; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Dec 2018 00:02:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 18 19:02:34 2018
Received: from localhost ([127.0.0.1]:53867 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gZPJq-0005MB-3w
	for submit <at> debbugs.gnu.org; Tue, 18 Dec 2018 19:02:34 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38486)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1gZPJo-0005Lz-PX
 for submit <at> debbugs.gnu.org; Tue, 18 Dec 2018 19:02:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <juri@HIDDEN>) id 1gZPJe-0006xv-Un
 for submit <at> debbugs.gnu.org; Tue, 18 Dec 2018 19:02:24 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:54694)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1gZPJd-0006x3-Mf
 for submit <at> debbugs.gnu.org; Tue, 18 Dec 2018 19:02:22 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48075)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <juri@HIDDEN>) id 1gZPJc-0004Wj-T0
 for bug-gnu-emacs@HIDDEN; Tue, 18 Dec 2018 19:02:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <juri@HIDDEN>) id 1gZPJW-0006rP-P4
 for bug-gnu-emacs@HIDDEN; Tue, 18 Dec 2018 19:02:18 -0500
Received: from firebrick.maple.relay.mailchannels.net ([23.83.214.59]:33111)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1gZPJW-0006oJ-4L
 for bug-gnu-emacs@HIDDEN; Tue, 18 Dec 2018 19:02:14 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 3CD7B68322E
 for <bug-gnu-emacs@HIDDEN>; Wed, 19 Dec 2018 00:02:09 +0000 (UTC)
Received: from pdx1-sub0-mail-a38.g.dreamhost.com (unknown [100.96.26.166])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 031F568324D
 for <bug-gnu-emacs@HIDDEN>; Wed, 19 Dec 2018 00:02:08 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a38.g.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.16.2); Wed, 19 Dec 2018 00:02:09 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Slimy-Shoe: 518a2db900571147_1545177729108_1745360522
X-MC-Loop-Signature: 1545177729108:4173955568
X-MC-Ingress-Time: 1545177729108
Received: from pdx1-sub0-mail-a38.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTP id 8D2C881DEF
 for <bug-gnu-emacs@HIDDEN>; Tue, 18 Dec 2018 16:02:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to
 :subject:date:message-id:mime-version:content-type; s=
 linkov.net; bh=GuzEUlCrhY1Iv5vABJka3zr6CmQ=; b=fEQYB8rsVRv+mYjmk
 1ZzJzQmaiREb/fs9IraFkTRURnybcv7b9r0d7hTO09jHH8H53lIoaqqeMhcoBSf/
 RfsmI623h1vLyFhz+ECe6J8623KJheFn83IpVwg2QG96hF4fPkMPoIDFEzPpIBat
 +ddDCTo/06+sZu/29zEi8OG8r8=
Received: from mail.jurta.org (m91-129-96-177.cust.tele2.ee [91.129.96.177])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTPSA id A6E6481DD7
 for <bug-gnu-emacs@HIDDEN>; Tue, 18 Dec 2018 16:02:07 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a38
From: Juri Linkov <juri@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; set-foreground-color completion shows background colors
Organization: LINKOV.NET
Date: Wed, 19 Dec 2018 02:01:13 +0200
Message-ID: <875zvqz8om.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: 0
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudeikedgudefudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdeliedrudejjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrudejjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

0. emacs -Q

1. M-x set-foreground-color RET TAB

shows a completion list of colors with different backgrounds, not
foregrounds as it would be natural to expect, so it is difficult to
decide what foreground color to select by looking at background colors.




Acknowledgement sent to Juri Linkov <juri@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#33799; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 20 Dec 2018 18:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.