From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71829: 31.0.50; face-remap does not work with cursor Date: Sat, 29 Jun 2024 11:01:05 +0300 Message-ID: <86le2ojhz2.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40587"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71829@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 29 10:02:36 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sNT2Z-000AMe-O4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jun 2024 10:02:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNT24-0004xY-EF; Sat, 29 Jun 2024 04:02:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNT23-0004xB-FB for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 04:02:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNT23-0007ZC-39 for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 04:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNT22-0007lN-Ca for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 04:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jun 2024 08:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71829 X-GNU-PR-Package: emacs Original-Received: via spool by 71829-submit@debbugs.gnu.org id=B71829.171964807729773 (code B ref 71829); Sat, 29 Jun 2024 08:02:02 +0000 Original-Received: (at 71829) by debbugs.gnu.org; 29 Jun 2024 08:01:17 +0000 Original-Received: from localhost ([127.0.0.1]:36931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNT1I-0007k8-NC for submit@debbugs.gnu.org; Sat, 29 Jun 2024 04:01:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNT1G-0007jp-K6; Sat, 29 Jun 2024 04:01:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNT1B-0007KL-KQ; Sat, 29 Jun 2024 04:01:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dqbZOjogb0xpbTnaO+tNfZsRfKvRC/M1OfGqOQTLwCk=; b=mFRnSCD40LPY hNm0zuwHPmdBJytfuSWCaoooTwonrmzUjiiM/8GUJEge7py6VnysVWVeTd7Pefvdab8IjKUcxPOoc q+EAryNUDQWzHd+hOCU1aZwbTrgO4U1B/YikWJoBl3BFz9D8JsOzbDxlzy9mCpu2hOTu3grJjiill +XPFt0xR2YqeafCDGtZaYN3LCesLSdY2m2r+l60hxmFFHeaaFjWhbXm1dcUywlYNOO1hcjcc49+M4 2GW0WGbUDUO1LMfJmhLItB5Do4txz6KPCwwN4g1U/I2QaNzus3wKJbCp0puYJ0MtcNfUiDxBiss5i gltS9My3+8BS7ilLpd1edw==; In-Reply-To: (message from Aaron Jensen on Fri, 28 Jun 2024 22:12:58 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288100 Archived-At: severity 71829 wishlist thanks > From: Aaron Jensen > Date: Fri, 28 Jun 2024 22:12:58 -0400 > > > Neither face-remap-set-base, nor face-remap-add-relative appear to work > with the cursor face. > > (face-remap-set-base 'cursor :background "red") > (face-remap-add-relative 'default :background "red") The 'cursor' face is not a usual face, see its doc string. The reason is that cursor is drawn differently from buffer text, and is in general much more at the control of the GUI backend. Changing the background color of the 'cursor' face just changes the cursor-color parameter of the frame, and that's all; we never consul the faces when drawing the cursor. Thus, the face-remapping feature is not really in effect for it, and I'm not sure it should be, given how differently the cursor is drawn (as opposed to buffer text). Bottom line: I don't see a bug here, perhaps a missing feature, and personally I don't think we should provide this missing feature, because doing so will need to resolve the non-trivial mess with several ways we provide for changing the color of the cursor: the face, the frame parameter, and the x-cursor-fore-pixel variable.