Ignacio <[email protected]> writes:

> It's basically the same problem as the I bug reported
> originally. Again, a simple solution on my side is adding
> `save-excursion' to the hook I wrote. But this time I think it makes
> more sense to fix it in Org Mode, we could just run the hook inside a
> `save-excursion' in the original `org-todo' function. What do you think?

Yes, it would make sense.
Probably for other similar hooks as well.
When a caller of the hook assumes that point is not moved, we may as
well enforce that assumption explicitly.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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>

Reply via email to