[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot run emacsclient in GUI

From: Eli Zaretskii
Subject: Re: Cannot run emacsclient in GUI
Date: Wed, 04 Nov 2020 17:45:33 +0200

> From: Ramón Lorenzo Panadés-Barrueta
>  <>
> Date: Wed, 4 Nov 2020 10:41:31 +0100
> (defun on-after-init ()
>   "Make transparent background only for terminal."
>   (if (display-graphic-p)
>       (progn (message "XWINDOW")
>          (set-face-background 'default "#292b2e"))
>     (progn (message "TERMINAL")
>        (set-face-background 'default "unspecified-bg"))))
> (add-hook 'window-setup-hook 'on-after-init)
> The above happens to work perfectly for emacs, but not for emacsclient,
> which yield the following error:
> $ emacsclient -c
> Waiting for Emacs...
> *ERROR*: Undefined color: "unspecified-bg"
> On the other hand emacsclient -nw -c, works as expected. Could anyone
> please give me some hints on how to solve this issue?

unspecified-bg is meaningless for GUI frames, that's why you get the
error.  Try this instead:

   (face-spec-reset-face 'default)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]