emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org 847e332301: lisp/org-agenda.el: Fix bug in


From: ELPA Syncer
Subject: [elpa] externals-release/org 847e332301: lisp/org-agenda.el: Fix bug in `org-agenda-highlight-todo'
Date: Mon, 21 Mar 2022 03:57:44 -0400 (EDT)

branch: externals-release/org
commit 847e3323018afef850c7e5a3bb159ace6e17d309
Author: Samim Pezeshki <psamim@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    lisp/org-agenda.el: Fix bug in `org-agenda-highlight-todo'
    
    * lisp/org-agenda.el (org-agenda-highlight-todo): Skip formatting
    the to-do keyword when `org-agenda-todo-keyword-format' is the
    empty string.
    
    TINYCHANGE
---
 lisp/org-agenda.el | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index ae0058e037..3f7804f789 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7180,12 +7180,13 @@ The optional argument TYPE tells the agenda type."
                  (concat
                   (substring x 0 (match-end 1))
                    (unless (string= org-agenda-todo-keyword-format "")
-                    (format org-agenda-todo-keyword-format
-                            (match-string 2 x)))
-                   ;; Remove `display' property as the icon could leak
-                  ;; on the white space.
-                  (org-add-props " " (org-plist-delete (text-properties-at 0 x)
-                                                        'display))
+                     (format org-agenda-todo-keyword-format
+                             (match-string 2 x)))
+                   (unless (string= org-agenda-todo-keyword-format "")
+                     ;; Remove `display' property as the icon could leak
+                     ;; on the white space.
+                     (org-add-props " " (org-plist-delete (text-properties-at 
0 x)
+                                                          'display)))
                    (substring x (match-end 3)))))))
       x)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]