From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Istvan Marko Newsgroups: gmane.emacs.bugs Subject: bug#32072: 27.0.50; clear-face-cache in an X frame breaks tty colors Date: Mon, 09 Jul 2018 00:17:27 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531120565 6633 195.159.176.226 (9 Jul 2018 07:16:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2018 07:16:05 +0000 (UTC) Cc: 32072@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 09:16:00 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcQOu-0001bS-DV for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 09:16:00 +0200 Original-Received: from localhost ([::1]:39596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcQR1-0006cd-F1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 03:18:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcQQv-0006cY-8r for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 03:18:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcQQs-0007oZ-1w for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 03:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43769) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcQQr-0007oS-U0 for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 03:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fcQQr-0001oc-LY for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 03:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Istvan Marko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jul 2018 07:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32072 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32072-submit@debbugs.gnu.org id=B32072.15311206556942 (code B ref 32072); Mon, 09 Jul 2018 07:18:01 +0000 Original-Received: (at 32072) by debbugs.gnu.org; 9 Jul 2018 07:17:35 +0000 Original-Received: from localhost ([127.0.0.1]:51666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcQQR-0001nt-Ah for submit@debbugs.gnu.org; Mon, 09 Jul 2018 03:17:35 -0400 Original-Received: from imarko.xen.prgmr.com ([71.19.158.228]:50820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcQQP-0001nh-J6 for 32072@debbugs.gnu.org; Mon, 09 Jul 2018 03:17:34 -0400 Original-Received: from localhost ([127.0.0.1] helo=zsu.kismala.com) by imarko.xen.prgmr.com with esmtp (Exim 4.90_1) (envelope-from ) id 1fcQQJ-0003GX-Fu; Mon, 09 Jul 2018 00:17:27 -0700 In-Reply-To: <83muv3jwcw.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:148370 Archived-At: Eli Zaretskii writes: > Can you tell more about what "messed-up" means? E.g., what do you see > if you type "M-x list-colors-display RET" in a TTY frame after > invoking clear-face-cache on a GUI frame? Interestingly the colors of list-colors-display remain intact (except for the modeline). list-faces-display however shows the problem. Here are some screenshots with the M-x list-faces-display buffer from an emacs-client -t frame on a 256 color terminal before and after running clear-face-cache in the X11 frame. Normal: https://i.imgur.com/QPUbARN.png Bad: https://i.imgur.com/080IjKI.png Note that some colors are retained, for example the background of tty-menu-selected-face which is "red", a color that exists on 16 color terminals too. > Or do you mean that a _second_ call to clear-face-cache fixes the TTY > frames? Yes, this. Calling clear-face-cache again, this time from the 256 color TTY frame, fixes the TTY frames. > If the latter, does it matter what frame is selected when you issue > that second call? Yes, the second call only helps if it's done while the 256 color TTY frame is the active one. > What if you invoke clear-face-cache, and then type "M-x redraw-display > RET" in a TTY frame -- does that still show "messed-up" colors? M-x redraw-display in the tty frame does not help. > "Black or green"? So the effect is not entirely deterministic? I think it's deterministic but may have a couple of variations depending on the state of my Emacs session or the terminal. I haven't figured out > Do you see this in Emacs 26 as well, or only on the master branch? Yes, I see this with both 26 and master. I am fairly sure that this wasn't happening about 2 years ago. Perhaps it started when I switched from 25 to 26 but not sure. I am having trouble building an old enough version on my current Linux system to verify but if we get stuck I will find a way to build it and try to bisect. -- Istvan