From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: UP and DOWN with multi-line minibuffer history Date: Thu, 17 Dec 2015 02:49:03 +0200 Organization: LINKOV.NET Message-ID: <87bn9pgagg.fsf@mail.linkov.net> References: <83wpsj6978.fsf@gnu.org> <87y4czz63l.fsf@mail.linkov.net> <83lh8y5q3k.fsf@gnu.org> <87d1u9vqni.fsf@mail.linkov.net> <83d1u94s23.fsf@gnu.org> <87r3ioegmq.fsf@mail.linkov.net> <83r3io2xgv.fsf@gnu.org> <87mvtbgrna.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1450314728 8819 80.91.229.3 (17 Dec 2015 01:12:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Dec 2015 01:12:08 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 17 02:11:52 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a9N6m-0006Wi-6T for ged-emacs-devel@m.gmane.org; Thu, 17 Dec 2015 02:11:52 +0100 Original-Received: from localhost ([::1]:50179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9N6l-0001N6-BJ for ged-emacs-devel@m.gmane.org; Wed, 16 Dec 2015 20:11:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9N6Q-0001MW-6s for emacs-devel@gnu.org; Wed, 16 Dec 2015 20:11:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9N6P-0005gZ-6v for emacs-devel@gnu.org; Wed, 16 Dec 2015 20:11:30 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:49917 helo=homiemail-a12.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9N6L-0005fj-9e; Wed, 16 Dec 2015 20:11:25 -0500 Original-Received: from homiemail-a12.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a12.g.dreamhost.com (Postfix) with ESMTP id DFDF71030063; Wed, 16 Dec 2015 17:11:24 -0800 (PST) Original-Received: from localhost.linkov.net (m83-180-31-224.cust.tele2.ee [83.180.31.224]) (Authenticated sender: jurta@jurta.org) by homiemail-a12.g.dreamhost.com (Postfix) with ESMTPA id CBAE9103005E; Wed, 16 Dec 2015 17:11:23 -0800 (PST) In-Reply-To: (Yuri Khan's message of "Wed, 16 Dec 2015 08:02:05 +0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.253.7 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196406 Archived-At: >> This consistency sounds right in theory and I'd definitely >> support your change after reading your description - >> if not tried it in real conditions: typing more than N keys UP >> to navigate to Nth history element is a huge annoyance. > > However, if at the first line moves point to the first line of > the previous item, you end up with another annoyance =E2=80=94 i= s no > longer an inverse of . Yes, you need to go through all the lines of the current history element with to reach the bottom line before going to the next element - but only when reversing navigation directions that is less annoying than doing this always, even when navigating in one direction. >> While in a normal buffer it's possible to mitigate it >> by counting lines and using a numeric argument for UP, >> or pressing and holding UP, or even resorting to the mouse, >> none of which would work in the minibuffer history. >> >> This explains why no other software is doing such awkward thing. > > Other software also has pull-down histories, so one doesn=E2=80=99t hav= e to > scroll the history while looking at it through a mailbox slit. You > pull down the history, select an item you want, press Enter, and it > gets copied into the input box where you can edit it before executing > again. > > In Emacs UI conventions, it might work like this: > > * Pressing some special key while in minibuffer would open a temporary > buffer showing the history and place the point in it. > * The item containing the point would be optionally highlighted with a = face. > * The user would then move the point to the desired item. > * Pressing Enter would copy the item containing the point into the > minibuffer and bury or kill the history buffer. > * Attempting any editing command would copy the item containing the > point into the minibuffer, bury or kill the history buffer, and > perform the editing command in the minibuffer. > * Pressing C-g would just bury or kill the history buffer without > modifying the minibuffer contents. This is already possible in Emacs, e.g. typing TAB with (completing-read "Minibuffer history: " read-expression-history)