Comments (11)
@k11m1 Thanks. Until this is fixed, you'll have to either not use the habit selector, or use Org 9.6.
from org-super-agenda.
Please see https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fac55324accbcab08dfebbde8295b2f1b4b9f45e, which demotes the error to a warning.
from org-super-agenda.
Hello,
I don't understand. Please start from the beginning and explain the problem in context. As well, please provide a minimal reproducible example. And, of course, include the versions of all relevant software. You know, all the standard bug-report info.
from org-super-agenda.
See also: alphapapa/org-ql#364
from org-super-agenda.
I think i have the same issue, at least removing habit fixes it:
Config in org-agenda-custom-commands:
("t" "test"
((agenda "" ((org-agenda-span 'day)
(org-super-agenda-groups
'((:name "Timeline"
:time-grid t)
(:habit t)
)
)))))
Shows without debug:
if: ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *Org Agenda(t)*> (org-agenda-mode)
Trace: https://gist.github.com/k11m1/fa6d819d247ef9e8b69d31bf0e659f2a
Removing (:habit t)
makes the error go away.
I am using Latest doom emacs (as of 2023-09-25), on Arch Linux.
- GNU Emacs 29.1
- Org 9.7
- I am on: 4efc0bd * master origin/master replaced Meta: Update .gitignore
from org-super-agenda.
@alphapapa No problem. I am not using the habit selector actively so disabling it for me fixed all the problems.
from org-super-agenda.
from org-super-agenda.
Adam Porter @.***> writes:
@k11m1 Thanks. Until this is fixed, you'll have to either not use the habit selector, or use Org 9.6.
Another option is to comment out the check in org-element.el that causes the issue.
Sure, just be sure to recompile that file afterward, otherwise you'll get reduced performance from its being interpreted.
from org-super-agenda.
The root cause is emacs-straight/org-mode@f135954.
Determining whether something is a habit will involve a call to org-element-at-point
, which now errors when not in org-mode
. This is normally not a problem, as agenda items processed in their home buffer in org-mode
. But there's (at least) one exception: Hourly lines/separators in the time grid (like 10:00 .....
) aren't real org items, and they're "processed" in the org-agenda
buffer in org-agenda-mode
.
The simple fix is to evaluate whether an item is a habit only (when (derived-mode-p 'org-mode))
. See https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a1fa52197 for a similar fix inside org.
I had a similar issue with a org-agenda-prefix-format
that makes a call to (org-get-category)
.
from org-super-agenda.
AFAICT the problem here is shown in these lines from the backtrace:
org-is-habit-p(nil)
(if (org-is-habit-p (org-super-agenda--get-marker item))
That shows that (org-super-agenda--get-marker item)
is returning nil for the item rather than the item's marker. If it were returning the marker, org-is-habit-p
would call org-entry-get
with the marker, which uses org-with-point-at
, which changes to the marker's buffer, which would mean being in the org-mode
buffer, which would mean no problem.
org-super-agenda--get-marker
is expanded to (org-find-text-property-in-string 'org-marker s)
, so the problem appears to be that the string from the agenda buffer does not have an org-marker
property.
So could someone who's experiencing this problem please, e.g. do C-u C-x =
on an entry in the agenda buffer and share whether the org-marker
property is set to a marker? As well, check for an org-hd-marker
property (AFAIK the agenda used to set both, but...).
from org-super-agenda.
Besides that, I can't reproduce this problem (or any problem) with the habit selector using Org 9.7.5 and Emacs 29.4 and org-super-agenda from master
. I don't know what happened, or if something else fixed it. Anyway, closing this now. Feel free to chime in if it's still a problem.
from org-super-agenda.
Related Issues (20)
- Placing cursor on top of group heading changes the keymap and replaces the org-agenda buffer with a calendar when pressed `j ` both on Spacemacs and Doom Emacs HOT 3
- There is error -remove: Symbol’s function definition is void: s-blank-str? HOT 1
- Add explicit :or operator for use within :and operator? HOT 3
- Apply face transformation to item only if cheduled HOT 3
- How to use :property properly? HOT 2
- :property selector doesn't recognize properties set in a file's header HOT 1
- Is it possible to reuse blocks of org-super-agenda settings? HOT 1
- question on using org-ql HOT 2
- Selector to match diary entries (was: how to exclude diary entries) HOT 1
- `:deadline nil` or/and `:scheduled nil` not working HOT 1
- Why does an agenda window automatically open every time I start emacs after installing the plug-in "org-super-agenda"? How can I prevent this behavior? HOT 2
- auto-group causes `wrong-type-argument buffer-or-string-p` with `org-todo-list` HOT 3
- `org-super-agenda-header-separator`/`org-super-agenda-final-group-separator` need to be considered as well when hiding empty groups HOT 3
- Sort order within a group: "Wrong type argument: sequencep, :auto-ts" HOT 5
- [ENH] add `:auto-matching-tags` or `:auto-tags-regex` HOT 5
- Root items of outline-path look like they're part of the previous group HOT 1
- Add filename to outline-path HOT 1
- Show number of items in group headings HOT 2
- Items not showing on time grid as expected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-super-agenda.