From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gL3yJIg0+GXwOAEAe85BDQ:P1 (envelope-from ) for ; Mon, 18 Mar 2024 13:33:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gL3yJIg0+GXwOAEAe85BDQ (envelope-from ) for ; Mon, 18 Mar 2024 13:33:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rensoliemans.nl header.s=soverin header.b=SrwdxK2B; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710765192; 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:dkim-signature; bh=LSRodXw8K7vvlnho4IYHj+dzHlGTv3c6U05ssl+hu6U=; b=gx6BXNtOUQUzFKonZ+oPHuFgRF7SuGn7a7zL4wsbp+tFFzumNwvlhOtV1mAaYHYKWT2m8S kEnbyp4cHReYQ6clqRfxb8gV9SFcUNdk/Jo9TtYebgNsogB2Kr1/6fvddqlb5aEQB7JOlh RjH1GgI/aQqzwVdX9pQGJ6CbcbXI9ZlnpnlpCgNzEQohB+E2TZ6EiLWq3TW4b7KioNg8w1 Q5cUe/9i6gBSmndz1ZdYLJkgNuwXIjb8141lAFb2vp/vM9WHLE/7Kv8t+d25Im1gbQ9w1u wghxI3dWm32p9S+NPN9cvetBbkZxCgUSRt+gvBKvyYn2NCc4e6z0GcaWkP/feA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rensoliemans.nl header.s=soverin header.b=SrwdxK2B; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710765192; a=rsa-sha256; cv=none; b=iT5l9IKtE48MOirRfrJpnZLtqdeLg+hHTzzznduodB4G6aPFFSP5noG9gfBLl1rof8Q1m7 WULqaQeBdGAsB2h2ODX+iXH+XLdSHZAcBg+Qm5e5/+oSE3qeHmGw2+6OY2sdWtiU9eKJ2J g6eFWpN9oOkHeK+g78z0nUhdyFx+y6dqBkHWZGjUIhltym4Fv5OSkXCoE4V3jm9ffKLgJe REReWxj8MX3mym8LKlStYWAuhZyfG6SifGsEp0pjk/SyERKAQoam5RSiaqf8UXoK3YU3nH b/zr31y2Rsl3l23VQshLKyr7esplIM9Db9ggAFD4P66GS4fLkOJ/WgG7NhYoFw== 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 576C91EC9F for ; Mon, 18 Mar 2024 13:33:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmB8s-0006m1-K1; Mon, 18 Mar 2024 07:26:58 -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 1rmB8p-0006jd-Ef for emacs-orgmode@gnu.org; Mon, 18 Mar 2024 07:26:55 -0400 Received: from outbound.soverin.net ([2a10:de80:1:4092:b9e9:2292:0:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmB8m-0006Fo-Qv for emacs-orgmode@gnu.org; Mon, 18 Mar 2024 07:26:55 -0400 Received: from smtp.soverin.net (c04cst-smtp-sov02.int.sover.in [10.10.4.100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4Tysxy1FRlz1S for ; Mon, 18 Mar 2024 11:26:46 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4Tysxx6GL7zDY for ; Mon, 18 Mar 2024 11:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rensoliemans.nl; s=soverin; t=1710761206; bh=1SpthBPty8W/PMKeDC13yqHW7RYThtL6ZoDeBiwtNq0=; h=From:To:Subject:Date:From; b=SrwdxK2BV60Kqe0oOcoVcfIlnCGv2eE1asp6w0481bNMj8C4NCcGSMWQeQtBCoQOJ ouvq496xQX1AfHCZcZqeXW0F9uHk38BQvNruEmXlUrsA9C9mkgPPybhPb1PmsVAgyK T5MagEEUHxDnU80bXs7mHWzaK+ogLP7obEJUfsUTBjsZIIgnIJpcmkMEXafpPiFWSl 4TDyUEXMPo8w8be7/Wt+rPkfhcBjjlSb1RmMZbQlDPdpwJvygv+CW5caRVtbjggLjJ q+th1NJi6FXRHiuxOoO6uOhvd1g1m6HLTziwsli0rp4QqM1DSqvB5EbsukFsExdnoP vmUYA2P/xAA1g== From: Rens Oliemans To: emacs-orgmode Subject: Possible bug in org-agenda not showing habits properly Date: Mon, 18 Mar 2024 12:26:34 +0100 Message-ID: <87sf0nu6fp.fsf@rensoliemans.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a10:de80:1:4092:b9e9:2292:0:1; envelope-from=hallo@rensoliemans.nl; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -2.05 X-Spam-Score: -2.05 X-Migadu-Queue-Id: 576C91EC9F X-TUID: nU0bUEp+E76H --=-=-= Content-Type: text/plain When I open an org file before opening the agenda, my habits show up as regular tasks, rather than with the consistency graph. Additionally, many CANCELed tasks still show up in the agenda. When I open the agenda first however, everything goes fine. Interestingly, this only happens when I bind 'org-agenda' to a key. To show this, I have attached bad.el and good.el which reproduce the issue on current main (Org mode version 9.7-pre (release_9.6.21-1295-g46909a @ /opt/org-mode/lisp/)). Note that they set (setq org-directory "/tmp/tmp.emacs/notes") and they expect '/tmp/tmp.emacs/notes/file.org' to exist, see attachment. Reproduce with: emacs -Q -l bad.el /tmp/tmp.emacs/notes/file.org so that it definitely opens an org-file before the org-agenda. After opening the agenda, my habits do not show up as habits. My habits do show up with: emacs -Q -l bad.el --eval="(org-agenda-list)" and with they also show up: emacs -Q -l good.el /tmp/tmp.emacs/notes/file.org I am running Emacs 29.2. Am I doing something wrong here? --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=bad.el (use-package org :load-path "/opt/org-mode/lisp" :init (setq org-directory "/tmp/tmp.emacs/notes")) (use-package org-agenda :ensure nil :load-path "/opt/org-mode/lisp" :config (add-to-list 'org-modules 'org-habit t) (setq org-agenda-files '("file.org")) :bind (("C-c a" . org-agenda))) --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=good.el (use-package org :load-path "/opt/org-mode/lisp" :init (setq org-directory "/tmp/tmp.emacs/notes")) (use-package org-agenda :ensure nil :load-path "/opt/org-mode/lisp" :config (add-to-list 'org-modules 'org-habit t) (setq org-agenda-files '("file.org"))) --=-=-= Content-Type: application/vnd.lotus-organizer Content-Disposition: attachment; filename=file.org Content-Transfer-Encoding: base64 KiBIYWJpdHMKKiogVE9ETyBIYWJpdCAxClNDSEVEVUxFRDogPDIwMjQtMDMtMTggTW9uIC4rMWQv MmQ+CjpQUk9QRVJUSUVTOgo6U1RZTEU6ICAgIGhhYml0CjpFTkQ6CioqIFRPRE8gSGFiaXQgMgpT Q0hFRFVMRUQ6IDwyMDI0LTAzLTE4IE1vbiAuKzJkLzRkPgo6UFJPUEVSVElFUzoKOlNUWUxFOiAg ICBoYWJpdAo6RU5EOgo= --=-=-=--