GNU logs - #43396, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Teemu Likonen <tlikonen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 14 Sep 2020 13:24:02 +0000
Resent-Message-ID: <handler.43396.B.160008983919690 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 43396 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.160008983919690
          (code B ref -1); Mon, 14 Sep 2020 13:24:02 +0000
Received: (at submit) by debbugs.gnu.org; 14 Sep 2020 13:23:59 +0000
Received: from localhost ([127.0.0.1]:53122 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kHoSd-00057V-2G
	for submit <at> debbugs.gnu.org; Mon, 14 Sep 2020 09:23:59 -0400
Received: from lists.gnu.org ([209.51.188.17]:49034)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tlikonen@HIDDEN>) id 1kHoSa-00057N-64
 for submit <at> debbugs.gnu.org; Mon, 14 Sep 2020 09:23:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53954)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tlikonen@HIDDEN>) id 1kHoSa-0000DZ-04
 for bug-gnu-emacs@HIDDEN; Mon, 14 Sep 2020 09:23:56 -0400
Received: from meesny.iki.fi ([195.140.195.201]:41270)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tlikonen@HIDDEN>) id 1kHoSW-0008Jw-Ke
 for bug-gnu-emacs@HIDDEN; Mon, 14 Sep 2020 09:23:55 -0400
Received: from mithlond (mobile-access-5d6a6f-102.dhcp.inet.fi
 [93.106.111.102])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: tlikonen)
 by meesny.iki.fi (Postfix) with ESMTPSA id D32B12021D
 for <bug-gnu-emacs@HIDDEN>; Mon, 14 Sep 2020 16:23:47 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny;
 t=1600089827;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=pm1C22yJTAEmJwW0dGaLSx1AZItsIGtRQ6UOCGZGWGI=;
 b=LAb5wV1IJl5yL/GHfsy9Naj2ParnETC1uV7cYrk2uT5bKs4V8L6D7DfMx/O+hvFQex7Mp6
 RYsfs9dMC5R0B7y03hfnpApTmyuSK0bkL5ruo3SIbZFIUTf29rmcjSYtplu5WDLgTI8zaP
 wrk4Z0Ec+RZ+VQ+obOyGGpNwN6SDfbM=
From: Teemu Likonen <tlikonen@HIDDEN>
Date: Mon, 14 Sep 2020 16:23:39 +0300
Message-ID: <875z8g331g.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
 s=meesny; t=1600089827;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=pm1C22yJTAEmJwW0dGaLSx1AZItsIGtRQ6UOCGZGWGI=;
 b=YqSO7oAdgzL1VtBhD3fW8xOfD0uGOVFn90wcB39lzRWEHwCvc5fjHHjdIeXoihBhpKTod/
 ziHSTysHlHr4Yjxq64C1GNtgiD0FsVBb/wwd4i/ZgJ3dRHxqdBmV/g7bsemBg7xqULDYET
 mkYHaL7QQfF2U6nShNTOlfQAcCyMHjk=
ARC-Seal: i=1; s=meesny; d=iki.fi; t=1600089827; a=rsa-sha256; cv=none;
 b=wma+puusGOAj0mZVCH9KZ2vah6uouo4DaQCENEgp6cRyzQMhZY9ywQ9TTVJRibzb/iIK/D
 HBdVYwqlsBxFqd2gvDQXZ4fTuDLnSbFWWjXaxPIc0ajcpoEPHWm4iGAdpZyjVTCWkYKFMx
 RbmG+ywkG3y4rybj9CJtFXI2BbTuxyg=
ARC-Authentication-Results: i=1; ORIGINATING;
 auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@HIDDEN
Received-SPF: pass client-ip=195.140.195.201; envelope-from=tlikonen@HIDDEN;
 helo=meesny.iki.fi
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/14 09:23:48
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x [generic]
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
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: -2.6 (--)

The "cursor" face's background attribute can be customized to change
text cursor's color. However, customized cursor does not have any effect
in Emacs session which is started with "emacs --daemon" in KDE Plasma
desktop system.

I can reliably reproduce this with these steps:


 1. Create Emacs init file ("~/.emacs.el") with the following content:

        (custom-set-faces
         '(cursor ((t (:background "#0f0")))))

 2. Start "emacs" in normal mode to see that the cursor is green (#0f0).
    Close this Emacs session.

 3. Start Emacs in daemon mode and open a client session:

        $ emacs --daemon=test
        $ emacsclient -c -s test

    This client session has black cursor, not green. (Stop the
    session: M-x kill-emacs RET)


I would expect to see green (#0f0) cursor in Emacs daemon's client
sessions too.



In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
 of 2020-08-09 built on mithlond
Repository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8
Repository branch: emacs-27
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)

Recent messages:
Loading /home/dtw/.emacs.d/omat/asetukset/org-kalenteri.el (source)...done
Loading /home/dtw/.emacs.d/omat/asetukset/posti.el (source)...done
Loading /home/dtw/.emacs.d/omat/asetukset/wcheck.el (source)...done
Loading /home/dtw/.emacs.d/omat/asetukset/latex.el (source)...done
Loading /home/dtw/.emacs.d/omat/asetukset/tulostus.el (source)...done
Loading /home/dtw/.emacs.d/omat/asetukset/sekalaiset.el (source)...done
Loading /home/dtw/.emacs.d/omat/asetukset/funktiot.el (source)...done
Loading /home/dtw/.emacs.d/omat/asetukset/korjauksia.el (source)...done
Starting Emacs daemon.
When done with this frame, type C-x 5 0

Configured using:
 'configure --prefix=/usr/local --with-x-toolkit=gtk3 --with-xwidgets
 --with-wide-int --without-compress-install'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS
LIBSYSTEMD PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: fi_FI.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix

Major mode: Text

Minor modes in effect:
  winner-mode: t
  show-paren-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  icomplete-mode: t
  fido-mode: t
  cl-old-struct-compat-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  window-divider-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Load-path shadows:
~/.emacs.d/omat/elisp/loaddefs hides /usr/local/share/emacs/27.1/lisp/loaddefs

Features:
(shadow sort mail-extr emacsbug sendmail notmuch hl-line notmuch-tree
notmuch-jump notmuch-hello wid-edit notmuch-show notmuch-print
notmuch-crypto notmuch-mua notmuch-message notmuch-draft
notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser
notmuch-wash diff-mode easy-mmode coolj notmuch-query goto-addr
thingatpt icalendar diary-lib diary-loaddefs suomalainen-kalenteri solar
cal-dst holidays hol-loaddefs cal-menu calendar cal-loaddefs notmuch-tag
crm notmuch-lib notmuch-version notmuch-compat mm-view mml-smime smime
dig mailcap server rx message rmc puny dired dired-loaddefs format-spec
rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail
rmail-loaddefs text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr mailabbrev mail-utils gmm-utils mailheader edmacro kmacro
TL-theme winner ring paren undo-tree diff icomplete cus-start cus-load
tex-site slime-autoloads info package easymenu browse-url url-handlers
url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting xwidget-internal move-toolbar
gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 112103 10686)
 (symbols 48 13029 1)
 (strings 32 36830 2633)
 (string-bytes 1 1251488)
 (vectors 16 18840)
 (vector-slots 8 236189 4680)
 (floats 8 409 365)
 (intervals 56 316 0)
 (buffers 1000 14))


-- 
/// Teemu Likonen - .-.. http://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Teemu Likonen <tlikonen@HIDDEN>
Subject: bug#43396: Acknowledgement (27.1; Customized "cursor" face has no
 effect in daemon mode)
Message-ID: <handler.43396.B.160008983919690.ack <at> debbugs.gnu.org>
References: <875z8g331g.fsf@HIDDEN>
X-Gnu-PR-Message: ack 43396
X-Gnu-PR-Package: emacs
Reply-To: 43396 <at> debbugs.gnu.org
Date: Mon, 14 Sep 2020 13:24:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 43396 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
43396: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D43396
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 14 Sep 2020 15:34:01 +0000
Resent-Message-ID: <handler.43396.B43396.160009761820721 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Teemu Likonen <tlikonen@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.160009761820721
          (code B ref 43396); Mon, 14 Sep 2020 15:34:01 +0000
Received: (at 43396) by debbugs.gnu.org; 14 Sep 2020 15:33:38 +0000
Received: from localhost ([127.0.0.1]:55927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kHqU5-0005O9-ML
	for submit <at> debbugs.gnu.org; Mon, 14 Sep 2020 11:33:37 -0400
Received: from eggs.gnu.org ([209.51.188.92]:38074)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1kHqU4-0005Nw-8M
 for 43396 <at> debbugs.gnu.org; Mon, 14 Sep 2020 11:33:36 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54195)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1kHqTw-0004FH-Dw; Mon, 14 Sep 2020 11:33:30 -0400
