-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run org-agenda-kill after introducing derived mode #102
Comments
Hi Alois, Thanks for catching this. I wasn't aware of the Anyway, as you noticed, other commands are broken by this as well. I guess I should revert the change that added the derived mode, at least for 0.4, because I didn't intend to break those commands. Instead, I can do another kind of check in the In the long term, the I'll push a fix for this in a little while. Thanks. |
I think that should do it. Please let me know if that fixes it for you. Thanks. |
Works well now, you fixed it, thanks for your quick response. When it comes to destructive remote editing from agenda buffers, I use As for your long term plans with |
Since
org-agenda-kill
explicitly requiresorg-agenda-mode
by this line(or (eq major-mode 'org-agenda-mode) (user-error "Not in agenda"))
at the beginning of its definition, after introducing
org-ql-view-mode
in ba7d4a2, user can no longer delete org headings from inside Org-QL buffer.This is loosely related to #35 in a sense that it shows that Org-mode sometimes tests and restricts execution of its org-agenda functions.
Temporary work-around for users until this is solved would be advising
org-agenda-kill
with:around
advice and overriding value ofmajor-mode
- which is not pretty.after searching
org-agenda.el
, more commands are using this equality test:org-agenda-capture
org-agenda-archive-with
org-agenda-kill-all-agenda-buffers
(but this fn is probably not relevant to org-ql)org-agenda-save-markers-for-cut-and-paste
(also not sure if relevant)The text was updated successfully, but these errors were encountered: