emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ELPA?] Controlling Isearch from the minibuffer


From: Augusto Stoffel
Subject: Re: [ELPA?] Controlling Isearch from the minibuffer
Date: Fri, 21 May 2021 13:56:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

On Fri, 21 May 2021 at 13:25, Eli Zaretskii <eliz@gnu.org> wrote:

>> Is there any way to disable the automatic recentering (which doesn't
>> involve saving the window bounds beforehand and then undoing it)?
>
> Disable and do what instead?  Emacs scrolls a window when point goes
> out of view.  What would you like it to do instead of recentering?
> Since this is just a window, the same options that control scrolling
> in other windows can do it here as well.

If you evaluate the following in a sufficiently long buffer,

    (minibuffer-with-setup-hook
        (lambda () (scroll-other-window 100))
      (read-from-minibuffer "Pressing RET now will recenter"))

then the point will be at the top of the window.  From there, pressing
RET shifts the window so that the point is in the middle (the point
itself doesn't move).

I just want there to be no recentering, i.e., leave `window-start' where
the point is.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]