From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2OaYAoFmW2PDLAAAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 07:20:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SFGmAYFmW2OUHQAAG6o9tA (envelope-from ) for ; Fri, 28 Oct 2022 07:20:01 +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 A07A02D608 for ; Fri, 28 Oct 2022 07:20:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooHlJ-0002XZ-3F; Fri, 28 Oct 2022 01:18:33 -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 1ooHlE-0002Vt-84 for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 01:18:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooHlC-00054A-39 for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 01:18:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F0DA8240103 for ; Fri, 28 Oct 2022 07:18:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666934304; bh=urFVMK+Osqc2ZFveGFyZ2pfxSQhDYZUbaWQ08jpEAdc=; h=From:To:Cc:Subject:Date:From; b=aObjHXSnfSfUkfJnxyWgC2FvFmL9xEKnLYImVVVKSe0A8Cg7Vw8oZBJmTkiet6t3g zausnTctjiFx+VDAPq1GrP8WCip4t20rS7ytO/B6nykdDt0Hr61qJ8LVZhoMU6v43h KAKQzzAS0yLKrRdFrF47igKbEGUcDpZoGODTyUgj6FDtnRMIKFVjtGzUlooJ/v2/tl pzcfxPo44FY/LU37yWExYRKBkmFKdONQo4BzTkJamoo8k5AbfN5LqDLjE3CgJK43Oo T/WfIZ2kLP8mvv3chKED6OnxwjY2Ym7RgkPQUnYg9UiemlOCawOYTXNB0RaWLtE8ML 4vu+jip5S4w4A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mz9mn4Xqdz6tnD; Fri, 28 Oct 2022 07:18:17 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: org-x11idle-exists-p with emacs --daemon In-Reply-To: References: <871qqs6gqs.fsf@free.fr> <87v8o4lgeg.fsf@localhost> Date: Fri, 28 Oct 2022 05:19:00 +0000 Message-ID: <87k04kle4b.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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=1666934400; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vEUF7i9Gy5uVt6Ii8uXcdcZBiK/TCJiBfIWkIuWfvC4=; b=MK1nHSiMohUYIPFmrZI14g/KWz9XUiUgkDEdcToXHiMmV7ArsUW7PZUqBJgdHgn+HrnkGd IslRWOPm3lH17qJROd0UXklLWcIPmyRRMD+2sidFdL8XLSD1kchzniLtZe1BylVjkmi01E bHQ9+lMCNjSsizq01j6DRswY7woTo5jn3vNvc4AlSED0HLhNdpjWN3dt6TeZiKyVhs0tCL D77z4NEH1GiCBHUIJZzqo7TrTHt7/K/54kqFL076+KljbFyKTTgwXY31pFNn1E+flFitLD 9+WqAjxe+UwGukfrFfDATqho0PFCPkzN38+9XcK+dS+5qphVFNjChZMrAU46lA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666934400; a=rsa-sha256; cv=none; b=UFhDYMMc/rcxdjENStBbb+HDajQbUiVJXzgPcJ9RW+h6Fi01XRUqa6qtNfC0KxJ3zIDAoa 88yFNNN0Up3nbvmICc8G+VIu+BRV10yDmW50LAJ6lFRhBl+Os5FUCS/c0nbCt77soxuOzG eU4KiT0LB3IAyUYHJMRd3I3spltjg+tdMELLFptJ8XmNsH0ETOtcfU9I7pShlPfUxqpRL2 HsRs9gv5Do8jGH462DCBa47XbvSLeQVdWgdW57bNfEu5i5bNQ3qWOHX8wDy3Xcf5dvDZAL yhKY5jooYqDISlYBBuZfYgiumxAHbitmic5fkDG4BdDmcJkkqu7ssDybNpYrWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aObjHXSn; dmarc=pass (policy=none) header.from=posteo.net; 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: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aObjHXSn; dmarc=pass (policy=none) header.from=posteo.net; 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: A07A02D608 X-Spam-Score: -2.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: /smRShfhI5nu Max Nikulin writes: >>> emacsclient --eval '(server-select-display (getenv "DISPLAY"))' >> >> You are talking about a different problem. >> Please start a new thread. > > Nope > > emacs -Q -L ~/src/org-mode/lisp/ --daemon > emacsclient --eval window-system > nil > > emacsclient --eval '(server-select-display (getenv "DISPLAY"))' > emacsclient --eval window-system > x > > I suspect that the check of `window-system' was added to detect Emacs > instances running as pure terminal applications having no access to X11 > and the case of daemon was simply overlooked. The reported problem is related to the fact that org-x11idle-exists-p value is calculated at load time. emacsclient --eval '(server-select-display (getenv "DISPLAY"))' may or may not help depending on when (require 'org) is being executed. The problem you are talking about is when no Emacs frames are present. It is a problem that require different solution. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at