From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iC44KsNRrmDlfwAAgWs5BA (envelope-from ) for ; Wed, 26 May 2021 15:48:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IFOtJcNRrmBUUAAAbx9fmQ (envelope-from ) for ; Wed, 26 May 2021 13:48:51 +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 EE21E2A5A1 for ; Wed, 26 May 2021 15:48:50 +0200 (CEST) Received: from localhost ([::1]:46172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llttw-0006gu-Qr for larch@yhetil.org; Wed, 26 May 2021 09:48:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lltt5-0006eB-M2 for emacs-orgmode@gnu.org; Wed, 26 May 2021 09:47:55 -0400 Received: from ciao.gmane.io ([116.202.254.214]:58764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lltt3-0000Iv-Ui for emacs-orgmode@gnu.org; Wed, 26 May 2021 09:47:55 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lltt0-0009Bj-50 for emacs-orgmode@gnu.org; Wed, 26 May 2021 15:47:50 +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: Wed, 26 May 2021 15:47:46 +0200 Message-ID: <878s41wqrh.fsf@free.fr> References: <87r1hw37g4.fsf@free.fr> <87r1hw5jkx.fsf@gmail.com> <87o8czw6od.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) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:5gQfJJ5BeZsNL60gZqvYX8NBLZ8= 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.248, 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=1622036931; 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: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=8VH6yTVgnEj7lU4FzX1B7uyVKXhPF+/WdpJlqAKIlLw=; b=MHvxO9LHAJYp9d6HvD+f4SH9WJi2jbUx3hNljKznAE1cAflMh/BEgpo9sPSj/b1rxcmOu9 XP4DtqJICCagIZ8prweYVLUl/cOoYpyU3A8U5L1SK2+gcNRQPF8bQP0jFZdUK9pG8vHFjE 0uS+KNvln/NM0hzv0nRMpqLaojwGjN/+HCsFyuvBD4zU7BXKm6RcEeRL2s5lEDjCNQDdPl UIY0DwEzOv6JFxYhL7JgDBiZ8dbDCuRFes8off13OraCNk9UUoJ5uZ9gkozXD5WxMxEzW0 Y0ud0Qz8wxTAWnwVsJnxhdT3EMkCOx47VYw0A7+EpDBAi+UX/cNgHaarsOoqRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622036931; a=rsa-sha256; cv=none; b=ORZAo8iatngVT4oNkoQHS8phLkjdY5zAC6NeW8aoYOmsXuVcY7I4wEyH/D9Oq2JCzSoyUf hbLUW7bDhEOYFsH7yEoSlKhSnx6kd60MrNOikpmqMjbQ0mtVwlSgNlz1ATXyOQoCourz5B tKY7lAOk2e5gWNYY3nk4f9CtLRLtVyMgEyrejns4xOdQa9hyn63cZjooKauIotJAJEUPbW YKiqHtp9E90yCrvqkomBoS+osmfkarredqTrKxtsHTmng0UMXgf1jpgxts0A7SjB/KkGy+ AM29tEW/XzMp87zrTMmFktUUNXXkjSXB3DicDzcsya3AwdKSWO2DJM6fa/bkHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: EE21E2A5A1 X-Spam-Score: -1.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: ijJ1C9hk0KlK Julien Cubizolles writes: > 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. Actually it doesn't… Even with org-clock-x11idle-program-name set via custom, org-x11idle-exists-p is still nil at startup. And custom-set-variables is set at the very beginning of my init file. I'll file an issue. -- Julien Cubizolles