[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] org-agenda.el: Avoid dependency on subr-x
From: |
Tim Cross |
Subject: |
Re: [PATCH] org-agenda.el: Avoid dependency on subr-x |
Date: |
Thu, 05 Aug 2021 08:11:34 +1000 |
User-agent: |
mu4e 1.6.1; emacs 28.0.50 |
Note that compatibility with 24.3 was not the cause of the OP original
issue (they were running 26.3).
Do we really want to maintain compatibility with Emacs 24.3? That
version was released over 8 years ago and I suspect there are other
areas of org which are not compatible with that version. Note also that
the subr-x and string-empty-p were introduced in Emacs 24.4. If we are
going to support Emacs 24, I think it is reasonable it be 24.4 rather
than aiming for all 24 releases.
I don't think this patch is required, especially since we have not had
any bug reported relating to that version.
Maxim Nikulin <manikulin@gmail.com> writes:
> * 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