emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG: org-agenda-entry-text-cleanup-hook not working
@ 2021-05-14 18:05 Michael Dauer
  2021-05-15  9:03 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Dauer @ 2021-05-14 18:05 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

Hi,

org-agenda-entry-text-cleanup-hook is not called when agenda is produced.
Org mode version 9.3.6 (release_9.3.6-471-g9e385d

Prove:
  (defun ct-clean-agenda-entry ()
    (message "XXX1"))
  (add-hook 'org-agenda-entry-text-cleanup-hook 'ct-clean-agenda-entry)

But there is no output while agenda is displayed with a lot of entries.

I don't know why because in org-agenda-get-some-entry-text there is an
unconditional
(run-hooks 'org-agenda-entry-text-cleanup-hook)

[-- Attachment #2: Type: text/html, Size: 684 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUG: org-agenda-entry-text-cleanup-hook not working
  2021-05-14 18:05 BUG: org-agenda-entry-text-cleanup-hook not working Michael Dauer
@ 2021-05-15  9:03 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2021-05-15  9:03 UTC (permalink / raw)
  To: Michael Dauer; +Cc: emacs-orgmode

Hi Michael,

Michael Dauer <mick.dauer@gmail.com> writes:

> But there is no output while agenda is displayed with a lot of
> entries.
>
> I don't know why because in org-agenda-get-some-entry-text there is
> an unconditional
> (run-hooks 'org-agenda-entry-text-cleanup-hook)

Can you try to see if the hook is run when pressing `E' in an agenda?

-- 
 Bastien


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-15  9:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-14 18:05 BUG: org-agenda-entry-text-cleanup-hook not working Michael Dauer
2021-05-15  9:03 ` Bastien

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).