[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-set-tags function will overwrite original tags when use it pragm
From: |
Nicolas Goaziou |
Subject: |
Re: org-set-tags function will overwrite original tags when use it pragmatically |
Date: |
Sat, 25 Apr 2020 09:55:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
stardiviner <address@hidden> writes:
> I use function ~org-set-tags~ pragmatically like this:
[...]
> But I found a problem, it will overwrite original tags. It's not appending
> method.
Well, it is expected according to its docstring, isn't it?
> I hope this function can be improve to suitable for this purpose. What about
> and
> optional argument of this function to decide overwrite or append
> method?
I think
(org-set-tags (cons "LOG" (org-get-tags nil t)))
is enough. No need to add arguments.
Regards,
--
Nicolas Goaziou