From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Temporarily overriding cursor color? Date: Thu, 05 Feb 2015 18:18:44 +0200 Message-ID: <83386kfi1n.fsf@gnu.org> References: <87wq3wzf1t.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423153139 18928 80.91.229.3 (5 Feb 2015 16:18:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 16:18:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 05 17:18:58 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YJP8s-0005ku-Dd for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 17:18:58 +0100 Original-Received: from localhost ([::1]:42924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJP8r-0000Bg-QH for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2015 11:18:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJP8o-000094-6l for emacs-devel@gnu.org; Thu, 05 Feb 2015 11:18:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJP8n-0007Kh-Fe for emacs-devel@gnu.org; Thu, 05 Feb 2015 11:18:54 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:43850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJP8j-0007Jk-MZ; Thu, 05 Feb 2015 11:18:49 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NJB00I003E09O00@mtaout24.012.net.il>; Thu, 05 Feb 2015 18:10:35 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJB00CQV3LNRL50@mtaout24.012.net.il>; Thu, 05 Feb 2015 18:10:35 +0200 (IST) In-reply-to: <87wq3wzf1t.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182457 Archived-At: > From: David Kastrup > Date: Thu, 05 Feb 2015 14:03:10 +0100 > > > (let ((cookie (face-remap-add-relative 'cursor :background "red"))) > (recursive-edit) > (face-remap-remove-relative cookie)) > > does not appear to do anything. Any idea why? 'cursor' is not really a face used by the Emacs display. It's more like a handle to inject the 'cursor-color' parameter into a frame's parameter alist. And there's no code to do that when you remap the 'cursor' face, so the above has no effect. By contrast, when you use (for example) set-face-background to change the 'cursor' face, that function eventually calls get_lface_attributes, which handles this face specially, see there.