Duy Nguyen <ddnguyen2...@gmail.com> writes: > Thanks for letting me know. The reason I chose that method is because the > org-macro-templates are not updated immediately after I change the title > and save the file. However, I think I found a solution using > org-macro-initialize-templates and org-macro-templates. Please see the > attached patch. Hope this is OK, otherwise please let me know how to > improve.
Thanks for the update! Applied onto main via 2cc2d8f1f with amendments. I fixed on double space " " between sentences, removed autoload cookie (that function is not used outside org-clock), and altered the docstring making the first line a single sentence and clarifying about the return value a bit. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2cc2d8f1f6265d12c92b734931f2e3e417276b05 -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92