Re: org-todo-state-tags-triggers not working with regexp?

2023-06-29 Thread Ypo
Solved, thanks! :-) ;;;_ borrar todas las etiquetas al cambiar el estado a HECHO (defun borrar-etiquetas-tareas-hechas (plist)   "Borra todas las etiquetas al cambiar una tarea a =HECHO=."   (when (eq (plist-get plist :type) 'todo-state-change)     (when (string= (plist-get plist :to) "HECHO")   

Re: org-todo-state-tags-triggers not working with regexp?

2023-06-27 Thread Ihor Radchenko
Ypo writes: > I have tried gptel inside emacs (I'm sorry, but I need to tell it) and I > got this code: > > #+begin_src emacs-lisp > (defun my-org-trigger-function (state) >   "Remove all tags when state changes to 'DONE'" >   (when (string= state "DONE") > ... > (add-hook 'org-trigger-hook

Re: org-todo-state-tags-triggers not working with regexp?

2023-06-27 Thread Ypo
Hi, Ihor. I have tried gptel inside emacs (I'm sorry, but I need to tell it) and I got this code: #+begin_src emacs-lisp (defun my-org-trigger-function (state)   "Remove all tags when state changes to 'DONE'"   (when (string= state "DONE")     (org-toggle-tag nil 'remove))) (add-hook

Re: org-todo-state-tags-triggers not working with regexp?

2023-06-11 Thread Ihor Radchenko
Ypo writes: > I would like to remove every tag when changing to done state. > > This is not working: > >  '(org-todo-state-tags-triggers '((done ("(.*)" > > This works though: > >  '(org-todo-state-tags-triggers '((done ("Atag" Yes, regexps are not supported in

org-todo-state-tags-triggers not working with regexp?

2023-06-11 Thread Ypo
Hi I would like to remove every tag when changing to done state. This is not working:  '(org-todo-state-tags-triggers '((done ("(.*)" This works though:  '(org-todo-state-tags-triggers '((done ("Atag" Best regards