From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MKWvIAsHW2PE5QAAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 00:32:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SEipIAsHW2NMwwAAauVa8A (envelope-from ) for ; Fri, 28 Oct 2022 00:32:43 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7BFB123BFE for ; Fri, 28 Oct 2022 00:32:42 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooBPu-0005Wi-I7; Thu, 27 Oct 2022 18:32:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooBPk-0005WI-H6 for emacs-orgmode@gnu.org; Thu, 27 Oct 2022 18:31:52 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooBPh-0006eW-Jr for emacs-orgmode@gnu.org; Thu, 27 Oct 2022 18:31:52 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ooBPO-0006wk-5H for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 00:31:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Julien Cubizolles Subject: org-x11idle-exists-p with emacs --daemon Date: Fri, 28 Oct 2022 00:31:23 +0200 Message-ID: <871qqs6gqs.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:H+drKpd+tvr2I6E0fN67yqCgQtk= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666909962; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1eXI+ey90QzU+UbdCKVac2m7ClvWlVxGz2Sz2GX2u9A=; b=I2k4Ry0iPvbrDo186ELgeZT356MgFaLQuXZyeDOD/lZM44ZTTs01MXeQswcTilLA5pMIhk 7C4UMOi7B9HHfaQyc3vy/DkCciiES8CsV88AnJxjfyypiSBWKq/2UHZOzsetyl8zFbFWFF qzoo67PuEI2vkpuwjFO9pUj0Pi+OpFs5l7dMbgPMwWECbz1Azf8qJTj7ejczEBIEX7EYGu IoYWAPIgnJTXk8f+mJwp8rfW0kKinmdLFJmUj1pynNv5ME16JzkKYSyRA5o5Z3uzoyUj50 pyu/3h2Wx7QZXVm/PYYxNVTbKEfl3gp5FzQx/z+xMIicp7Zvp9wKwSIJ2Y3MuA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666909962; a=rsa-sha256; cv=none; b=bsOFDwq0JTmBRGYvrbTV7D2eS+x56VarfoNRiETjJ3ScMHnyLV3DhUhgLzfD+qVPAm32qH um3KcGhzxIokVw/mjdXorkFhzjm7rDCk0hDdN7LCN1T/FIpTLEKRV9ETkq261q4Kxv+d/S USj2DpZFCEQY3t+e5XMMwrGzGoi1UzYvrzjGm4iLaSAadPXR49uib953iJysOA4m0IyM14 VzwcyoYUuUC8hhv6L71JoODH3kS4oN22eaVrGou5Pt9V57q9CnYpGicIL0w+chBbdJoltM h3O/SFWinVEM/nF6nesJ4PK5xyaGKfRZaCq2BloscvcJbFw0KIHk0yyfOWc6eQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=free.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.29 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=free.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7BFB123BFE X-Spam-Score: 4.29 X-Migadu-Scanner: scn1.migadu.com X-TUID: zhK94HiOHbNr All the org-*-idle-seconds func test at some point for org-x11idle-exists-p which is defvar-ed at load time. For me, org-x11idle-exists-p is always nil at startup, but is set to true if I eval it later on. I guess it's because I'm starting Emacs in daemon mode, (as a systemd user service actually), and org-x11idle-exists-p relies on (eq window-system 'x) which is somehow not set in the terminal when the daemon. For the time being, it manually set org-x11idle-exists-p to true but shouldn't all this tests on (eq-window-system) be run each time a new frame is created ? -- Julien Cubizolles