Ignacio Casso San Román <[email protected]> writes:

> I submitted the bug to [email protected], resulting in the
> bug#79927 thread, which is hard to navigate in the mailing list
> archives but can be consulted in chronological order with this search:
> https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=79927&submit=Search%21&idxname=bug-gnu-emacs&max=20&result=normal&sort=date%3Aearly

yhetil.org is easier in this regard.

>> This recipe does not really require org-with-point-at.
>> (save-excursion (goto-char ...) ...) would produce the same.
>
> First of all, this is correct, I finally was able to narrow down the
> bug and it can be reproduced with this form, which is not specific to
> org-mode:
> ...
> But still, even though they are considering improvements in Emacs
> core, the takeaway from the bug#79927 discussion is that currently you
> can't run arbitrary code after `with-current-buffer` + `goto-char` and
> expect that the point is always still were you had moved it, if that
> buffer was in a non selected window. In this particular case it was
> the interaction between `window-configuration-change-hook` and a
> redisplay, but a few other background processes could also force a
> resync of the buffer point with the window point.

Sure.

> So I still think it's worth improving this in org-mode. Even if it's
> not an org-mode bug, it's a known limitation that in the specific case
> of org-mode it can be avoided, so I would do it. Here are a few
> relevant emails in the thread related to this:
> - https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-12/msg00171.html
> - https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-12/msg00179.html
> - https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-12/msg00193.html
> - https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-12/msg00448.html
>
> Please let me know what you think and if you want me to submit a patch
> or let it be.

What exactly do you think should be fixed on Org side?

-- 
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