Received: from [176.228.60.248] (port=4410 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1kHqTt-0000kn-RN; Mon, 14 Sep 2020 11:33:28 -0400
Date: Mon, 14 Sep 2020 18:33:31 +0300
Message-Id: <83o8m89xv8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <875z8g331g.fsf@HIDDEN> (message from Teemu Likonen on Mon, 14
 Sep 2020 16:23:39 +0300)
References: <875z8g331g.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

> From: Teemu Likonen <tlikonen@HIDDEN>
> Date: Mon, 14 Sep 2020 16:23:39 +0300
> 
> The "cursor" face's background attribute can be customized to change
> text cursor's color. However, customized cursor does not have any effect
> in Emacs session which is started with "emacs --daemon" in KDE Plasma
> desktop system.

I think you need to do that in server-after-make-frame-hook instead,
to make it work in a daemon session.  When the daemon reads your init
file, it doesn't have a GUI frame to play with, so some
display-related customizations don't work until there's a frame.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Teemu Likonen <tlikonen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 14 Sep 2020 15:59:02 +0000
Resent-Message-ID: <handler.43396.B43396.160009910022975 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.160009910022975
          (code B ref 43396); Mon, 14 Sep 2020 15:59:02 +0000
Received: (at 43396) by debbugs.gnu.org; 14 Sep 2020 15:58:20 +0000
Received: from localhost ([127.0.0.1]:55952 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kHqrz-0005yU-KB
	for submit <at> debbugs.gnu.org; Mon, 14 Sep 2020 11:58:19 -0400
Received: from meesny.iki.fi ([195.140.195.201]:51372)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tlikonen@HIDDEN>) id 1kHqrw-0005yK-1i
 for 43396 <at> debbugs.gnu.org; Mon, 14 Sep 2020 11:58:18 -0400
Received: from mithlond (mobile-access-5d6a6f-102.dhcp.inet.fi
 [93.106.111.102])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: tlikonen)
 by meesny.iki.fi (Postfix) with ESMTPSA id 4D8A02017D;
 Mon, 14 Sep 2020 18:58:14 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny;
 t=1600099094;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=dVHeZTJt/6nRfxjGM+BPeMK+alOAGYZ3l/aK+X3TByU=;
 b=EnXT0auPPVYOVNtkzlICPt2mjQ/Xt7uYeim4CQHMR6F/UW6YNzcSao27R8qHZMmcs2KRtc
 lLAVm3DD3DPUf4vF0GvVakP2O1n7aaljFdVlaQ7ynX6VTz1/jb0Hdb8dnBdpTs4k1lNy+S
 4A+IXn7thDD10sf6fyWCrk+KSNmZGWs=
From: Teemu Likonen <tlikonen@HIDDEN>
In-Reply-To: <83o8m89xv8.fsf@HIDDEN>
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
Date: Mon, 14 Sep 2020 18:58:05 +0300
Message-ID: <87mu1sxsdu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
 s=meesny; t=1600099094;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=dVHeZTJt/6nRfxjGM+BPeMK+alOAGYZ3l/aK+X3TByU=;
 b=ZUa5ZNhFWqzknftQSXVktu6ipjhiaOiDSheScqdOOq/5xImcrsqeMzFoJ8sqT2PyADVXS3
 6EA4XIJrsp1tepryBXdLsqdUKmNQO/wwce/qWB4dTXzWn0yLPETKoncQDukmfh1ffZn2r7
 d+v071oOBJZ4gK9pAMgLO5s8bz+cfr0=
ARC-Seal: i=1; s=meesny; d=iki.fi; t=1600099094; a=rsa-sha256; cv=none;
 b=vU/mOpZobaxnZFkFJ2qnP7IhSxFW/t0Y1nmZP+7eNVjPOMg9GXykn3N7Jyn3qDwUDyhcPn
 2DQd0lX5fUv9YNVJ9mA6GvVbvvDAxT9htEcfgKUNoWp177Ir8+jwQoglsA0U0kv3tT4Ng3
 RpGEd/4KzRNouLeVKa+eN4So395bUR0=
ARC-Authentication-Results: i=1; ORIGINATING;
 auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@HIDDEN
X-Spam-Score: 0.0 (/)
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 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

* 2020-09-14 18:33:31+03, Eli Zaretskii wrote:

> I think you need to do that in server-after-make-frame-hook instead,
> to make it work in a daemon session. When the daemon reads your init
> file, it doesn't have a GUI frame to play with, so some
> display-related customizations don't work until there's a frame.

Thanks for the info. My quick fix with (when (daemonp) ...) works too,
and it happens before creating any frames.


    ;;; ~/.emacs.d/init.el

    (setq custom-file "~/.emacs.d/custom.el")
    (load custom-file)

    (when (daemonp)
      (face-spec-set 'cursor '((((background dark)) :background "#fafafa")
                               (((background light)) :background "black"))))

=2D-=20
/// Teemu Likonen - .-.. http://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCX1+TDRAcdGxpa29uZW5A
aWtpLmZpAAoJEK2ddavulMJzV44BAO89Av+s3uJ+iTsyuUv0RZsrtXe3v0dsL4fA
pVA7gK5MAP9TFqqNqlnLl3NdFQVd3myFxZhlfolBuO4xjG2Vyfc9Aw==
=w4ho
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 12 Jun 2021 12:23:01 +0000
Resent-Message-ID: <handler.43396.B43396.162350055826623 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, Teemu Likonen <tlikonen@HIDDEN>
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162350055826623
          (code B ref 43396); Sat, 12 Jun 2021 12:23:01 +0000
