From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0NBSDLFYV2U4MQAAauVa8A:P1 (envelope-from ) for ; Fri, 17 Nov 2023 13:12:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0NBSDLFYV2U4MQAAauVa8A (envelope-from ) for ; Fri, 17 Nov 2023 13:12:33 +0100 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 B018C2159F for ; Fri, 17 Nov 2023 13:12:31 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=IHNIdLOq; 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=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700223153; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kD5GG39j1fpqAJ3Ioru9x9j1EKdw+v0B48s2slRuoFo=; b=R+yVWxM6K7LfU01dd7HYAC2VQNlpQsgVR3BhWKDR5hf2Fydaqm1Qd8DoOxIAp3bHkuQ4pq dTawNrZCwbMIXjaxBBqmTDbN8ss2CQuia7DFCsZPCIEmQWpvUWfVhNxz2En8SMQO+4d606 MDbfxiMEkiLvIhTVXua0sLFrc88mhlpdsfsdfDdrSR47i8h8aO4xJrGUB0Maf4mcfobXcE dRXnVvYMW25sClCOZO+/vIp+ZUb8l3J1U9Jr8/NS9Ll8AL6fpbBrcj7NVpWZFnXlGQEKh+ xU5wW1u84xKtuzhnfn+meawSwHCrrSYDC6C/Cs3mY9N2W2qIaaPKpvwOQIr5SA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=IHNIdLOq; 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=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700223153; a=rsa-sha256; cv=none; b=HZ29X7/iAeEMKUjNFiCt/SBPZPyK/ytJvtd1U6zN/9fTEei2/8HSwk66JIs3YjQm7dZAq/ wlnO7yHlUsC9Z1IWRAHrDDaXlc3Ofg3VypiYcf1NewvQDP+BwiQ3v5ODNULhHcwzx/GEW5 seFeYwoi4/SNLhF5/7A3Fi9qESQCOlVWIXsvmmRgjVh+hXDiIPOZ3ii3KWWPJWu5UzZF8L falTlGPBTUb2ED3ghOhQ4AiDPI+R+BrCwBg+JGRaFMlQ6yp+WT7JIpg43iy++o1h2f1cR1 WB+tOaph4N6nrRSSS8tpFIqyYq+Lb8sgrmYK5UI5z2jNewoglHc3G5BJOCASwQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3xhA-000289-4L; Fri, 17 Nov 2023 07:11:36 -0500 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 1r3xh8-000280-Ae for emacs-orgmode@gnu.org; Fri, 17 Nov 2023 07:11:34 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3xh3-00046T-0j for emacs-orgmode@gnu.org; Fri, 17 Nov 2023 07:11:32 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-32fdc5be26dso1254707f8f.2 for ; Fri, 17 Nov 2023 04:11:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700223085; x=1700827885; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=kD5GG39j1fpqAJ3Ioru9x9j1EKdw+v0B48s2slRuoFo=; b=IHNIdLOqeFwo6i6nC9hIn14okG+juWH+3z3ZMeIADKTpEFKnwtNIny9rVtz2J70/sI ap3FqGlXmpw8G0vQTRnPY02kOe2rGqV+ElIunAbWTJ5zuT5eosNkRyn8DbZK6G5cK3YX paQqLxmGRBWyteJ6ah6I8exkTkkec4kIObbXqfFerQzFlcLJhlx4WOSBz1G04O3PdAbr 9cvwfjViXYgzs5/AZSZQgBCyCwHHstaZe1Vu0TyurEjqB1xMt3PoiA6PGPuBEpDMkLHt HF+hTHLSeWAvwN0I9gqaPKx8M3Ae5rpP0/CrdLQYlSqduTMhZ97tNlN9/186YmqBjGtp qBPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700223085; x=1700827885; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kD5GG39j1fpqAJ3Ioru9x9j1EKdw+v0B48s2slRuoFo=; b=M+P/S1+1aQ0Ca8h2G56uXTLc+RdOR4kXAmwn9DvmgrKvi9dUIR3XarDh1j7F5krM2r 121/k+3ldbDuiM1y7bOtAN3FKTaONfqL9OfcSG+KeUb2xofb3blue60ffeXAC5j7eSnO +pcYaTY8BCFg/FyC8MugZ/mTbNnc0UbYcyRlDHvf+L0FrNeVy7j+GqyXV7xXD6vHWXP1 Anc1aRbpMbmMVjkrP8qdCHYFR9VPQDvcVXqgJA5krDhHc9HO/jQCAT9TdHtflxzwfoDP 5yrwU9vaSCSEPNYeCCWRAWN8ApmdnOy+ATjqL9wZfdmvKWbFWyRIS8P6JHy0C0sbStd9 strw== X-Gm-Message-State: AOJu0YxnAHVd/slo1EAM8hBbuYWsXYPht1gHoiVAPno3LYKaQdeQ4GaP 87PXelIOSzlYcZ5FxZJX1Qq6u9TE0TA= X-Google-Smtp-Source: AGHT+IH3R2CnqYwqFJmZYlYg0keIyg6Sk6gu/R+sh8EM9A7CMhXgg1zUy+hfXMgXx34h++V/t23EHQ== X-Received: by 2002:adf:f241:0:b0:32f:7cba:6815 with SMTP id b1-20020adff241000000b0032f7cba6815mr12228352wrp.61.1700223084455; Fri, 17 Nov 2023 04:11:24 -0800 (PST) Received: from Wills-MacBook-Pro.local ([95.145.61.136]) by smtp.gmail.com with ESMTPSA id k6-20020a5d66c6000000b0031c52e81490sm2127393wrw.72.2023.11.17.04.11.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 04:11:23 -0800 (PST) From: Will O'Brien To: emacs-orgmode@gnu.org Subject: [BUG] org-element-at-point warning for org agenda [9.7-pre (release_9.6.11-928-g0740e6 @ /Users/wob/.emacs.d/straight/build/org/)] Date: Fri, 17 Nov 2023 12:11:23 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=will.08rien@gmail.com; helo=mail-wr1-x42b.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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-Spam-Score: -9.40 X-Spam-Score: -9.40 X-Migadu-Queue-Id: B018C2159F X-Migadu-Scanner: mx10.migadu.com X-TUID: UuzluTDrJQi3 Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ I think the recent addition of an error check (downgraded to warning) is erroneously triggering for some aspects of agenda view. Should be reproducible with this org file --8<---------------cut here---------------start------------->8--- * Item <2023-11-17 Fri 09:00-09:15 +1w> --8<---------------cut here---------------end--------------->8--- If above is saved as /tmp/bug.org and agenda command set as follows I get the warning. Don't *think* it should trigger. --8<---------------cut here---------------start------------->8--- (setopt org-agenda-custom-commands '(("b" "Bug Agenda" ((agenda "Schedule" ((org-agenda-prefix-format "%b")))) ((org-agenda-files (quote ("/tmp/bug.org"))))))) --8<---------------cut here---------------end--------------->8--- Warning: --8<---------------cut here---------------start------------->8--- =E2=9B=94 Warning (emacs): =E2=80=98org-element-at-point=E2=80=99 cannot be= used in non-Org buffer # (org-agenda-mode) --8<---------------cut here---------------end--------------->8--- Have recreated with `emacs -q`. Happy to try to help dig in. Emacs : GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin22.5.0, NS appkit-= 2299.60 Version 13.4 (Build 22F66)) of 2023-09-06 Package: Org mode version 9.7-pre (release_9.6.11-928-g0740e6 @ /Users/wob/= .emacs.d/straight/build/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-link-elisp-confirm-function 'yes-or-no-p org-bibtex-headline-format-function 'org-bibtex-headline-format-default org-agenda-custom-commands '(("b" "Bug Agenda" ((agenda "Schedule" ((org-a= genda-prefix-format "%b")))) ((org-agenda-files '("/tmp/bug.org")))) ) org-agenda-files '("/Users/wob/orgx/inbox.org" "/Users/wob/orgx/hazy/work.= org") org-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-he= ader-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lin= es org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mod= e-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-bab= el-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-confirm-shell-link-function 'yes-or-no-p outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-agenda-before-write-hook '(org-agenda-add-entry-text) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-comman= d-activate) org-persist-directory "/var/folders/dz/yn13k0ts6n183573mjyvrpbm0000gn/T/or= g-persist-pvoHhT" org-fold-core-isearch-open-function 'org-fold--isearch-reveal org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-a= rg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete or= g-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org= -irc-export) ("info" :follow org-info-open :export org-info-export :store org-i= nfo-store-link :insert-description org-info-description-as-command) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :st= ore org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete or= g-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open= :export org-link-doi-export) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302Q\"\207" ["news" browse-url ":"= ] 6 "\n\n(fn URL ARG)"]) ("mailto" :follow #[514 "\301\300\302Q\"\207" ["mailto" browse-url= ":"] 6 "\n\n(fn URL ARG)"]) ("https" :follow #[514 "\301\300\302Q\"\207" ["https" browse-url "= :"] 6 "\n\n(fn URL ARG)"]) ("http" :follow #[514 "\301\300\302Q\"\207" ["http" browse-url ":"= ] 6 "\n\n(fn URL ARG)"]) ("ftp" :follow #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] = 6 "\n\n(fn URL ARG)"]) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-lin= k--open-elisp)) org-metaup-hook '(org-babel-load-in-session-maybe) )