i duly saved this macro, didn't think to look for it, and used datefudge(1).
Thanks, maybe I was up too late to be messing with macros. :)
Adam Porter writes:
> Kyle Meyer writes:
[...]
>> You should be able to simplify the macro body to
>>
>> `(cl-letf (((symbol-function 'org-today) (lambda () (date-to-day
>> ,date
>>,@body)
>
> Hi Kyle,
>
> I tried that, but it didn't work, so I had to come up with this uglier
Kyle Meyer writes:
> Adam Porter writes:
>
>> #+BEGIN_SRC elisp
>> (defmacro with-org-today-date (date &rest body)
>> "Run BODY with the `org-today' function set to return simply DATE.
>> DATE should be a date-time string (both date and time must be included)."
>> (declare (indent de
Adam Porter writes:
> #+BEGIN_SRC elisp
> (defmacro with-org-today-date (date &rest body)
> "Run BODY with the `org-today' function set to return simply DATE.
> DATE should be a date-time string (both date and time must be included)."
> (declare (indent defun))
> `(let ((day (date