From unknown Sun Jun 22 00:40:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40866 <40866@debbugs.gnu.org> To: bug#40866 <40866@debbugs.gnu.org> Subject: Status: customize-face obliterates obliterates elements of "face spec" alist. Reply-To: bug#40866 <40866@debbugs.gnu.org> Date: Sun, 22 Jun 2025 07:40:10 +0000 retitle 40866 customize-face obliterates obliterates elements of "face spec= " alist. reassign 40866 emacs submitter 40866 Alan Mackenzie severity 40866 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 07:30:39 2020 Received: (at submit) by debbugs.gnu.org; 26 Apr 2020 11:30:39 +0000 Received: from localhost ([127.0.0.1]:60993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSfUc-0000a0-9g for submit@debbugs.gnu.org; Sun, 26 Apr 2020 07:30:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:48639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSfUY-0000Wc-9D for submit@debbugs.gnu.org; Sun, 26 Apr 2020 07:30:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54002) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSfUX-00071J-OA for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 07:30:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSfUW-0005b0-MX for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 07:30:33 -0400 Received: from colin.muc.de ([193.149.48.1]:35390 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1jSfUV-0005Xv-TB for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 07:30:32 -0400 Received: (qmail 24718 invoked by uid 3782); 26 Apr 2020 11:30:25 -0000 Received: from acm.muc.de (p4FE15195.dip0.t-ipconnect.de [79.225.81.149]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Sun, 26 Apr 2020 13:30:24 +0200 Received: (qmail 18755 invoked by uid 1000); 26 Apr 2020 11:30:24 -0000 Date: Sun, 26 Apr 2020 11:30:24 +0000 To: bug-gnu-emacs@gnu.org Subject: customize-face obliterates obliterates elements of "face spec" alist. Message-ID: <20200426113024.GA18629@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/26 07:30:25 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Received-From: 193.149.48.1 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hello, Emacs. On master, when a face is set up for a single type of terminal, or several types of terminal, customize-face disregards this, and obliterates all members of the "face spec" alist except one, which is always t. For example, suppose we have either of these in a custom-set-faces list: '(font-lock-function-name-face ((((background dark)) (:foreground "cyan" :weight bold)) (t (:foreground "Blue1" :weight bold)))) '(font-lock-function-name-face ((((background dark)) (:foreground "cyan" :weight bold)))) . In a light backgrounded Emacs session (e.g. in X-Windows) run customize-face on font-lock-function-name-face. Make some change to the face and click on . The (background dark) element has now been obliterated, leaving (in either case): '(font-lock-function-name-face ((t (:foreground "Blue1" :weight bold)))) . This is a bug. customize-face should respect face settings which are inapplicable on the current terminal. ######################################################################### Related wish list item: To construct these terminal specific face specs, I had to edit the raw lisp in .emacs. It took me three tries before I got a valid spec. I seem to remember that at one point it was possible to add alternative face specs for other terminal types inside customize-face. Am I dreaming, or was this facility removed for some reason? It would be really nice if one could edit a face spec in full generality inside customize-face, obviating the need to mess with intricate raw lisp. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Fri May 01 08:33:58 2020 Received: (at 40866-done) by debbugs.gnu.org; 1 May 2020 12:33:58 +0000 Received: from localhost ([127.0.0.1]:48396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUUre-0005iz-MA for submit@debbugs.gnu.org; Fri, 01 May 2020 08:33:58 -0400 Received: from colin.muc.de ([193.149.48.1]:57092 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1jUUrc-0005ip-Dl for 40866-done@debbugs.gnu.org; Fri, 01 May 2020 08:33:57 -0400 Received: (qmail 17520 invoked by uid 3782); 1 May 2020 12:33:54 -0000 Received: from acm.muc.de (p4FE15DBE.dip0.t-ipconnect.de [79.225.93.190]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Fri, 01 May 2020 14:33:53 +0200 Received: (qmail 7528 invoked by uid 1000); 1 May 2020 12:33:53 -0000 Date: Fri, 1 May 2020 12:33:53 +0000 To: 40866-done@debbugs.gnu.org Subject: Re: bug#40866: customize-face obliterates obliterates elements of "face spec" alist. Message-ID: <20200501123353.GA7515@ACM> References: <20200426113024.GA18629@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40866-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Fixed in the master branch. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sun Jun 22 00:40:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 30 May 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator