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.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: Mon, 28 Sep 2020 09:10:21 +0300 Message-ID: <83r1qmmnxu.fsf@gnu.org> References: <834knnuugm.fsf@gnu.org> <83h7rnt8s3.fsf@gnu.org> <833633nqru.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="737"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ghe@sdf.org, 43572@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 28 08:11:08 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 1kMmNQ-000Aar-OE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Sep 2020 08:11:08 +0200 Original-Received: from localhost ([::1]:51544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMmNP-0002ee-KF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Sep 2020 02:11:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMmNK-0002eX-4R for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2020 02:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMmNJ-00064c-Rx for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2020 02:11:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kMmNJ-0000v4-Ny for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2020 02:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2020 06:11:01 +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.16012734413508 (code B ref 43572); Mon, 28 Sep 2020 06:11:01 +0000 Original-Received: (at 43572) by debbugs.gnu.org; 28 Sep 2020 06:10:41 +0000 Original-Received: from localhost ([127.0.0.1]:51233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMmMz-0000uV-EG for submit@debbugs.gnu.org; Mon, 28 Sep 2020 02:10:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMmMx-0000uH-GJ for 43572@debbugs.gnu.org; Mon, 28 Sep 2020 02:10:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37612) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMmMs-0005xk-AA; Mon, 28 Sep 2020 02:10:34 -0400 Original-Received: from [176.228.60.248] (port=1629 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kMmMr-00025d-N8; Mon, 28 Sep 2020 02:10:34 -0400 In-Reply-To: (message from Stefan Monnier on Sun, 27 Sep 2020 17:52:21 -0400) 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:189180 Archived-At: > From: Stefan Monnier > Cc: ghe@sdf.org, 43572@debbugs.gnu.org > Date: Sun, 27 Sep 2020 17:52:21 -0400 > > >> This sounds like the same idea of a text property, only with an > >> overlay and a more complicated test for applicability. When I said > >> "text property", I meant both text and overlay property, so if you > >> think your proposal above is less difficult/inconvenient, then using > >> just an overlay would be even simpler, no? Or what am I missing? > > My motivation was to solve the issue of finding the relevant overlay. > But yes, we could also just try and find "the overlay that covers point > and which has a non-nil `scroll-focus` property". We'll just have to be > careful to properly handle the case where point is exactly at > `overlay-start` or `overlay-end`. I actually thought about putting the text property or overlay on the first character of the text inserted into the minibuffer, something that can be done in a minibuffer-setup-hook. This way, it will be easy to find. Of course, having that on any other part of the text will not make the job much harder, either.