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

>> What if you wrap your completing-read into save-excursion?
>
> That avoids the issue, of course. But to do that you have to know
> already that completing-read is the culprit of the unexpected point
> movement, which I do because I've invested some time on debugging the
> issue, but the regular user won't.

Maybe. But then it is a problem with completing-read.
It may be a genuine problem (or not), but I am replying from Org mode's
perspective here.

>> So, not a bug.
>> Canceled.
>
> Not so sure about that.

Well. Not a bug in Org mode.
Maybe there is a bug in Emacs.

> 1) Set this local hook in an Org buffer (which flycheck-mode did)
> ...

This recipe does not really require org-with-point-at.
(save-excursion (goto-char ...) ...) would produce the same.

> I guess for now I should bring the discussion to emacs-devel, since
> this is not exclusive to org mode, and see what they think. I'll
> update this thread once we decide something there

I think this will be best. Because what you describe is not really
specific to Org mode. Eli will be in better position to comment on the
problem.

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