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: Mon, 14 Dec 2015 02:07:45 +0200	[thread overview]
Message-ID: <87d1u9vqni.fsf@mail.linkov.net> (raw)
In-Reply-To: <83lh8y5q3k.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 13 Dec 2015 17:24:15 +0200")

> Sorry, I don't understand why supporting goal-column must have this
> side effect.  In a normal buffer, we do support goal-column (in the
> visual-line sense), and still we don't jump to the firs screen line of
> a long logical line.  Why should the minibuffer behave differently?

Because the minibuffer is different from a normal buffer where you have
a better overview on the content to be able to navigate it freely with
support of more available commands.

Even without mentioning the controversies of the current implementation
of visual-line-mode such as unending flow of reports about broken macros,
this doesn't mean we have to mimic its behavior in the minibuffer,
where the primary purpose of UP is to quickly bring previous history items,
and only as a secondary feature allow editing a multi-line item.

So the question at hand can be considered as Consistency vs. Convenience,
i.e. trying to achieve consistency at the cost of losing convenience.

> I guess the description in bug#19824 lacks some crucial details,
> because I simply don't see why preserving the column should force to
> jump to the first screen line of the previous history item.  Can you
> explain?  Are you interpreting the goal-column in physical, rather
> than visual, sense?

In fact, supporting goal-column is not required to have this side effect.
Jumping to the first screen line was part of complaints that needed addressing.

Jumping to the last screen line can be achieved by exchanging just two lines
in next-line-or-history-element and previous-line-or-history-element:
moving ‘(goto-char (minibuffer-prompt-end))’ to the former, and exchanging
it with ‘(goto-char (point-max))’ from the latter.

I invite you and everyone interested to try this change for a few days
to see its real effect.



  reply	other threads:[~2015-12-14  0:07 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 [this message]
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
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=87d1u9vqni.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.