From: Mark Barton <mbarton98@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: [BUG] Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *Org Agenda*> (org-agenda-mode) [9.7.11 (release_9.7.11 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]
Date: Tue, 21 Jan 2025 12:26:17 -0800 [thread overview]
Message-ID: <3E946F08-E2AD-48B3-B63A-319343D50A97@gmail.com> (raw)
--text follows this line--
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 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)")
Emacs : GNU Emacs 31.0.50 (build 1, x86_64-apple-darwin24.2.0, NS appkit-2575.30 Version 15.2 (Build 24C101))
of 2025-01-20
Package: Org mode version 9.7.11 (release_9.7.11 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)
For now I just commented out the code that attempts to add the repeater
to Org Agenda, but it is easy for me to reproduce if you need further information.
Thanks,
Mark Barton
next reply other threads:[~2025-01-21 20:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-21 20:26 Mark Barton [this message]
2025-01-21 20:48 ` [BUG] Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *Org Agenda*> (org-agenda-mode) [9.7.11 (release_9.7.11 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)] Ihor Radchenko
2025-01-21 23:06 ` Mark Barton
2025-01-22 1:09 ` Mark Barton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E946F08-E2AD-48B3-B63A-319343D50A97@gmail.com \
--to=mbarton98@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).