Comments (15)
See https://lists.gnu.org/archive/html/emacs-orgmode/2023-03/msg00145.html for a patch against upstream.
from org-modern.
Okay, I will close this here. I checked the Org source and it is really unclear if the keywords should be made available via these variables. I also don't understand why we even have the separate *-for-agenda
variables. Instead the normal keyword variables could be bound in the agenda buffer. Furthermore I don't understand why all these variables are public if they are supposed to be implementation details. Most global variables are also undocumented, which according to my standards is unnacceptable. The Org code base has grown organically and it is very chaotic. I hope that it gets cleaned up over time. There have been improvements already but progress is not as fast as one would hope. Understandably, such janitorial work does not seem to be a priority of the maintainers. My approach is usually to refactor a bit and clean up before adding new functionality, but this is easier said than done for a large system with a long history.
from org-modern.
from org-modern.
Thanks! It seems the fix got already applied in the Org main branch, see https://lists.gnu.org/archive/html/emacs-orgmode/2023-03/msg00183.html.
from org-modern.
Thanks for the report. It seems that the variable org-done-keywords-for-agenda
is always set properly. Only org-todo-keywords-for-agenda
is not initialized for C-c a n
. I consider this a bug in Org. So we should not add a workaround here.
from org-modern.
from org-modern.
Was this bug reported upstream? I see that org-modern still doesn't work with custom agendas running an up-to-date org-mode master branch.
from org-modern.
@skangas I am not sure. For the agenda styling, this is the relevant code:
Lines 656 to 660 in cef71f8
It is unclear on which variables we can rely in the agenda buffer.
from org-modern.
Not sure if this is related, but the alignment in the custom agenda is also messed up:
The alignment also changes when the files (and headlines) are visited.
from org-modern.
@dschrempf For me everything is aligned. This probably depends on some additional settings in your config. The screenshot you've posted is also too small to tell. Can you create a minimal example which shows the issue on emacs -Q?
from org-modern.
No one found a workaround for this?
from org-modern.
@AndreaOrru I think this should be fixed upstream in Org itself. The variables don't seem to be initialized properly, see #26 (comment). You could report a bug on the Org bug tracker.
from org-modern.
from org-modern.
Sorry for bumping this, but is there a regression? I am on Org 9.6.9, and I again have misaligned TODO items and org-todo-keywords-for-agenda
nil
.
Adding the following snippet to my init file fixes the issue:
(add-hook 'org-agenda-finalize-hook
(lambda ()
(setq-local org-todo-keywords-for-agenda '("TODO" "NEXT" "WTNG"))))
Funny enough, org-done-keywords-for-agenda
is set properly.
from org-modern.
@dschrempf Yes, it seems there is a regression in Org if this stopped working again. See also #158.
from org-modern.
Related Issues (20)
- Top 2 level default fold glyphs not support by many fonts HOT 8
- New folding indicators do not render well in doom Emacs HOT 2
- Second level folding indicator showing wrong state after folding top level heading
- org-modern-tag-faces does not work as expected HOT 1
- Opt-out for fold indicators? HOT 1
- Can this package work with `visual-fill-column-center-text' set to t?
- fold-stars doesn't work well when org-cycle twice on header HOT 1
- readme screenshot image no longer visible on github
- Org agenda tags go outside the buffer
- Have fringe around dynamics block, like the one around source block.
- org-modern todo stopped working on custom agenda views
- Wrong bullet character HOT 1
- Clock and [%] headlines not aligning properly
- Org-table alignment (divider rows)
- org-modern breaks on blocks that are rendered later
- Timestamps in buffer settings HOT 1
- static-if not available in emacs 29.4 HOT 1
- New invalid-function error with static-if HOT 3
- Triggers (invalid-function static-if) constantly HOT 3
- Change to compat v30 breaks installation on debian systems 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-modern.