When creating new notes with denote, the echo area shows a prompt "Non-existent agenda file _org-file-name_. [R]emove from list or [A]bort?" #433
-
It only happens when creating org files when It's waiting the user to response to it, before the created org file is switched to.
And the message buffer outputs:
This happens when I have a function that invokes When I remove it from the hook, the issue disappears. Relevant issue post on this: https://www.reddit.com/r/emacs/comments/1bnhz24/bug_nonexistent_agenda_file_s/ I don't know this is either the issue of Here's the code that's related to the function:
If this is not caused by |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I didn't configure any agenda related settings in my configuration file. I don't what caused this.. Here's the demo: denote-agenda-discussion.mp4 |
Beta Was this translation helpful? Give feedback.
-
From: IceAsteroid ***@***.***>
Date: Fri, 13 Sep 2024 05:43:07 -0700
It only happens when creating org files when `denote`, when I use
`find-file` to create or open an org file, this issue doesn't occor.
And the message buffer outputs:
```
Non-existent agenda file ~/OrgWiki_Test/20240913T111111--TestOrgFile__emacs.org. [R]emove from list or [A]bort?
File mode specification error: (user-error Abort)
```
This error means that at some point you had that TestOrgFile in your
'org-agenda-files', but it is not there anymore.
Try to explicitly set the value of 'org-agenda-files' and see what
happens. I do not think this is related to Denote.
Examples:
;; Include only those files.
(setq org-agenda-files '("/path/to/file/one.org" "/path/to/file/two.org"))
;; Include all files inside of the `org-directory'.
(setq org-agenda-files (list org-directory))
…--
Protesilaos Stavrou
https://protesilaos.com
|
Beta Was this translation helpful? Give feedback.
-
Good news, the following code as I linked in the description works The issue was triggered by Here's the code by a deleted user in reddit:
Note: If someone has encountered this issue: It's because the latest version of org.el still doesn't contain the fix as mentioned in the link on reddit, you need to use the following code as a workaround.
Sorry for the noise. |
Beta Was this translation helpful? Give feedback.
Good news, the following code as I linked in the description works
The issue was triggered by
org-map-entries
.Here's the code by a deleted user in reddit:
Note: If someone has encountered this issue: It's because the latest version of org.el still doesn't contain the fix as mentioned in the link on reddit, you need to use the following code as a workaround.