From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id pHxoH3C3rGARWQAAgWs5BA (envelope-from ) for ; Tue, 25 May 2021 10:38:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cMeUGnC3rGDJLwAA1q6Kng (envelope-from ) for ; Tue, 25 May 2021 08:38:08 +0000 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 5973EE056 for ; Tue, 25 May 2021 10:38:07 +0200 (CEST) Received: from localhost ([::1]:56204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llSZi-0000Ta-9x for larch@yhetil.org; Tue, 25 May 2021 04:38:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llSYv-0000TC-Tk for emacs-orgmode@gnu.org; Tue, 25 May 2021 04:37:17 -0400 Received: from ciao.gmane.io ([116.202.254.214]:56532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llSYu-0005uQ-Fi for emacs-orgmode@gnu.org; Tue, 25 May 2021 04:37:17 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1llSYp-0001PE-L6 for emacs-orgmode@gnu.org; Tue, 25 May 2021 10:37:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Julien Cubizolles Subject: Re: reevaluating org-x11idle-exists-p with new org-clock-x11idle-program-name Date: Tue, 25 May 2021 10:37:06 +0200 Message-ID: <87o8czw6od.fsf@free.fr> References: <87r1hw37g4.fsf@free.fr> <87r1hw5jkx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:vDUQXxnwo/K6yRZsLjnXHuUUg4U= 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: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621931888; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1M8owMsSP94tean3QomE20H3SNsrZ1wE0j8fiuToOSM=; b=rDc8Ly2vEeBczhXbP2ZdUYvCbQXLEjK0z2lOcKIPKK9Dq6T6d3lHvAbphhWMwqDlrRfhQL 9OmJZryCaMWTuBc+L3vrB65G8ab0Z8BH1f7Xt7KCNmKYhhhGuS/GILs3/z2PVQA5yJ0p7Q lhyhwtT4sr4eJYjiw24vgUwo2yynXhKEPOlSslF++OQll6ADJD2u3KMc1W3fX6o/pH+at1 dvI462uHrMVkQFXJ9gJmPu8AkPcX68FXne3Q17w1mGAWUeE+n/SBrKEPDdPOwj5OhVCRbi S78/bIOsI7O5cGPguSsD7W4oiKC52cz1k+JbOj5tJx47eOuqCqECmAK4iC+XPA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621931888; a=rsa-sha256; cv=none; b=IBuvVXnpiTN+UMcyhe1s4R8DEbnjcUYFNADPXSLSEUCrHWMEFN7AHdi5B2lynz9E+cqovB dTnYK0N0IbqyOmLZL2jrWuI/qvKlY6gEywgoTBGorDpkPhEbhda0cu9J5+Nzfa83TqCEAL 86u8OYhCisR2P3WqFBLYeKgk9cc8nK44HoixTSnUt0frPmj/BglleF9SRSdFGfYZi6D/LX babDmz2CaQBjOJ55+vbhak0KMGLlwjAn5ODFHB17dy8Y70zj1RcVZNf+dg+upGghjx5YlR JsqAJSH9abck+NVq+j/t2F123PTvmBwek6OX6eV+/Taxz2HoAC/cnX6lzeOOxQ== 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.83 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5973EE056 X-Spam-Score: -1.83 X-Migadu-Scanner: scn1.migadu.com X-TUID: /zUwQKCYEtE9 Tim Cross writes: > Julien Cubizolles writes: > >> I'm using a custom python program to display x11 idle time. I've set >> org-clock-x11idle-program-name accordingly but org-x11idle-exists-p is >> still nil. I'm guessing it's defvar'ed in org-clock.el before >> org-clock-x11idle-program-name is set. Evaluating the defvar of >> org-x11idle-exists-p afterwards indeed sets it to t. >> >> I could do (setq org-x11idle-exists-p t) but there must be a better way >> to handle the definition of a new org-clock-x11idle-program-name. > > How are you setting org-clock-x11idle-program-name? In your init file or > via custom? Setting it via custom works thanks. Somehow org was loaded by some dependency before I explicitly used (require 'org). I guess I could also use some use-package configuration. -- Julien Cubizolles