[SOLVED] Re: org-set-tags function will overwrite original tags when use it pragmatically

2020-04-25 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicolas Goaziou writes: > Hello, > > stardiviner 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

Re: org-set-tags function will overwrite original tags when use it pragmatically

2020-04-25 Thread Nicolas Goaziou
Hello, stardiviner 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

org-set-tags function will overwrite original tags when use it pragmatically

2020-04-25 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 I use function ~org-set-tags~ pragmatically like this: #+begin_src emacs-lisp (defun my/org-add-note--auto-add-tag () "Auto add tag 'NOTE' when add note log." (org-back-to-heading) (org-set-tags '("LOG"))) (advice-add 'org-add-note :after