Re: [O] [bug] changing TODO status with org-after-todo-state-change-hook defined fails
Hi Sébastien, Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: I think we should see the 8 of March as reference date for fixing the start date (or length, depending on how we see it) of the warning delay. That's now the case, thanks for reporting this. -- Bastien
Re: [O] [bug] changing TODO status with org-after-todo-state-change-hook defined fails
Hi Eric, Eric S Fraga e.fr...@ucl.ac.uk writes: #+begin_src emacs-lisp (add-hook 'org-after-todo-state-change-hook '(lambda () ;; remove the scheduled date/time if present as the activity is no longer mine ;; based on a suggestion by Manish on the org-mode mailing list (if (string= org-state WAIT) (org-schedule t #+end_src You need to use (org-schedule '(4)) here, this is part of a change in master that allows to use C-u C-u C-c C-s to add a delay (and same for C-u C-u C-c C-d which adds a warning delay.) Any suggestions (other than remove the hook ;-)? HTH! -- Bastien
Re: [O] [bug] changing TODO status with org-after-todo-state-change-hook defined fails
Bastien b...@altern.org writes: Hi Eric, Eric S Fraga e.fr...@ucl.ac.uk writes: #+begin_src emacs-lisp (add-hook 'org-after-todo-state-change-hook '(lambda () ;; remove the scheduled date/time if present as the activity is no longer mine ;; based on a suggestion by Manish on the org-mode mailing list (if (string= org-state WAIT) (org-schedule t #+end_src You need to use (org-schedule '(4)) here, this is part of a change in master that allows to use C-u C-u C-c C-s to add a delay (and same for C-u C-u C-c C-d which adds a warning delay.) HTH! It does indeed! I did read the description of org-schedule to remind myself of why I had what I did there but I kind of skimmed over the universal argument bit... blush However, I would suggest that a more graceful exit might be good? I still do not understand why the log message wasn't prompted for. Anyway, thanks: my setup is working again as it should! -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3f-1313-g7d4812
Re: [O] [bug] changing TODO status with org-after-todo-state-change-hook defined fails
Hi Bastien, Bastien wrote: Eric S Fraga e.fr...@ucl.ac.uk writes: You need to use (org-schedule '(4)) here, this is part of a change in master that allows to use C-u C-u C-c C-s to add a delay (and same for C-u C-u C-c C-d which adds a warning delay.) I find the use of C-u C-u C-c C-d full of promise, but not yet there: I do C-c C-d and set a deadline on Fri 8 of March. I do C-u C-u C-d C-d and S-Left twice: in the agenda, I see the date moving to the 27 of Feb, 2 days before today; but the warning will be applied starting 2 days (the count is right) before the 8 of March. I think we should see the 8 of March as reference date for fixing the start date (or length, depending on how we see it) of the warning delay. It's even more weird if we S-Right from the current date: it seems that the difference in days is taken in absolute value, but I'm not even sure of that. Is it possible to put the reference date correctly when we call C-u C-u C-c C-d? Best regards, Seb -- Sebastien Vauban