From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: [ELPA?] Controlling Isearch from the minibuffer Date: Fri, 21 May 2021 13:56:26 +0200 Message-ID: <87cztke1w5.fsf@gmail.com> References: <87zgx5cz33.fsf@gmail.com> <87o8djohqf.fsf@mail.linkov.net> <87eeeenxqq.fsf@gmail.com> <87h7jath3m.fsf@mail.linkov.net> <87mtt0wj37.fsf@gmail.com> <87cztvx4dc.fsf@mail.linkov.net> <87bl9fr7xh.fsf@gmail.com> <87tun6n12v.fsf@mail.linkov.net> <87lf8i8kba.fsf_-_@gmail.com> <875yzl6v3x.fsf@mail.linkov.net> <87v97i4jy7.fsf@mail.linkov.net> <87pmxqbjkm.fsf@gmail.com> <87im3cqwqz.fsf@gmail.com> <83y2c8mli7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15715"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: spacibba@aol.com, emacs-devel@gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 21 13:57:17 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lk3mE-0003pz-RY for ged-emacs-devel@m.gmane-mx.org; Fri, 21 May 2021 13:57:14 +0200 Original-Received: from localhost ([::1]:59508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lk3mD-0003Ou-Sr for ged-emacs-devel@m.gmane-mx.org; Fri, 21 May 2021 07:57:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lk3lY-0002bN-UZ for emacs-devel@gnu.org; Fri, 21 May 2021 07:56:32 -0400 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:46814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lk3lX-0001Qo-Gt; Fri, 21 May 2021 07:56:32 -0400 Original-Received: by mail-ed1-x534.google.com with SMTP id r11so22958249edt.13; Fri, 21 May 2021 04:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1vmWus1fj1nXuwLgEii0eIlKFBaiyLU9wO8p+eyPgRQ=; b=KoQ2bRvzY3lSk8hneeRWKsqW7DaH8ovhre0O7V+ap2LqABEesdH83ZmmlYiqYqjvSd IbV50xzZEDE0hYogpJF11Vm8pqx7cWK8th807F1gyj/cUoZTH/THcgp22/mAFH5BVvah H/F01OyHysclT6ZV7YacMxh+R3z2o0TNVv9qJQox9wCoFi8lx8bE6xIsmWE9fqaw8C7D kIN88XhPKrTemclUWUeSi4foZzfYgcQyNvFEnA60nCmNfPlu95glKD9QH0qwlkKb40xp 7HbYbIk9TsPhzNxtdAUUDGdr/LnGiHtaiDK2yYTJ2gCwSExOp2gDRPMbqv5mGlf3f+Ae HxuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1vmWus1fj1nXuwLgEii0eIlKFBaiyLU9wO8p+eyPgRQ=; b=lECmdHGP6ktQN08qPCKra7jClWHTTijmdFYpF2ovKKGwXMnlrAXW+3irBSt3UDUhpn pfVCo7ELi3TWDhKjGAypt4iN8NEUyRf+j41UKA4Lsx8mo/vFwGWbVYZg4dvlwthcd5hs dE5R/r0AtuPoQG3gXB0qE6Z2e0MHg5b6lyfmjD+Zg5j8GDQ9wqBcT/SRflOcopv0hKsT 1i/6CfooJPp9z37vV69BlOOxERTeMUZOW/D/chWJvqNtHmm0sHXcqhm/kyfg7ZfDqBSd JUp2EkBWgyTudnSaUsMEGNNX1HxZCLdzBDGSUVmfwvvT8H1RBW8bKdqRtrb8cHTvD1Ag QKSw== X-Gm-Message-State: AOAM530WIMOJ7JrPsAl+AuAO5OA5Fu3UzfbP/MK/tW4iPSvmmU6O6SOQ 3oQXwHh51N3FusNz1j/LI8StAF7RrLs= X-Google-Smtp-Source: ABdhPJzh083QZhOnYuXw7tig/SNOUzgrQbvIoQw45KahyR6B5N8UVPrSqomcJDefNXW378UGaSu3zw== X-Received: by 2002:a50:fd11:: with SMTP id i17mr10683663eds.23.1621598189488; Fri, 21 May 2021 04:56:29 -0700 (PDT) Original-Received: from ars3 ([2a02:908:2211:8540::66]) by smtp.gmail.com with ESMTPSA id f5sm3845656eds.55.2021.05.21.04.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 04:56:28 -0700 (PDT) In-Reply-To: <83y2c8mli7.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 May 2021 13:25:36 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269549 Archived-At: On Fri, 21 May 2021 at 13:25, Eli Zaretskii 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.