From 4125d3ff9e4f26c3346b847288cad3e69a38da23 Mon Sep 17 00:00:00 2001 From: memeplex Date: Fri, 22 Feb 2019 00:32:58 -0300 Subject: [PATCH] org-agenda: don't show trailing color if no matcher * lisp/org-agenda.el (org-agenda-get-restriction-and-command): when no matcher was specified there is no point in showing a trailing colon (and space). --- lisp/org-agenda.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index ff98cd65d..ab50d4274 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -3027,7 +3027,8 @@ s Search for keywords M Like m, but only TODO entries (symbol-name type) "Lambda expression")) (t "???")))) - (if org-agenda-menu-show-matcher + (if (and org-agenda-menu-show-matcher + match (not (string-empty-p match))) (setq line (concat line ": " (cond -- 2.20.1