Received: (at 43396) by debbugs.gnu.org; 12 Jun 2021 12:22:38 +0000
Received: from localhost ([127.0.0.1]:40511 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ls2es-0006vK-HC
	for submit <at> debbugs.gnu.org; Sat, 12 Jun 2021 08:22:38 -0400
Received: from quimby.gnus.org ([95.216.78.240]:41800)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ls2er-0006v3-8d
 for 43396 <at> debbugs.gnu.org; Sat, 12 Jun 2021 08:22:38 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=RfDhqbw6o1xN1iYBJ6yNhAOx0UITSjOPV+0gRyr4G2I=; b=dkSzVOMWEzo6C33C/uPzwuKkCO
 si5znqrtrpoAQseatBVO+lDS4Yx8TabwN+AJfChHTq7ExZYQOuhkN8xd+1FTWRfq6cCiXdTcqbgVD
 QRB20/jWXzVxWJ1KvzHEzLsa+gQuensuHu6tRMH1l3S4TvEjs+WDT2A3Qk+HYJzYqnTw=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ls2ei-0005Zv-IG; Sat, 12 Jun 2021 14:22:31 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
X-Now-Playing: Colored Music's _Individual Beauty_: "After The Intelligence"
Date: Sat, 12 Jun 2021 14:22:28 +0200
In-Reply-To: <83o8m89xv8.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 14 Sep
 2020 18:33:31 +0300")
Message-ID: <87zgvv6znf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: >> The "cursor" face's
 background attribute can be customized to change >> text cursor's color.
 However, customized cursor does not have any effect >> in Emacs session which
 is started with "emacs --d [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -0.7 (/)
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.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> The "cursor" face's background attribute can be customized to change
>> text cursor's color. However, customized cursor does not have any effect
>> in Emacs session which is started with "emacs --daemon" in KDE Plasma
>> desktop system.
>
> I think you need to do that in server-after-make-frame-hook instead,
> to make it work in a daemon session.  When the daemon reads your init
> file, it doesn't have a GUI frame to play with, so some
> display-related customizations don't work until there's a frame.

Is this a bug, or just how this has to work?  If it's the latter --
should this be documented more thoroughly?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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


Received: (at control) by debbugs.gnu.org; 12 Jun 2021 12:22:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 12 08:22:43 2021
Received: from localhost ([127.0.0.1]:40514 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ls2ew-0006vb-QI
	for submit <at> debbugs.gnu.org; Sat, 12 Jun 2021 08:22:42 -0400
Received: from quimby.gnus.org ([95.216.78.240]:41814)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ls2ev-0006vB-RA
 for control <at> debbugs.gnu.org; Sat, 12 Jun 2021 08:22:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc:
 MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=LoEzqpEC4sEzi3ooUz3mhmipvhn5kJckKoze0iQ4a/Q=; b=qHdQxR9109AGwF+sVk6CiY2G1b
 HY9SzaktPZ/iZvK6wQBxl6UIQsaaZPj5HAS5UDe3yf6hb8W4TmFQ7dE2vplO9GxhF7N+ZUE41cVug
 RTrD9Ja+iZzrItEmXH+pNtX5qNZo0phVwLIzjbTi7vg/J9OCbxDMIpEQJuufgqVs25Oo=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1ls2eo-0005a7-F6
 for control <at> debbugs.gnu.org; Sat, 12 Jun 2021 14:22:36 +0200
Date: Sat, 12 Jun 2021 14:22:34 +0200
Message-Id: <87y2bf6zn9.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: control message for bug #43396
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  tags 43396 + moreinfo quit 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: control
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.7 (-)

tags 43396 + moreinfo
quit





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 12 Jun 2021 12:48:02 +0000
Resent-Message-ID: <handler.43396.B43396.162350207413512 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, tlikonen@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162350207413512
          (code B ref 43396); Sat, 12 Jun 2021 12:48:02 +0000
Received: (at 43396) by debbugs.gnu.org; 12 Jun 2021 12:47:54 +0000
Received: from localhost ([127.0.0.1]:40550 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ls33K-0003Vs-7o
	for submit <at> debbugs.gnu.org; Sat, 12 Jun 2021 08:47:54 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35004)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ls33I-0003Vc-5t
 for 43396 <at> debbugs.gnu.org; Sat, 12 Jun 2021 08:47:52 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:39620)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1ls33B-0006wU-KM; Sat, 12 Jun 2021 08:47:45 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1572
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ls33B-0006GA-8a; Sat, 12 Jun 2021 08:47:45 -0400
Date: Sat, 12 Jun 2021 15:47:36 +0300
Message-Id: <83eed78d1z.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87zgvv6znf.fsf@HIDDEN> (message from Lars Ingebrigtsen on Sat, 
 12 Jun 2021 14:22:28 +0200)
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: Teemu Likonen <tlikonen@HIDDEN>,  43396 <at> debbugs.gnu.org
> Date: Sat, 12 Jun 2021 14:22:28 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> The "cursor" face's background attribute can be customized to change
> >> text cursor's color. However, customized cursor does not have any effect
> >> in Emacs session which is started with "emacs --daemon" in KDE Plasma
> >> desktop system.
> >
> > I think you need to do that in server-after-make-frame-hook instead,
> > to make it work in a daemon session.  When the daemon reads your init
> > file, it doesn't have a GUI frame to play with, so some
> > display-related customizations don't work until there's a frame.
> 
> Is this a bug, or just how this has to work?

Frankly, I'm not sure.  Given the workaround the OP posted, it sounds
like it could be a subtle bug somewhere: custom-set-faces doesn't seem
to call face-set-spec in the daemon case.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 13 Jun 2021 07:57:02 +0000
Resent-Message-ID: <handler.43396.B43396.162357101126615 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: tlikonen@HIDDEN
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162357101126615
          (code B ref 43396); Sun, 13 Jun 2021 07:57:02 +0000
Received: (at 43396) by debbugs.gnu.org; 13 Jun 2021 07:56:51 +0000
Received: from localhost ([127.0.0.1]:42563 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lsKzD-0006vD-Dn
	for submit <at> debbugs.gnu.org; Sun, 13 Jun 2021 03:56:51 -0400
Received: from eggs.gnu.org ([209.51.188.92]:52354)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lsKzC-0006v1-JB
 for 43396 <at> debbugs.gnu.org; Sun, 13 Jun 2021 03:56:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36552)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lsKz7-0005Jv-3s; Sun, 13 Jun 2021 03:56:45 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4887
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1lsKz6-0003Q7-Ne; Sun, 13 Jun 2021 03:56:45 -0400
Date: Sun, 13 Jun 2021 10:56:40 +0300
Message-Id: <83tum26vuv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <83eed78d1z.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 12
 Jun 2021 15:47:36 +0300)
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

> Date: Sat, 12 Jun 2021 15:47:36 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> Cc: 43396 <at> debbugs.gnu.org, tlikonen@HIDDEN
> 
> > > I think you need to do that in server-after-make-frame-hook instead,
> > > to make it work in a daemon session.  When the daemon reads your init
> > > file, it doesn't have a GUI frame to play with, so some
> > > display-related customizations don't work until there's a frame.
> > 
> > Is this a bug, or just how this has to work?
> 
> Frankly, I'm not sure.  Given the workaround the OP posted, it sounds
> like it could be a subtle bug somewhere: custom-set-faces doesn't seem
> to call face-set-spec in the daemon case.

First thing I'd like to know is: when the first GUI frame is created
by that daemon, is there a 'cursor-color' frame parameter in that
frame's parameters list?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Teemu Likonen <tlikonen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jun 2021 10:10:02 +0000
Resent-Message-ID: <handler.43396.B43396.162487498131954 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162487498131954
          (code B ref 43396); Mon, 28 Jun 2021 10:10:02 +0000
Received: (at 43396) by debbugs.gnu.org; 28 Jun 2021 10:09:41 +0000
Received: from localhost ([127.0.0.1]:51105 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxoCz-0008JK-LV
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 06:09:41 -0400
Received: from lahtoruutu.iki.fi ([185.185.170.37]:35288)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tlikonen@HIDDEN>) id 1lxoCx-0008JA-0r
 for 43396 <at> debbugs.gnu.org; Mon, 28 Jun 2021 06:09:40 -0400
Received: from mithlond (mobile-access-6df013-233.dhcp.inet.fi
 [109.240.19.233])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: tlikonen)
 by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 6F9F01B00058;
 Mon, 28 Jun 2021 13:09:36 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; 
 t=1624874976;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=IlZWa2hiDHytAfGnnk0OdNVqBONC83DshRFuVDpt9E8=;
 b=vb4xGYboKc+rgh6QAz8Fgny0GU3UzJdivI/fFsDfy1JdI/g8vB2Wd+attXWjERPkvsPdkU
 5TsRpn5UK+L3VmKvjYgNvye3/FWlJR676WtOlPxg316CMZI6KycmXWe7dXxQZ21YtzzlE6
 Z1mUmWIWNBpKe9CrfAdab/EGLj2nbDmuDQdTPYc7hjbgOBTNRuQnyazzB7OR6HGtcUQF+N
 2JzobV7kjdBvNPFjdDH6dkkFs+iSQxXECcefJDyQCs8XfblwVys6ANwBC+fSokraFu99O0
 3YpLCZ7LpV5EaTJ3zGQKWKoVWEYCHiKS7fo6cQz/VgVzfV9Y2ARXnKY7lV2tpQ==
