branch: externals-release/org
commit 3f5605e66c84dc05552c2046745c5a85acf8fc38
Author: Maxim Nikulin <maniku...@gmail.com>
Commit: Bastien <b...@gnu.org>

    org-agenda.el: Avoid dependency on subr-x
    
    * lisp/org-agenda.el (org-agenda-highlight-todo): Do not use 
`string-empty-p'.
    
    Restore compatibility with Emacs-24.3.
---
 lisp/org-agenda.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index c3fbabc..b6cd895 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7080,7 +7080,7 @@ The optional argument TYPE tells the agenda type."
            (setq x
                  (concat
                   (substring x 0 (match-end 1))
-                   (unless (string-empty-p org-agenda-todo-keyword-format)
+                   (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

Reply via email to