From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#43572: Feature request: make it possible to choose whether the first lines of the minibuffer should be displayed instead of the last ones Date: Thu, 24 Sep 2020 14:27:54 +0000 Message-ID: References: <834knnuugm.fsf@gnu.org> Reply-To: Gregory Heytings Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13182"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.22 (NEB 394 2020-01-19) Cc: 43572@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 24 16:28:53 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kLSEv-0003KH-Kb for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 16:28:53 +0200 Original-Received: from localhost ([::1]:54460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLSEu-00067n-I1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 10:28:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLSEA-0005kp-HH for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 10:28:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLSE6-00043e-82 for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 10:28:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLSE6-00024C-5E for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 10:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2020 14:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43572 X-GNU-PR-Package: emacs Original-Received: via spool by 43572-submit@debbugs.gnu.org id=B43572.16009576817937 (code B ref 43572); Thu, 24 Sep 2020 14:28:02 +0000 Original-Received: (at 43572) by debbugs.gnu.org; 24 Sep 2020 14:28:01 +0000 Original-Received: from localhost ([127.0.0.1]:41164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSE4-00023x-VX for submit@debbugs.gnu.org; Thu, 24 Sep 2020 10:28:01 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:55646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSE2-00023n-FV for 43572@debbugs.gnu.org; Thu, 24 Sep 2020 10:28:00 -0400 Original-Received: from sdf.org (IDENT:ghe@otaku.sdf.org [205.166.94.8]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 08OERvlT002972 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 24 Sep 2020 14:27:57 GMT Original-Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 08OESBJq016426; Thu, 24 Sep 2020 14:28:11 GMT In-Reply-To: <834knnuugm.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188857 Archived-At: > > There are more callers of resize_mini_widow than just those. It is not > safe to assume that this can be handled only inside read_minibuf. > Please have a look at my corrected patch. It handles this inside read_minibuf() *and* read_minibuf_unwind(), which AFAICS should make the change to start_display_at_beginning_of_minibuffer last only for the time it should last. If that's not the case, could you please provide a recipe? I'm willing to improve the patch a second time if it's necessary. > > So I agree with Stefan that the text inserted into the minibuffer should > itself indicate to the display engine that it wants to be displayed > starting at BOB. That way we don't have to worry about inadvertently > affecting other users of the mini-window. > That's a possibility indeed, and I agree that it would be even better, but as I said this is several orders of magnitude harder to implement, and unlikely to happen in a near future.