The `recenter` is useful for keeping position. I checked docstring of `recenter`, have no clue how to implement a better solution. I also thinked about ways like `with-current-buffer` etc. But can get around the `recenter`.

Does anybody have any idea?

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


On Mon, Jul 27, 2020 at 3:46 PM Marco Wahl <marcowahlsoft@gmail.com> wrote:
"numbchild@gmail.com" <numbchild@gmail.com> writes:

[...]

> I dive into source code of ~org-agenda-redo~ function.
> Found this error is caused by ~(recenter window-line)~.
>
> I'm thinking what about to separate this code out? So function
> ~org-agenda-redo~ can be used to non-interactive usage?

My gut feeling says this is a good idea.

Do you have a concrete implementation yet?


Best regards,
--
Marco