From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: A solution to display completion candidates after point in a minibuffer Date: Sat, 03 Oct 2020 11:25:48 +0300 Message-ID: <831rifhg1f.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9266"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ghe@sdf.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 03 10:26:37 2020 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 1kOcsH-0002K4-63 for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Oct 2020 10:26:37 +0200 Original-Received: from localhost ([::1]:53216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOcsG-0000HW-6q for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Oct 2020 04:26:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOcrc-0008JY-RD for emacs-devel@gnu.org; Sat, 03 Oct 2020 04:25:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51638) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOcra-0001R3-Kr; Sat, 03 Oct 2020 04:25:55 -0400 Original-Received: from [176.228.60.248] (port=4354 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOcrV-0002im-UP; Sat, 03 Oct 2020 04:25:52 -0400 In-Reply-To: (message from Stefan Monnier on Fri, 02 Oct 2020 20:10:46 -0400) 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:256990 Archived-At: > From: Stefan Monnier > Date: Fri, 02 Oct 2020 20:10:46 -0400 > Cc: emacs-devel@gnu.org > > >> IIRC the reason it won't scroll the second time around is because point > >> should be visible (and redisplay would only scroll in order to move point > >> within view). > > I don't know, but I'm not sure about that. If you (set-window-start nil 1) > > unconditionally in window-scroll-functions, this setting will be obeyed by > > redisplay, even if point is not visible anymore. > > Oh, indeed, in that case it would move point instead. No, it could also reject the start-point and try anew, see try_window.