From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MPgcEKsHkGcR2AAAqHPOHw:P1 (envelope-from ) for ; Tue, 21 Jan 2025 20:46:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MPgcEKsHkGcR2AAAqHPOHw (envelope-from ) for ; Tue, 21 Jan 2025 21:46:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TNTEyJyA; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1737492395; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RxUEFJlK9My3h3UcrZJpePJZD3neQoEWgc8a2nJDdbs=; b=eVKLMlD+bXkm1EnYvbcN7vUmdh8dUDCHvqV7W7EYe04dR28L1brL8cRfUcf2g9rq3KI40n LQ+dusxZ2V399XfhNx22CdS4+92ZUhpDfrVzTwly3Kbc6n/6YQkapHmYNd2cqoRoHOGmkh AZn+WmxlZHXLSs8FZnd//Bp/v/jM8z1i0UvZpVTeuvKJUe3OQCzUSR1Ks5kdav3FBfEMg3 VbLLhliWBfJ1/J6DlSUOrlKXbzMzNoGyUiV/zY//bgX4YiQ90uGFyxkoYobcbAdiHytjRH ga4dD/GkQad9plJAqakFhnIc3R0tR1lq0P5lts6NJcCTCs1tRSgJl9QMQTWuyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TNTEyJyA; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1737492395; a=rsa-sha256; cv=none; b=LGxqG47CrAqOsGVIkyIgSJCaPtgsjMUjw+RWyNQeO2WAcCdMA9+9rrawwi9Q2E9/+3A0RC RgDQd/wBc5MAR2pU5ilAb9wWDpoqWeFM8dhJWKFyak/L8K3dZ8qLPxeYtpq3jnNso4sDFU QmhpYLtGsQUj2WpCqacFReqZjlq6Ip0LNv8NZcOhvDerqFhfXGz2T3saQydcEYkqGrpkt1 ScTxX6S9iOPaFSSWydVHS/wV9pl74A6inUws8Zx/Vh4oGctQbN49fzKuFxz2KnqC0RaqeV XFWh3tx6f4sDtSiUuLF4Zc9cP2RDn3s2YQl2M7zkOOwIu53An6j1mU6/+MR3vw== 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 E42F04410E for ; Tue, 21 Jan 2025 21:46:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1taL8e-0000TG-T2; Tue, 21 Jan 2025 15:46:21 -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 1taL8Y-0000R7-1r for emacs-orgmode@gnu.org; Tue, 21 Jan 2025 15:46:14 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1taL8U-0005ba-UT for emacs-orgmode@gnu.org; Tue, 21 Jan 2025 15:46:13 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8EB11240101 for ; Tue, 21 Jan 2025 21:46:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1737492368; bh=8Nw2ifketBjA6uL+ghslDh5fV3yBP3weaqBPdKU1+v4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=TNTEyJyAB8cbiiec593IiJaOVCFgW4W8A/dEffJo9Q4qUD7cTheIvm7s6nVYOH5AJ U1FpS/2+Im8qJVQDhurVI7M6DvEyr6YYxjjAMNoEtEHoLr6Rttcf9YevWrBdRyANfv 8ERUNtWHnpRKjAWQJh2jqnxdhi3IOv1Vv/CRKfJmgF2xGpxz6vSg5fmAyNhnFG7fiF WFfTPASVbkjXiIPcWk8gewimLLw5uVAs+rLBxwOk9g0OX6T7dBMZC+QF+B9USVA+VL s1bqkHHrmzujCE4UT6RGxCUABo8y83PR/jwiq83C1Zw4Sv5BIEfwRyoCxW5e9ViqVD FZFi1V6DwrUAQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Yczkm01PTz6tyx; Tue, 21 Jan 2025 21:46:07 +0100 (CET) From: Ihor Radchenko To: Mark Barton Cc: Org Mode List Subject: Re: [BUG] Warning (org-element): =?utf-8?Q?=E2=80=98org-element-a?= =?utf-8?Q?t-point=E2=80=99?= cannot be used in non-Org buffer # (org-agenda-mode) [9.7.11 (release_9.7.11 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)] In-Reply-To: <3E946F08-E2AD-48B3-B63A-319343D50A97@gmail.com> References: <3E946F08-E2AD-48B3-B63A-319343D50A97@gmail.com> Date: Tue, 21 Jan 2025 20:48:26 +0000 Message-ID: <87y0z3q4f9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Queue-Id: E42F04410E X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -2.27 X-Spam-Score: -2.27 X-TUID: z2mcIdL4YFhL Mark Barton writes: > I had tried modifying Org agenda to display the repeater in tasks as Wai > Hon's Blog documented a few weeks ago: > https://whhone.com/posts/org-agenda-repeated-tasks/ > > Below is the code that causes the org-element warning: > > (defun my/org-agenda-repeater () > "The repeater shown in org-agenda-prefix for agenda." > (if (org-before-first-heading-p) > "-------" ; fill the time grid > (format "%5s: " (or (org-get-repeat) "")))) > > ;; Add `my/org-agenda-repeater' to the agenda prefix. > (setcdr (assoc 'agenda org-agenda-prefix-format) > " %i %-12:c%?-12t%s%(my/org-agenda-repeater)") This code looks all right - org-agenda-prefix-format placeholders are evaluated with current buffer being Org buffer (normally). May you try to run M-x debug-on-entry RET display-warning RET and try triggering the warning? Then, you will see a backtrace with the full information about where the warning is triggered. (you can later disable the debugger via M-x cancel-debug-on-entry RET RET) -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at