branch: externals/org
commit 751de02127b97d0cdd2192d16f89eadfe40627bc
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>
org-agenda-dim-blocked-tasks: Prioritize face over other overlays
* lisp/org-agenda.el (org-agenda-dim-blocked-tasks): Use high overlays
priority when adding dimmed face. Otherwise, contained overlays, like
created by `org-agenda-fontify-priorities', will take
priority (default Emacs behavior).
Reported-by: Mark Kerr <[email protected]>
Link:
https://orgmode.org/list/CAM9qJ5+C3nvbNaJyq6ofRgPsuAMcaBD=2un-n96kb68nbbx...@mail.gmail.com
---
lisp/org-agenda.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index eda2489384..05f2e36695 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4166,7 +4166,9 @@ dimming them." ;FIXME: The arg isn't
used, actually!
(line-beginning-position))
(line-end-position))))
(when todo-blocked
- (overlay-put ov 'face 'org-agenda-dimmed-todo-face))
+ (overlay-put ov 'face 'org-agenda-dimmed-todo-face)
+ ;; Override other overlays.
+ (overlay-put ov 'priority 50))
(when invisible
(org-agenda-filter-hide-line 'todo-blocked)))
(if (= (point-max) (line-end-position))