From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipe Silva Newsgroups: gmane.emacs.devel Subject: option for loading up a gui specific emacs daemon Date: Tue, 13 Dec 2016 21:02:15 -0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fbb5a18fa4c05439236e4 X-Trace: blaine.gmane.org 1481670256 26769 195.159.176.226 (13 Dec 2016 23:04:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2016 23:04:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 14 00:04:12 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGw7E-00060e-UN for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2016 00:04:09 +0100 Original-Received: from localhost ([::1]:44491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGw7J-0000WC-84 for ged-emacs-devel@m.gmane.org; Tue, 13 Dec 2016 18:04:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGw6R-0000MT-Pf for emacs-devel@gnu.org; Tue, 13 Dec 2016 18:03:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGw6O-0001TU-M6 for emacs-devel@gnu.org; Tue, 13 Dec 2016 18:03:19 -0500 Original-Received: from mail-io0-f180.google.com ([209.85.223.180]:33017) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGw6O-0001TQ-Ho for emacs-devel@gnu.org; Tue, 13 Dec 2016 18:03:16 -0500 Original-Received: by mail-io0-f180.google.com with SMTP id d9so10782096ioe.0 for ; Tue, 13 Dec 2016 15:03:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=RqD2UovRMasaR/f7SS0l25qZjwBe46i11iGEpq8eq1M=; b=z2tYSDakUhzCy6BiiwXdysO6XemA8C8WFmMHxVe4eJSbs5SdfI0kncu6pAVePgHPJV DfYyft+asSuby5do8Mxu1SipygdmU4BKfZhCFx0HUI73voYhSzt5vp672PauPRLMW8F0 Gcl+3dNDxfrb4kh54IHOlEsVKQ+Vl0o3Tyvpct5GpxHonVJhmUOeS+DYEK87bpu1GxDs SX8G/ZmtRaZktmUVgwaQ0Z4VyvHOdyc5hY4SVV3KMUauEf8paF0zJLpq9QYAo272eZHY dmCc8p7SeDVTkr1Lqh6e3iZiGEt5k4iqDLKH8JxzLeaoC0ubIV78lkSc5+55gM/yTIZM mYmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RqD2UovRMasaR/f7SS0l25qZjwBe46i11iGEpq8eq1M=; b=XwurZtZA7BHFwKDkF732LbSbE/fs4G11G1xxYZwVIT3zrnqPGCYCOjWqK/cVIqas/a 2qO7CtugpIcgay2OXuYhBeS8mvM4Ub/5IDr2vcm/Zg4mkCRwOQO30mRxzKBxKnyWGfuJ C3gIbCsZ33e2av+Cy9uXMejnG4Ep/6DBRwZ6GmszZsnFcYftQOiNjS5CIu8avN4eYvbO gCHHDt8wLbkO80Wd0+Xh9hsCr3Kr6QEvZUfZw7f2TLLjgF/LAtEjn8KIjSHzHeJQ9PV0 5iJ06ePOtzpluyq4mz3dAkIJ6QfuaeXiaSKfOaXG837wuhH9rC5x/egKABRjhciBlAQ6 i/2w== X-Gm-Message-State: AKaTC03I0GsEVRRaZnOZ+2M6MDw1Qt6dPkLuNNNKXTARX7wQZa+IUbk7sOnoBXG9pEdcRP+oy0y7x3rsn2BepA== X-Received: by 10.107.128.194 with SMTP id k63mr91820635ioi.223.1481670135444; Tue, 13 Dec 2016 15:02:15 -0800 (PST) Original-Received: by 10.79.152.10 with HTTP; Tue, 13 Dec 2016 15:02:15 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.223.180 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210418 Archived-At: --001a113fbb5a18fa4c05439236e4 Content-Type: text/plain; charset=UTF-8 Dear developers of the mighty emacs editor, I'd like to load emacs with emacs --daemon=gui and then connect to it with emacsclient -c --sever-file=gui. This works almost right. The problem is that various popular packages make extensive use of the (display-graphic-p) function/predicate to query frame capabilities. For example, a theme package may query (display-graphic-p) and assign gui or tty colors accordingly. the thing is that(display-graphic-p) always returns nil in a emacs --deamon type of loading, because emacs does not know if you are using emacsclient with a gui or a tty. Is there a way to say to emacs something like, "look, I'm starting you as a daemon, but I promise I'll only connect to you with gui frames, so for all intents and purposes, pretend that you are being started up as a gui". If there is not a way to do that, maybe we could add that kind of option? The impact of not having this options is that cosmetic packages that make use of (display-graphic-p) always look off in a emacs --daemon loading scenario. thanks in advance, Ninrod --001a113fbb5a18fa4c05439236e4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear developers of the mighty emacs editor,=C2=A0

I'd like to load emacs with emacs --daemon=3Dgui and then connect to i= t with emacsclient -c --sever-file=3Dgui.

This works almost righ= t. The problem is that various popular packages make extensive use of the (= display-graphic-p) function/predicate to query frame capabilities. For exam= ple, a theme package may query (display-graphic-p) and assign gui or tty co= lors accordingly.=C2=A0

the thing is that(display-graphic-p) alw= ays returns nil in a emacs --deamon type of loading, because emacs does not= know if you are using emacsclient with a gui or a tty.=C2=A0

=
Is= there a way to say to emacs something like, "look, I'm starting y= ou as a daemon, but I promise I'll only connect to you with gui frames,= so for all intents and purposes, pretend that you are being started up as = a gui".=C2=A0

If there is not a way to do that, maybe we co= uld add that kind of option?=C2=A0

The impact of not having thi= s options is that cosmetic packages that make use of (display-graphic-p) al= ways look off in a emacs --daemon loading scenario.=C2=A0

than= ks in advance,=C2=A0

Ninrod
--001a113fbb5a18fa4c05439236e4--