[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] org-agenda.el: Avoid dependency on subr-x
From: |
Вячеслав Гришин |
Subject: |
[PATCH] org-agenda.el: Avoid dependency on subr-x |
Date: |
Thu, 5 Aug 2021 00:41:40 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 |
Thank you very much, Maxim. Now I don't know if I need to do something extra,
because the problem arose because of my mistake.
When I removed the second version of Org and the extra code from .emacs,
everything worked. I don't know how to explain it, because I'm just starting to
learn emacs and lisp
On 04.08.2021 18:20, Maxim Nikulin wrote:
> * 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 c3fbabc01..b6cd895bc 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
>