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 CIBbNcpYq2Bh0QAAgWs5BA (envelope-from ) for ; Mon, 24 May 2021 09:42:02 +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 +M0hMcpYq2C8AgAA1q6Kng (envelope-from ) for ; Mon, 24 May 2021 07:42:02 +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 5A40917696 for ; Mon, 24 May 2021 09:42:02 +0200 (CEST) Received: from localhost ([::1]:58672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ll5Ds-00067h-S0 for larch@yhetil.org; Mon, 24 May 2021 03:42:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ll5D5-00066q-1O for emacs-orgmode@gnu.org; Mon, 24 May 2021 03:41:11 -0400 Received: from ciao.gmane.io ([116.202.254.214]:58090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ll5D1-0006vK-2V for emacs-orgmode@gnu.org; Mon, 24 May 2021 03:41:10 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ll5Cy-0006HZ-CS for emacs-orgmode@gnu.org; Mon, 24 May 2021 09:41:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Julien Cubizolles Subject: reevaluating org-x11idle-exists-p with new org-clock-x11idle-program-name Date: Mon, 24 May 2021 09:40:59 +0200 Message-ID: <87r1hw37g4.fsf@free.fr> 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:v1wCzWPweHRxmn3YcarI3EQSjEM= 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.25, 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=1621842122; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Gp+asFsW39XxEo/r6RRLTQIBjIMsZ5UAIsYFBeAszi4=; b=bEnZWKU2cflMX0uWPm60FbbRJ36nfy666iXAZg3XdeuJR7/4B/kdg0GY+XqNgizDjB7enS H3UzkOlIPh+EEdh1zvbUPMOjEoaBtuIDOFJlPBkXCk2MHEB7JIpQ3iDLNJsaZGFgd2irj7 AU5EM+UQjUFVlxvJEC1qBliwahNZ2GMkGN9jW6LzGk/yLc8QQtVMN+QXMmA4TutTP5lAxm ZUpDftzcakHlFva2oKU9wLaA7mUe6+G+0Gq48J4D3exN3jf1lXjYJA7/3lgqy1KopfQxR1 sgWkwNxuAzzx3/kZB4GyBn6eCUCEjAw6K2pa0LbCz394JF7o8CjTkjpFc9BcWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621842122; a=rsa-sha256; cv=none; b=GhAy2TObLAUjunZxJOLsKuqIMd0ifwfa5DCBto4BD7vOL/dnM+sWeJcD8HTEbdKNIikq2t y+Xy/moCsEHD+ux/DaZeLCECCeZDIz6+SwUfDmOedDW842zuhvpKp6nRgji9XFOjRSUQID j8Xhwo72X7lPcoNTtMT8CG+7n4s0UyYQgeYyek0xfwNg1U7mJcmlqj0SXVPEt25j+/8XPa VZj9ZRoqW3LnEaMBjZjQjkpaPaZE91haOTR0nhKlcWSKcPOU5dH5q+F2z67rF1JE2M4rjK EspV7Z3gDfR1iMhHkQwES/Bx67fHZ8GaYvhBpmkbvWJ9NQ7f/I9FH247s2TGkg== 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: -0.34 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: 5A40917696 X-Spam-Score: -0.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: Hox1nCNEAeSY 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. -- Julien Cubizolles