From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Ram=C3=B3n_Lorenzo_Panad=C3=A9s=2DBarrueta?= Newsgroups: gmane.emacs.help Subject: Cannot run emacsclient in GUI Date: Wed, 4 Nov 2020 10:41:31 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3584"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 04 15:07:48 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaJS0-0000r6-KL for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 15:07:48 +0100 Original-Received: from localhost ([::1]:58576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaJRz-00076p-NY for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 09:07:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaFIZ-0003av-Fj for help-gnu-emacs@gnu.org; Wed, 04 Nov 2020 04:41:47 -0500 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:45458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kaFIX-0004lX-R9 for help-gnu-emacs@gnu.org; Wed, 04 Nov 2020 04:41:47 -0500 Original-Received: by mail-lj1-x235.google.com with SMTP id t13so22186721ljk.12 for ; Wed, 04 Nov 2020 01:41:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rghStQHf5yUz3pK7IKLKdLeQ2hl74yMJg00Qg6MIma8=; b=prCJpQDGrXjz3DeGdESlFexGOSTKI0dDOFj31gLobmZ6YSiNFWnpkN4E7R5Qd+gE2Z XkkQDa70G3xrqxtGcjauLQxGbaqfdNHFErYlfBg+xSsLhEkR9y6Qf5mkrXDrPl7gGFrT UHRVnWKBoQ1Ordtf6UMlRG0Y/YGdRC4XssP8bdfg6Y3n1swOyw1tEacbLmywKr76EUtJ jkCE33XIB+Wuke9xnnyaNH1c27dySOyqissbNIEa+ojBmKvrTSFy/HrckrZw4Nxfjgp9 HX1h5ObADFW/jlMEQ4O+L7pscAYxheyKiq85X8gk1h/YolrIhHBoreZAu8lIvf+7i5Pm 0lKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rghStQHf5yUz3pK7IKLKdLeQ2hl74yMJg00Qg6MIma8=; b=lrfWEKjELL7PQo9qmPqAWGZoFQajj5wILQdYxX7VGsDIpMeLzTETqZlWSVykUcfZwz Af34KiE+bTQK/W7P+Rt3yo0GA56iWEF2N+9ASUXdS8Mgo+5o4tmg1dK+pV0EeWCgPZ4P bAapP+IbjzA0ZadifBjAWkvOZs73RpmR2/QmOvy+aWv24DU/RNxXjJSd/hxbSgpc2aFG 3+T56LE6DRVAGylHEKlrIB7FCXoGhvbxRSv4IymxkAc3pZd9GP5ZY5snUCeaZAeF4Eca 2IvrpejVrLRcsmzy+EBq9OWXaki7JckmqN61ALF5OApzJCyPz/6GXjCJB/jDJBAKwWPa SKPg== X-Gm-Message-State: AOAM533xs/Jt8M2gW+JcgvZhsqOnaNQNFDdJbBYDXmyzlN8dakBOKXvz rghqplOcjaYuGPQBdEj204caECuq1cCispujyd1wsZO874aL1JRI X-Google-Smtp-Source: ABdhPJyWt0y88HGM3Y9ZHdGCt4/xTi60FA6ZEZYBz2z1XTb9BCG09LhSNY3Yv/hfikES58z7vTg4MsfU7jtJCl3cwiA= X-Received: by 2002:a2e:88cb:: with SMTP id a11mr11010647ljk.304.1604482902494; Wed, 04 Nov 2020 01:41:42 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=rpana92@gmail.com; helo=mail-lj1-x235.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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-Mailman-Approved-At: Wed, 04 Nov 2020 09:07:23 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124989 Archived-At: Hello everyone, I have been trying to configure Emacs to have a transparent background when used in the terminal, and specific background color when used in GUI. For this I have defined the following hook: (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? Thanks in advance.