From: Teemu Likonen <tlikonen@HIDDEN>
In-Reply-To: <83tum26vuv.fsf@HIDDEN>
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN>
User-Agent: Notmuch/0.32.1 (https://notmuchmail.org) Emacs/27.2.50
 (x86_64-pc-linux-gnu)
Date: Mon, 28 Jun 2021 13:09:30 +0300
Message-ID: <87pmw68fmt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
 s=lahtoruutu; t=1624874976;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=IlZWa2hiDHytAfGnnk0OdNVqBONC83DshRFuVDpt9E8=;
 b=R07bI8fVz01OsnGU7A/vUURsEpPQ9XRAX97mm3c4oWKX+fTeOgSOS40NLCiRIcphkduJD4
 zMyAJmz+ozzqBLMMyGIENKSUpa48LZuqgV10JKtgO2uQNaCNdG/NbddBr1XBVNKt21K0k5
 HnrpICWlklGgbIR3Xiqwcu52HyBT4TH500JXxO0/8f7HWvNt5EuO4TR1g6rz1z1Pq9zjTS
 mjV68NcKzT0cmO4C5m8C62D3gExQaz7wuT0c1NznW3B+HJ8r2ELPQDeyO2KioLCbI0AesW
 qcTDAA+HMIaPSva2857q4WV2OQflsfbcQP1AfU30oeWpDJ/z3GOeDz7S484P9w==
ARC-Authentication-Results: i=1; ORIGINATING;
 auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@HIDDEN
ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1624874976; a=rsa-sha256; cv=none;
 b=ivEQVjJqnflOaOes6FEAsfiZkPZXvi9j9Wjfhkh71HB3UQATqJC9EBQ8Nfr12fibps+6LO
 nMKfhA5VFVu/teR6g5Cm32SNF6Ps62ZNihc1CHdPa1uNCgJNQvpY2mePpkZy8nydn+E7C7
 soyPMPHcRFMBJa9h4yhteoKyZEA2yQ247kSNH9nh+SkefTqv6vDE7ZVHhBXG6JgVqxSWnm
 OT2lYWGiu5kAuiT43gngw0M26UrNWBcJsbtVvAD0f/siOBOqiHG63iDXaeWcq/k77DGEXR
 MH7xBxzsQ2x9UHu9kZMyt52AvEkNlDd2+0RF756Wrk9XM41BwcwrQ6gYrnpZnw==
X-Spam-Score: -0.7 (/)
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.7 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

* 2021-06-13 10:56:40+0300, Eli Zaretskii wrote:

> First thing I'd like to know is: when the first GUI frame is created
> by that daemon, is there a 'cursor-color' frame parameter in that
> frame's parameters list?

What do you know by "that frame's parameters list"? Is it in some
variable? Can I test it with the following steps?

    $ emacs --daemon=3Dtest
    $ emacsclient -c -s test

    C-h v some-variable RET

=2D-=20
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCYNmf2hAcdGxpa29uZW5A
aWtpLmZpAAoJEK2ddavulMJznQ0BAMmqG4v883oz6lN1w170LbecnzdwH0eTRZTy
C++GqE7kAQCk0OHGzuZwi5awLhJOZothBIMsetw+YmFrATWHlaayDQ==
=GcP1
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jun 2021 11:55:02 +0000
Resent-Message-ID: <handler.43396.B43396.162488129118328 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Teemu Likonen <tlikonen@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162488129118328
          (code B ref 43396); Mon, 28 Jun 2021 11:55:02 +0000
Received: (at 43396) by debbugs.gnu.org; 28 Jun 2021 11:54:51 +0000
Received: from localhost ([127.0.0.1]:51187 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxpqk-0004lY-Sk
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 07:54:51 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50462)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lxpqf-0004lH-SW
 for 43396 <at> debbugs.gnu.org; Mon, 28 Jun 2021 07:54:48 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:35304)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lxpqa-0004Nc-FV; Mon, 28 Jun 2021 07:54:40 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3596
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1lxpqX-00078e-T8; Mon, 28 Jun 2021 07:54:38 -0400
Date: Mon, 28 Jun 2021 14:54:33 +0300
Message-Id: <83eecmp5l2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87pmw68fmt.fsf@HIDDEN> (message from Teemu Likonen on Mon, 28
 Jun 2021 13:09:30 +0300)
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

> From: Teemu Likonen <tlikonen@HIDDEN>
> Cc: larsi@HIDDEN, 43396 <at> debbugs.gnu.org
> Date: Mon, 28 Jun 2021 13:09:30 +0300
> 
> * 2021-06-13 10:56:40+0300, Eli Zaretskii wrote:
> 
> > First thing I'd like to know is: when the first GUI frame is created
> > by that daemon, is there a 'cursor-color' frame parameter in that
> > frame's parameters list?
> 
> What do you know by "that frame's parameters list"?

The frame parameters list of the first GUI frame created by the daemon
session, when you connect to it with emacsclient for the first time.

> Is it in some variable?

There's a function frame-parameter, it will give you the answer.

> Can I test it with the following steps?
> 
>     $ emacs --daemon=test
>     $ emacsclient -c -s test
> 
>     C-h v some-variable RET

Instead of the last line do this:

  M-: (frame-parameter nil 'cursor-color) RET




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Teemu Likonen <tlikonen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jun 2021 12:52:02 +0000
Resent-Message-ID: <handler.43396.B43396.162488472123867 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162488472123867
          (code B ref 43396); Mon, 28 Jun 2021 12:52:02 +0000
Received: (at 43396) by debbugs.gnu.org; 28 Jun 2021 12:52:01 +0000
Received: from localhost ([127.0.0.1]:51252 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxqk5-0006Ct-BJ
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 08:52:01 -0400
Received: from lahtoruutu.iki.fi ([185.185.170.37]:37844)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tlikonen@HIDDEN>) id 1lxqk1-0006Ci-6U
 for 43396 <at> debbugs.gnu.org; Mon, 28 Jun 2021 08:51:59 -0400
Received: from mithlond (mobile-access-6df013-233.dhcp.inet.fi
 [109.240.19.233])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: tlikonen)
 by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 75AC91B00058;
 Mon, 28 Jun 2021 15:51:55 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; 
 t=1624884715;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=M+MLyw8RresmL7RBXpT7YpcPUqOTqfEkZtFw0OiX8r8=;
 b=rA13c9R2hWp86bQJf2tf/ElU/ZHGkfJ/xqrki2SzdG3JKGkEIjQc123pGiMNiAU8CR7dnV
 olxLceNX4uSmqWL174PuW0fET5/wAExBLjCYShD0qFEP0RLWpUQQJp/6Dx7WCQOPYDR1/w
 CAxii+U7ZmodHumIj44pDB3Bvai9uTpTcspLW0AFf5IiGm5pKcRbNaRvoj6yWYuAtOJfUl
 PpPQ1LO8hEL2hduraV4aqoVtehVVfaD8QDLWJELn2wLhSehEcVF6YHmJ/xFOYzX2GhMA3u
 LA1p750soGfJ4C6vwYVkrQoxlpXQkAe8rvQKoMWGOV8uFWxEvABsTCexEa0hXw==
