all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: UP and DOWN with multi-line minibuffer history
Date: Wed, 16 Dec 2015 02:32:09 +0200	[thread overview]
Message-ID: <87mvtbgrna.fsf@mail.linkov.net> (raw)
In-Reply-To: <83r3io2xgv.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 15 Dec 2015 05:37:52 +0200")

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

> We have that in a normal buffer, don't we?

I totally agree with you that it makes sense to imagine the
minibuffer history as contiguous sheets of lines with all
history elements concatenated as lines in a normal buffer.

Then it would be natural to assume UP and DOWN operating on
such an imaginary buffer the same way as they currently operate
on a normal buffer when line-move-visual is set to non-nil.

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.
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.
For example, in Chromium and other Webkit-related browsers typing
UP in the Console brings the previous multi-line history element
and puts the cursor on its first line.

This screenshot demonstrates the place on the first line
where Chromium puts the cursor after typing UP in its minibuffer:


[-- Attachment #2: chromium.png --]
[-- Type: image/png, Size: 2891 bytes --]

[-- Attachment #3: Type: text/plain, Size: 89 bytes --]


And here is exactly the same place on the first line where we put the
cursor in Emacs:


[-- Attachment #4: emacs.png --]
[-- Type: image/png, Size: 2943 bytes --]

[-- Attachment #5: Type: text/plain, Size: 269 bytes --]


This is the standard long-standing behavior that users expect from such
feature based on the needs of millions of users of Chromium, Chrome,
Safari, Opera using this feature every day.  So it would be safe for us
to rely on this thoroughly tested and proven behavior.

  reply	other threads:[~2015-12-16  0:32 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-12 14:19 UP and DOWN with multi-line minibuffer history Eli Zaretskii
2015-12-12 15:03 ` Dmitry Gutov
2015-12-12 23:04   ` John Wiegley
2015-12-12 22:47 ` Eric Hanchrow
2015-12-12 23:20 ` Juri Linkov
2015-12-13 15:24   ` Eli Zaretskii
2015-12-14  0:07     ` Juri Linkov
2015-12-14  3:39       ` Eli Zaretskii
2015-12-14 23:45         ` Juri Linkov
2015-12-15  3:37           ` Eli Zaretskii
2015-12-16  0:32             ` Juri Linkov [this message]
2015-12-16  1:33               ` Dmitry Gutov
2015-12-17  0:45                 ` Juri Linkov
2015-12-16  2:02               ` Yuri Khan
2015-12-16  6:29                 ` Drew Adams
2015-12-17  0:49                 ` Juri Linkov
2015-12-15  3:43         ` Dmitry Gutov
2015-12-15 15:45           ` Eli Zaretskii
2015-12-14  9:25     ` David Kastrup
2015-12-14 16:00       ` Eli Zaretskii
2015-12-14 16:41         ` David Kastrup
2015-12-14 17:03           ` Eli Zaretskii
     [not found] <CABr8ebZDmnsCKyBnzU3sSDHefJ2_3uC4Omwg=N4qQ8h80vTxpw@mail.gmail.com>
2015-12-13  3:31 ` Eli Zaretskii
2015-12-13  5:38   ` Anders Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mvtbgrna.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.