From: Teemu Likonen <tlikonen@HIDDEN>
In-Reply-To: <83eecmp5l2.fsf@HIDDEN>
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN> <83eecmp5l2.fsf@HIDDEN>
User-Agent: Notmuch/0.32.2 (https://notmuchmail.org) Emacs/27.2.50
 (x86_64-pc-linux-gnu)
Date: Mon, 28 Jun 2021 15:51:48 +0300
Message-ID: <8735t2qhi3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
 s=lahtoruutu; t=1624884715;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=M+MLyw8RresmL7RBXpT7YpcPUqOTqfEkZtFw0OiX8r8=;
 b=LqoqqRwRdf3ANQlwMBxH1qxj3XYnA0oZyoJYzaqrXDllfJgcu6zo8H3OfYF/2pXygGeepw
 VS1pApKO6DdZFXxcx1jH6eljIsjs3AE2YVHjUMYpmN8/yXmJtcJ8EiXOUsIGf3jId4Rghs
 XXuUJ6mGx3z5Cb45tqz5bKG5P4uQ6PBiJMzWaLVSYh7Vd6m5pI6pc+8hSokdW6LxED/rr0
 3MQRde5/KxjPTyvwVt9mPR4P2iWVE0l6dCJqROSj8wOmNlm91jMpEjUO0ud+DRdsfgHxzd
 0PJhcIUCzATCI4i7y3JydqpRaxrbY4MD7Zhkm27nptILR0oDCW/vG1oQAfQEnw==
ARC-Authentication-Results: i=1; ORIGINATING;
 auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@HIDDEN
ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1624884715; a=rsa-sha256; cv=none;
 b=JIkUf5KDC4Fn0XjPVs+Ft6OLZK483YKZopokc+rn/YR20H57ZSvqJg71ZEY/wrNowS/Xbw
 oUwpkMtPZwFOJXxX+fLVJ1iXDv3iweP0HlOcGpOzejNCjkmFPaHmITYquLOnYTfyRlViIN
 pcFax2Js2widyj0uEmWl+2xo8f+SqdF8dilcLHcc5iekoGclZzExv0eISVT6QuakArUKs/
 wVnFM1mUF+1xizt4IG1hKjRxWoIWDs3VYa8dbKFiS5AJHb5xPFI/MZBMhdyzIsJiM7clog
 YJ/MdQbbprgZ11SLP02RqRVbP7jI0NLEYDnehu7YqFFRwyNewgZEyKEK58P9+g==
X-Spam-Score: -0.7 (/)
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.7 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

* 2021-06-28 14:54:33+0300, Eli Zaretskii wrote:

> Instead of the last line do this:
>
>   M-: (frame-parameter nil 'cursor-color) RET

Thanks. So, the original recipe:


     1. Create Emacs init file ("~/.emacs.el") with the following
        content:

            (custom-set-faces
             '(cursor ((t (:background "#0f0")))))

     2. Start "emacs" in normal mode to see that the cursor is green
        (#0f0). Close this Emacs session.


M-: (frame-parameter nil 'cursor-color) RET
Retuns: "#0f0"=20


     3. Start Emacs in daemon mode and open a client session:

            $ emacs --daemon=3Dtest
            $ emacsclient -c -s test


M-: (frame-parameter nil 'cursor-color) RET
Returns: "#31363b"

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCYNnF5BAcdGxpa29uZW5A
aWtpLmZpAAoJEK2ddavulMJzd2IBALPSA/HGOPNXjaiu6IRSgDaYDI4VMMvlKekR
t6VPRatCAP9uQchq5gT7c575p+RIsyCPPM3sM2mpcJh9ozBbR0DeAw==
=Msm7
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jun 2021 14:55:02 +0000
Resent-Message-ID: <handler.43396.B43396.16248920463924 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Teemu Likonen <tlikonen@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.16248920463924
          (code B ref 43396); Mon, 28 Jun 2021 14:55:02 +0000
Received: (at 43396) by debbugs.gnu.org; 28 Jun 2021 14:54:06 +0000
Received: from localhost ([127.0.0.1]:52243 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxseD-00011E-Oy
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 10:54:05 -0400
Received: from eggs.gnu.org ([209.51.188.92]:36006)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lxseC-00010i-3i
 for 43396 <at> debbugs.gnu.org; Mon, 28 Jun 2021 10:54:05 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:40790)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lxse5-0003AD-Um; Mon, 28 Jun 2021 10:53:57 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2837
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1lxse5-0004Vu-IY; Mon, 28 Jun 2021 10:53:57 -0400
Date: Mon, 28 Jun 2021 17:53:54 +0300
Message-Id: <835yxyoxa5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <8735t2qhi3.fsf@HIDDEN> (message from Teemu Likonen on Mon, 28
 Jun 2021 15:51:48 +0300)
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN> <83eecmp5l2.fsf@HIDDEN>
 <8735t2qhi3.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

> From: Teemu Likonen <tlikonen@HIDDEN>
> Cc: larsi@HIDDEN, 43396 <at> debbugs.gnu.org
> Date: Mon, 28 Jun 2021 15:51:48 +0300
> 
>      3. Start Emacs in daemon mode and open a client session:
> 
>             $ emacs --daemon=test
>             $ emacsclient -c -s test
> 
> 
> M-: (frame-parameter nil 'cursor-color) RET
> Returns: "#31363b"

You are being hit by the transparent TTY color translation.

What happens if, instead of #0f0 you use #0000ffff0000 ?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Teemu Likonen <tlikonen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jun 2021 17:08:02 +0000
Resent-Message-ID: <handler.43396.B43396.162490004326207 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162490004326207
          (code B ref 43396); Mon, 28 Jun 2021 17:08:02 +0000
Received: (at 43396) by debbugs.gnu.org; 28 Jun 2021 17:07:23 +0000
Received: from localhost ([127.0.0.1]:52386 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxujD-0006oc-Gh
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 13:07:23 -0400
Received: from lahtoruutu.iki.fi ([185.185.170.37]:52668)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tlikonen@HIDDEN>) id 1lxujC-0006oU-0o
 for 43396 <at> debbugs.gnu.org; Mon, 28 Jun 2021 13:07:22 -0400
Received: from mithlond (mobile-access-6df013-233.dhcp.inet.fi
 [109.240.19.233])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: tlikonen)
 by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 5B7E81B000A4;
 Mon, 28 Jun 2021 20:07:20 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; 
 t=1624900040;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=c4Pas95hPKF1MNIfKQsocyEtLFFBDtMIztFo1XzmozU=;
 b=N7J8dhXrRFig1MXvvTY3Bo9oyUkdYSoup3N9XR7WjB4FXgnVb2zlc4jonzt+Mu2ppSOaSP
 b+gVE1lCh30Jxbw7VxWFFSw9Jd33HoSWZuHW4DJAwxHG2JnZ2fpOWkn+WdIGrkPIe238+I
 +Uk7pP47BIIEOEygmPX6FpA6jf+MdnEcR+e0MsZ7PdRZcIMn7kPqbVCjPiggiU8XPyKLOV
 6nSzjtuhWIG3iHMTin50tsVjdO3OU37ytUoliVv8BQ+aHQB4aGAz8qzYNgP/NBFPcX9dS9
 50jPQpT69FAfHK4SA4p0P8Y4m1YlCOyEJOlVPDH9NGpFNdHawjzk4vvv7BZbNQ==
From: Teemu Likonen <tlikonen@HIDDEN>
In-Reply-To: <835yxyoxa5.fsf@HIDDEN>
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN> <83eecmp5l2.fsf@HIDDEN>
 <8735t2qhi3.fsf@HIDDEN> <835yxyoxa5.fsf@HIDDEN>
User-Agent: Notmuch/0.32.2 (https://notmuchmail.org) Emacs/27.2.50
 (x86_64-pc-linux-gnu)
Date: Mon, 28 Jun 2021 20:07:13 +0300
Message-ID: <87bl7plxz2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
 s=lahtoruutu; t=1624900040;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=c4Pas95hPKF1MNIfKQsocyEtLFFBDtMIztFo1XzmozU=;
 b=kWWBf+AZj34fAgL7Gq7LJmja99CteK7XJtQtbyWflgvYud6/2Y+yzQiH9ycqo2VsinDY3T
 ARFiBcOpmZkCZgGkh5bCZvZf+kHvq/qG+tOdO91QTYdZMOUmQ8FPLBx22ztJ/tm9VBu+hK
 gQVoqAKjcSmgmCcDF05goTDOXKERTzCK9vTPydb7ZH5tpKNoubIX8ekUVbe9vn8E5NQ7xh
 u7RdkcDLgoyFgKKoD9yWs0Er/XTJjQCvRMSZL+nX4YFAwemoYRZasEjm9mUaFvbhqtQZAJ
 G/RTqiWkUbEwcEWyCIFLn2Sf2NMlGbtPjO8m9BXMVtYkcO06OaGHpN1opnzoMg==
ARC-Authentication-Results: i=1; ORIGINATING;
 auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@HIDDEN
ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1624900040; a=rsa-sha256; cv=none;
 b=PWbv2KFd83Z2h4zV3e94ytDI/Z+wqXNdchD0dQ8g+LMQYVdCnEp9HBkh58sPgUvbNpeBX5
 Plq3htQRlJiNzz4fDDEkciaf9xDtRkOnon+ogK9Rv+ylSiXq1IJps/FB7nPW1id5locvRO
 hOxTCIN66OhTPoCY3wbUY6VUSCeTrsP9prIOy344MGucCpIXCzHkILAWavISo5mfYiWI6y
 7nVgia/6NeLE6Q/37B1DuU0TtnmZ1ev2hMBYcfzAmD9aJh4iXwABFV8/joHkWfRCQIEoLi
 FNWVqXaHcf2GoLSLLaHVd0ZCV+r64LpoaQYoq1RGVcCiZXCEbV1JggSIY490Sw==
X-Spam-Score: -0.7 (/)
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.7 (-)

--=-=-=
Content-Type: text/plain

* 2021-06-28 17:53:54+0300, Eli Zaretskii wrote:

>> M-: (frame-parameter nil 'cursor-color) RET
>> Returns: "#31363b"
>
> You are being hit by the transparent TTY color translation.
>
> What happens if, instead of #0f0 you use #0000ffff0000 ?

In normal emacs session ("emacs") it returns "#0000ffff0000" but in a
client session ("emacsclient -c") it is still "#31363b".

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCYNoBwRAcdGxpa29uZW5A
aWtpLmZpAAoJEK2ddavulMJzbS8BAPpn60A9Gp4eIURdoptK1xC2DtOM2PexeZHb
u7fcdEfLAP91uHeuONlPqjvsZKusKS2Acr8HP3SVjSsdf1XBd8iTAg==
=HDjM
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jun 2021 17:25:02 +0000
Resent-Message-ID: <handler.43396.B43396.162490107528052 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Teemu Likonen <tlikonen@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162490107528052
          (code B ref 43396); Mon, 28 Jun 2021 17:25:02 +0000
Received: (at 43396) by debbugs.gnu.org; 28 Jun 2021 17:24:35 +0000
Received: from localhost ([127.0.0.1]:52411 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxuzq-0007IO-TK
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 13:24:35 -0400
Received: from eggs.gnu.org ([209.51.188.92]:38558)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lxuzo-0007IB-N8
 for 43396 <at> debbugs.gnu.org; Mon, 28 Jun 2021 13:24:33 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:46240)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lxuzj-0000HG-7r; Mon, 28 Jun 2021 13:24:27 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4302
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1lxuzi-0006uy-Nx; Mon, 28 Jun 2021 13:24:27 -0400
Date: Mon, 28 Jun 2021 20:24:24 +0300
Message-Id: <83y2atoqbc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87bl7plxz2.fsf@HIDDEN> (message from Teemu Likonen on Mon, 28
 Jun 2021 20:07:13 +0300)
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN> <83eecmp5l2.fsf@HIDDEN>
 <8735t2qhi3.fsf@HIDDEN> <835yxyoxa5.fsf@HIDDEN> <87bl7plxz2.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

> From: Teemu Likonen <tlikonen@HIDDEN>
> Cc: larsi@HIDDEN, 43396 <at> debbugs.gnu.org
> Date: Mon, 28 Jun 2021 20:07:13 +0300
> 
> >> M-: (frame-parameter nil 'cursor-color) RET
> >> Returns: "#31363b"
> >
> > You are being hit by the transparent TTY color translation.
> >
> > What happens if, instead of #0f0 you use #0000ffff0000 ?
> 
> In normal emacs session ("emacs") it returns "#0000ffff0000" but in a
> client session ("emacsclient -c") it is still "#31363b".

And if, instead of custom-set-faces, you use

  (add-to-list 'default-frame-alist '(cursor-color . #0f0))

?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Teemu Likonen <tlikonen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Jun 2021 18:48:02 +0000
Resent-Message-ID: <handler.43396.B43396.162490605712055 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162490605712055
          (code B ref 43396); Mon, 28 Jun 2021 18:48:02 +0000
Received: (at 43396) by debbugs.gnu.org; 28 Jun 2021 18:47:37 +0000
Received: from localhost ([127.0.0.1]:52522 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lxwID-00038M-CS
	for submit <at> debbugs.gnu.org; Mon, 28 Jun 2021 14:47:37 -0400
Received: from lahtoruutu.iki.fi ([185.185.170.37]:35312)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tlikonen@HIDDEN>) id 1lxwI9-00038C-Jv
 for 43396 <at> debbugs.gnu.org; Mon, 28 Jun 2021 14:47:35 -0400
Received: from mithlond (mobile-access-6df013-233.dhcp.inet.fi
 [109.240.19.233])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: tlikonen)
 by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 086191B000A4;
 Mon, 28 Jun 2021 21:47:30 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; 
 t=1624906051;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=qYnsrmSGq+xjOmv18RRQsluzHPfCVbczWgRlST/Jhy4=;
 b=aekRatr6GF8nZ7ykJtbM5RSyXIainrro8ieJwOO+y76l3002j0ReskQteeTh4hk+yXgmrM
 KscMoDy2wFEPHdic/Fe6nmD7caEpzkvGIQ1h6RBrZTxsizmGRpmjgrXTI2psY6xOSi8NUZ
 4B2+FJ68OxzIV8lzoE5Hk0lYWt2FEABijjL1PGzEjYm6w0TGPUY99pyenBKMRets8mpU3u
 L2rHJLzZOB1RGHW8z9jBlOWEy35hRB6V29gmVN/Cma2Xrk9+mbOMjTbzxQlnLiNysfnOM3
 vxTQWgHJ8agxCaqZ6POhrVQhV36IRVFsHKbECYSrbRTKmO15ZZguA4vwQmRvvA==
From: Teemu Likonen <tlikonen@HIDDEN>
In-Reply-To: <83y2atoqbc.fsf@HIDDEN>
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN> <83eecmp5l2.fsf@HIDDEN>
 <8735t2qhi3.fsf@HIDDEN> <835yxyoxa5.fsf@HIDDEN> <87bl7plxz2.fsf@HIDDEN>
 <83y2atoqbc.fsf@HIDDEN>
User-Agent: Notmuch/0.32.2 (https://notmuchmail.org) Emacs/27.2.50
 (x86_64-pc-linux-gnu)
Date: Mon, 28 Jun 2021 21:47:24 +0300
Message-ID: <878s2tltc3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
 s=lahtoruutu; t=1624906051;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=qYnsrmSGq+xjOmv18RRQsluzHPfCVbczWgRlST/Jhy4=;
 b=K2wq9zRJ7OYdLX8aIy1X10llxYEWZrzlWKuKAwNloovVKrz2ZHUROa3/YacQ3ohM801Esm
 cxV7C2ysU1w+LRXuOlEbl61NOeOo7NJ8KsErojHyTn/yHvMK3jkyRvUC+UtCOFzcxdHg2S
 G0zSIIcBKCDQ3auNMdrnTS8mOibSNHQsus6eJ5nLclr7M9fuy18iKXzqGpSvRGU9gr1p4Z
 BfmmwNrHhe4aEG4SVDs9l0KZooC1TDAl56A5oo2JpK5tEWtwnr+7uUeVpjjNy4ioJnWkmA
 q36+GD3hZtbK9lHnomK1fP2/+bsRZy7LvhrFPDf3/Iu/QrtiAnkxuwhqkMXYNg==
ARC-Authentication-Results: i=1; ORIGINATING;
 auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@HIDDEN
ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1624906051; a=rsa-sha256; cv=none;
 b=UTXJTNUfkTRzFKFkHoo6+Eqibp70cEEtsx543gGmu7fvUExX1SzW9OZQU/zla24HMXPLJP
 agmQ0iIFH+W7aHks833+OkMbxe3HLEpoDogNH7aQ5xM3rbGNU3WFK/SLenWmb4/qG86iHS
 zpNr0k3RsEdqWEw28Q7rtJCu8bkI/KgWPPgCE605lKiiLCKG7Lgxr7jAYySlnCqxz6DOhb
 0VJFKKkOZRjHEL4l3URy+7OUeVBHlnY8VQKQQr1IKV6H6w7gXW33NxcDxNtZbtdEwPmM9R
 /849EyEkxZ1dFLXvbl+a37UFgWPtXV8Xku4P0GbKdx5Kx8Q1EpUTY38Hqh01Hg==
X-Spam-Score: -0.7 (/)
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.7 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

* 2021-06-28 20:24:24+0300, Eli Zaretskii wrote:

> And if, instead of custom-set-faces, you use
>
>   (add-to-list 'default-frame-alist '(cursor-color . #0f0))

That works -- using the string "#0f0". The client session now has a
cursor with background color "#0f0".

I sent my original report about "Customized 'cursor' face" after reading
Emacs reference manual section "(emacs) Cursor Display". It says:

    On a graphical display, many more properties of the text cursor can be
    altered. To customize its color, change the =E2=80=98:background=E2=80=
=99 attribute of
    the face named =E2=80=98cursor=E2=80=99 (*note Face Customization::).

It seems to me that it's a bug if customizing cursor face doesn't work.
It would be odd to define that a feature, so that in normal session we
customize cursor face's background and in daemon we must use
default-frame-alist variable instead.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCYNoZPBAcdGxpa29uZW5A
aWtpLmZpAAoJEK2ddavulMJzc1wBANGRR4gksDhxYRZu6+eTNaIJUK2bz/c0IW8X
i5J21c3+AQCh0GAjyq/1meoos/XlcA0HIqcmsAqHJZ5DPohbSSXhAw==
=RP8D
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 29 Jun 2021 12:22:02 +0000
Resent-Message-ID: <handler.43396.B43396.162496931514340 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Teemu Likonen <tlikonen@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162496931514340
          (code B ref 43396); Tue, 29 Jun 2021 12:22:02 +0000
Received: (at 43396) by debbugs.gnu.org; 29 Jun 2021 12:21:55 +0000
Received: from localhost ([127.0.0.1]:53808 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lyCkU-0003jE-Pf
	for submit <at> debbugs.gnu.org; Tue, 29 Jun 2021 08:21:55 -0400
Received: from eggs.gnu.org ([209.51.188.92]:54934)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lyCkS-0003j0-5Q
 for 43396 <at> debbugs.gnu.org; Tue, 29 Jun 2021 08:21:52 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52346)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lyCkM-0004l6-NX; Tue, 29 Jun 2021 08:21:46 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2388
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1lyCkM-0006jy-CH; Tue, 29 Jun 2021 08:21:46 -0400
Date: Tue, 29 Jun 2021 15:21:45 +0300
Message-Id: <83k0mcoo86.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <878s2tltc3.fsf@HIDDEN> (message from Teemu Likonen on Mon, 28
 Jun 2021 21:47:24 +0300)
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN> <83eecmp5l2.fsf@HIDDEN>
 <8735t2qhi3.fsf@HIDDEN> <835yxyoxa5.fsf@HIDDEN> <87bl7plxz2.fsf@HIDDEN>
 <83y2atoqbc.fsf@HIDDEN> <878s2tltc3.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

> From: Teemu Likonen <tlikonen@HIDDEN>
> Cc: larsi@HIDDEN, 43396 <at> debbugs.gnu.org
> Date: Mon, 28 Jun 2021 21:47:24 +0300
> 
> > And if, instead of custom-set-faces, you use
> >
> >   (add-to-list 'default-frame-alist '(cursor-color . #0f0))
> 
> That works -- using the string "#0f0". The client session now has a
> cursor with background color "#0f0".
> 
> I sent my original report about "Customized 'cursor' face" after reading
> Emacs reference manual section "(emacs) Cursor Display". It says:
> 
>     On a graphical display, many more properties of the text cursor can be
>     altered. To customize its color, change the ‘:background’ attribute of
>     the face named ‘cursor’ (*note Face Customization::).
> 
> It seems to me that it's a bug if customizing cursor face doesn't work.

But it does work, as you have just demonstrated.  The color of the
'cursor' face does change -- except that it changes to a color that is
the closest approximation on a text-mode frame to the color you
requested.  That's because the frame that is selected when the daemon
applies the customizations via custom-set-faces is the daemon frame,
which is not a GUI frame.

> It would be odd to define that a feature, so that in normal session we
> customize cursor face's background and in daemon we must use
> default-frame-alist variable instead.

custom-set-faces recalculates the face attributes and then applies
those attributes to the frame(s).  I don't know how to defer that
recalculation to some future time, when a GUI frame is available,
without hurting more important use cases with face customizations,
which generally need such an immediate recalculation of attributes.

Yes, we have a design bug here (and in some other places):
customizations that need GUI features don't work well when invoked at
startup time in daemon sessions.  If someone knows how to fix
custom-set-faces so that the face is re-evaluated when the first GUI
frame is created, patches and/or ideas are welcome.  Failing that, I
thought I was doing well by helping you resolve this issue in your
init files...




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Teemu Likonen <tlikonen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 29 Jun 2021 13:39:02 +0000
Resent-Message-ID: <handler.43396.B43396.162497391921711 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, larsi@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162497391921711
          (code B ref 43396); Tue, 29 Jun 2021 13:39:02 +0000
Received: (at 43396) by debbugs.gnu.org; 29 Jun 2021 13:38:39 +0000
Received: from localhost ([127.0.0.1]:53951 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lyDwl-0005e7-J9
	for submit <at> debbugs.gnu.org; Tue, 29 Jun 2021 09:38:39 -0400
Received: from lahtoruutu.iki.fi ([185.185.170.37]:42728)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tlikonen@HIDDEN>) id 1lyDwj-0005dx-Gj
 for 43396 <at> debbugs.gnu.org; Tue, 29 Jun 2021 09:38:38 -0400
Received: from mithlond (mobile-access-6df013-233.dhcp.inet.fi
 [109.240.19.233])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: tlikonen)
 by lahtoruutu.iki.fi (Postfix) with ESMTPSA id B0DAF1B00190;
 Tue, 29 Jun 2021 16:38:35 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; 
 t=1624973915;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=Yt0BUM+1nd1TvR2RyhFwHnjCisXJ5EfQ8AnHGYLj1qQ=;
 b=BsaXAZE0WIpCGJr6w4ct6MLQ033xFZgWSolDojLtWKVVWTdAIwopOiuY+10avqB48o7FtD
 KrewWxCEJ2Zbm3YNHjmAWCuhWFTsqCx/BYlWIs8sIjhOmCE5jsm1sGIcHpyPbvv9JKvPAQ
 8TaHimCx+NgICq5fVjOrJbd0KV0ku33pTDIxe75hF1Xp5ywhTFUVk1wgtRbyKWZAoi7Q6J
 hwUSFKYy+2Z8M+SFGFYVXZHbNJE05KA3BnfZGryBVjN5nS5+zMIBMefgUJBJZt/6rSd1Oz
 UYTt9dyb+RZOOrZYdMLS1vsHNNB0PAZX+LSrztk8vJR/e1JGAAo7Edq/Jeud0g==
From: Teemu Likonen <tlikonen@HIDDEN>
In-Reply-To: <83k0mcoo86.fsf@HIDDEN>
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN> <83eecmp5l2.fsf@HIDDEN>
 <8735t2qhi3.fsf@HIDDEN> <835yxyoxa5.fsf@HIDDEN> <87bl7plxz2.fsf@HIDDEN>
 <83y2atoqbc.fsf@HIDDEN> <878s2tltc3.fsf@HIDDEN> <83k0mcoo86.fsf@HIDDEN>
User-Agent: Notmuch/0.32.2 (https://notmuchmail.org) Emacs/27.2.50
 (x86_64-pc-linux-gnu)
Date: Tue, 29 Jun 2021 16:38:29 +0300
Message-ID: <87h7hg94fe.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
 s=lahtoruutu; t=1624973915;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=Yt0BUM+1nd1TvR2RyhFwHnjCisXJ5EfQ8AnHGYLj1qQ=;
 b=uxqQSxRf9mMLb8SfPqvEbNxlZAN7xvdMNdOSt4KtzkKsoY+Xy8x0HdlgRQT79Tsj/6WEnK
 khNMbFQuqMRtQ5Vev8eyvbyetUcS/+EMQUYvBnATQ9AmvRPpxqHLWGqydSdKIh2ONZgx09
 Ju2u/TkaVDElb8iA5WA83CzULihoX4SfWENqSVp7XC1W4z4d3ofdUTdOU/rHwNuLYyP9OX
 gtppcnTRKP2bJMt37bjW+dtyygBdf+36TnA30S34WMqymfPO3tj8ggSal1I8DTD6qaPQik
 K3a2wdTYNDBEPn1WkWfKdeAJRmWw76MGI5HWBq3iiK3Asx+mPyaV0dYWqSt4sA==
ARC-Authentication-Results: i=1; ORIGINATING;
 auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@HIDDEN
ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1624973915; a=rsa-sha256; cv=none;
 b=WDhLb7luBQzMgmHihVrW5PwBGSi+2mj5WMRxtF1H8EatGCGVvCoAOUh6CHqbByFAuvhJHh
 wWOV1D4HStMIY0Sr5LkSHIgfc4Eipj5VClZ0gz9dFqgQkII7OqnTFocMNYaJPXaUuZmoow
 FrXkNkbthUXA9lmQ8HoRwfySJi7nwa9pO1OmdBCXnYKtD6lpTBofq5EQXPrdSabMKyc/DV
 wknh3kxBlKt06LQRMrSl10+d9LhBZEGAyvrfBuSYkHAhcdb7y1UPQTJSxdaqYmVTDjKifW
 oK9DUW2mD6ypzSjoeG+l4RKnGq2nK6TjN6KghEHQJr0wlZxB3el4Wysm0gqNGQ==
X-Spam-Score: -0.7 (/)
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.7 (-)

--=-=-=
Content-Type: text/plain

* 2021-06-29 15:21:45+0300, Eli Zaretskii wrote:

> I thought I was doing well by helping you resolve this issue in your
> init files...

Thank you. You helped be to understand the behaviour. My personal fix
has been an additional (when (daemonp) ...) code:


    (setq custom-file "~/.emacs.d/custom.el")
    (load custom-file)

    (when (daemonp)
      (face-spec-set 'cursor '((((background dark)) :background "#eee")
                               (((background light)) :background "#000"))))

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCYNsiVRAcdGxpa29uZW5A
aWtpLmZpAAoJEK2ddavulMJz8RsBANniKxZl8kgwZ2VdMFygqePMFWbM/RHZdu2I
YUX78hs+AQCtaa31FRB7ulbOjh9HmX7R/3t/nvTGGJH0E+dPzsRkBQ==
=3dPw
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 30 Jun 2021 12:16:01 +0000
Resent-Message-ID: <handler.43396.B43396.162505531423011 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, Teemu Likonen <tlikonen@HIDDEN>
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162505531423011
          (code B ref 43396); Wed, 30 Jun 2021 12:16:01 +0000
Received: (at 43396) by debbugs.gnu.org; 30 Jun 2021 12:15:14 +0000
Received: from localhost ([127.0.0.1]:56639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lyZ7Z-0005z5-Pk
	for submit <at> debbugs.gnu.org; Wed, 30 Jun 2021 08:15:13 -0400
Received: from quimby.gnus.org ([95.216.78.240]:56910)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1lyZ7X-0005yk-2y
 for 43396 <at> debbugs.gnu.org; Wed, 30 Jun 2021 08:15:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=F8CzP7wnHvaetMM2tOKqF5GB1HBG2ZvG+Jv5VthkiI8=; b=jZKxU/68p0PJEZXR2iZ9eoLLab
 alE2Y6WWVjJV+9P99GnD8iz2L79YU360W72wfp0LsgNNYgpO7A7KFes22ZMIMtrnRnzSWU1GtfbAD
 4txmgF7e2PU1tKWQHoLFcUMUvhg6qosfW1L1IshQmxN5Bp3JUlTX1IwlNU2lps7RC+p0=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1lyZ7O-0001QF-2y; Wed, 30 Jun 2021 14:15:04 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN>
 <83eecmp5l2.fsf@HIDDEN> <8735t2qhi3.fsf@HIDDEN>
 <835yxyoxa5.fsf@HIDDEN> <87bl7plxz2.fsf@HIDDEN>
 <83y2atoqbc.fsf@HIDDEN> <878s2tltc3.fsf@HIDDEN>
 <83k0mcoo86.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAMFBMVEWRKzaKJjGFIix+
 ISuEHCeTXGJfUFSNPkYoJis/PkD2+PfR0dGmpaWBf395GiT///+Gr9sTAAAAAWJLR0QPGLoA2QAA
 AAd0SU1FB+UGHgssOzG0mPYAAAF6SURBVDjLdZPBccIwEEVFB7HGDexCBTjnHBifc4JkBnL2mEmO
 pAfTABO1YFJBoAM7XeSsGrIrybKExR+whR6r1f+WhYg1y6ykeLA/6evm0EpAFglxBJCYNgDdqhGY
 E+AZSWMJGAIEAlLijebC/F1mCcC3SQGD6eSwFCKkQVSy8j7c7snlzCQVAap6qZwOIQAJdXOsVFU3
 TQjIMtRHVe2rvVIhoBjz7cVpHVYg5Lu+764dXTwAYOP5GwP6vK99utQA5YJAf/398BUmXbrnu8vZ
 tPgZKzhZmW9bA9p2rLDaqxPb+xp8DIANKqWqJgS03Yx21d34sAlSD6ewB/X3IKgg3+jBOVpK4nQp
 ioT9eRA0B360GTk36vvROT9MSvdiKr7bsDlb+dwYvW4OQQ+Oa1E6raKKQePYhzg9cOb4J46prchS
 gF+CxMk2kcRvn1HhlpJJAInehVjeGLCbvQuKAeAUFI9lSUPKCsuVDWu+LAottNOT1n/6WXsJfUf/
 weENXe7UOlUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDYtMzBUMTE6NDQ6NTkrMDA6MDDxIfIZ
 AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA2LTMwVDExOjQ0OjU5KzAwOjAwgHxKpQAAAABJRU5E
 rkJggg==
X-Now-Playing: Coil's _Astral Disaster Sessions vol. 2 (Unfinished Musics)_:
 "The Mothership and the Fatherland (early mix)"
Date: Wed, 30 Jun 2021 14:14:58 +0200
In-Reply-To: <83k0mcoo86.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 29 Jun
 2021 15:21:45 +0300")
Message-ID: <87fswz8s71.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Eli Zaretskii <eliz@HIDDEN> writes: > Yes, we have a design
 bug here (and in some other places): > customizations that need GUI features
 don't work well when invoked at > startup time in daemon sessions. If someone
 knows how to fix > cu [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> Yes, we have a design bug here (and in some other places):
> customizations that need GUI features don't work well when invoked at
> startup time in daemon sessions.  If someone knows how to fix
> custom-set-faces so that the face is re-evaluated when the first GUI
> frame is created, patches and/or ideas are welcome. 

Yeah, it's a tricky problem...  unless we just add some brute-forcing of
this when the first graphical frame is created.

That is, we just go through all the faces that have been created already
(with `custom-set-faces') when the user eventually creates a frame, and
then re-evaluate everything.

But...  it seems like there's so many possible negative repercussions to
doing that (if the user has changed the faces further outside the custom
machinery) that it sounds like a kinda chaotic thing to do.

Uhm...  perhaps we could have a `custom-reset-faces' function that
people can put in a server/client hook to achieve this if they want to?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#43396: 27.1; Customized "cursor" face has no effect in daemon mode
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 30 Jun 2021 12:30:02 +0000
Resent-Message-ID: <handler.43396.B43396.162505618124492 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 43396
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: moreinfo
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 43396 <at> debbugs.gnu.org, tlikonen@HIDDEN
Received: via spool by 43396-submit <at> debbugs.gnu.org id=B43396.162505618124492
          (code B ref 43396); Wed, 30 Jun 2021 12:30:02 +0000
Received: (at 43396) by debbugs.gnu.org; 30 Jun 2021 12:29:41 +0000
Received: from localhost ([127.0.0.1]:56677 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lyZLY-0006My-MG
	for submit <at> debbugs.gnu.org; Wed, 30 Jun 2021 08:29:40 -0400
Received: from eggs.gnu.org ([209.51.188.92]:48390)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lyZLW-0006Mk-Hx
 for 43396 <at> debbugs.gnu.org; Wed, 30 Jun 2021 08:29:39 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36582)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lyZLQ-0001D0-Mo; Wed, 30 Jun 2021 08:29:32 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3838
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1lyZLQ-0004Ct-Ad; Wed, 30 Jun 2021 08:29:32 -0400
Date: Wed, 30 Jun 2021 15:29:36 +0300
Message-Id: <83wnqbmt73.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87fswz8s71.fsf@HIDDEN> (message from Lars Ingebrigtsen on Wed, 
 30 Jun 2021 14:14:58 +0200)
References: <875z8g331g.fsf@HIDDEN> <83o8m89xv8.fsf@HIDDEN>
 <87zgvv6znf.fsf@HIDDEN> <83eed78d1z.fsf@HIDDEN>
 <83tum26vuv.fsf@HIDDEN> <87pmw68fmt.fsf@HIDDEN>
 <83eecmp5l2.fsf@HIDDEN> <8735t2qhi3.fsf@HIDDEN>
 <835yxyoxa5.fsf@HIDDEN> <87bl7plxz2.fsf@HIDDEN>
 <83y2atoqbc.fsf@HIDDEN> <878s2tltc3.fsf@HIDDEN>
 <83k0mcoo86.fsf@HIDDEN> <87fswz8s71.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: Teemu Likonen <tlikonen@HIDDEN>,  43396 <at> debbugs.gnu.org
> Date: Wed, 30 Jun 2021 14:14:58 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Yes, we have a design bug here (and in some other places):
> > customizations that need GUI features don't work well when invoked at
> > startup time in daemon sessions.  If someone knows how to fix
> > custom-set-faces so that the face is re-evaluated when the first GUI
> > frame is created, patches and/or ideas are welcome. 
> 
> Yeah, it's a tricky problem...  unless we just add some brute-forcing of
> this when the first graphical frame is created.
> 
> That is, we just go through all the faces that have been created already
> (with `custom-set-faces') when the user eventually creates a frame, and
> then re-evaluate everything.

We have custom-reevaluate-setting, but I think it only works on
variables.  And we lack a mechanism that would perform re-evaluation
of faces that were customized.

> Uhm...  perhaps we could have a `custom-reset-faces' function that
> people can put in a server/client hook to achieve this if they want to?

That could be a sufficient stop-gap solution, IMO.




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


Received: (at control) by debbugs.gnu.org; 28 Jul 2021 16:24:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 28 12:24:11 2021
Received: from localhost ([127.0.0.1]:55725 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m8mLr-0003iK-1N
	for submit <at> debbugs.gnu.org; Wed, 28 Jul 2021 12:24:11 -0400
Received: from quimby.gnus.org ([95.216.78.240]:49676)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1m8mLl-0003hn-UJ
 for control <at> debbugs.gnu.org; Wed, 28 Jul 2021 12:24:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc:
 MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=/kaqLK7A4XW8PemSzkbxbh0Z+htQB56tKPwKywlF0hE=; b=lQlnE4yGanjKu+NOG/yXSnqoLr
 kjUmgWApzCU6Ka9nhi0jeQ5psKbrb1bbKcMqb1E7dBRrN7nfnFaxieggA2zfCszdLsUdbbcEc+Xkd
 IdH57jyg/AVmVZhaOsSU/9mqyRM0cKeqOTnW4FpO0J35xFFE7rnY7CosppHx0swteXIY=;
Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1m8mLd-0001VZ-Jf
 for control <at> debbugs.gnu.org; Wed, 28 Jul 2021 18:24:00 +0200
Date: Wed, 28 Jul 2021 18:23:55 +0200
Message-Id: <87eebitnj8.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: control message for bug #43396
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  tags 43396 - moreinfo quit 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 TVD_RCVD_IP            Message was received from an IP address
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
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: -3.3 (---)

tags 43396 - moreinfo
quit






Last modified: Wed, 28 Jul 2021 16:30:02 UTC

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