From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#22544: 25.0.90; Long history items cause surprising positioning of cursor in minibuffer Date: Thu, 04 Feb 2016 02:49:04 +0200 Organization: LINKOV.NET Message-ID: <87d1sd1du7.fsf@mail.linkov.net> References: <83a8nhycsl.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454548584 3897 80.91.229.3 (4 Feb 2016 01:16:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2016 01:16:24 +0000 (UTC) Cc: 22544@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 04 02:16:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aR8Wq-0005tj-Pm for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Feb 2016 02:16:12 +0100 Original-Received: from localhost ([::1]:38806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR8Wq-0006fD-3Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Feb 2016 20:16:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR8Wj-0006ew-ER for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2016 20:16:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aR8Wg-0001zx-H2 for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2016 20:16:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR8Wg-0001zt-DV for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2016 20:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aR8Wg-0005uu-BG for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2016 20:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Feb 2016 01:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22544 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22544-submit@debbugs.gnu.org id=B22544.145454853922706 (code B ref 22544); Thu, 04 Feb 2016 01:16:02 +0000 Original-Received: (at 22544) by debbugs.gnu.org; 4 Feb 2016 01:15:39 +0000 Original-Received: from localhost ([127.0.0.1]:58543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aR8WI-0005uA-RH for submit@debbugs.gnu.org; Wed, 03 Feb 2016 20:15:39 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:41728 helo=homiemail-a11.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aR8WH-0005u3-HV for 22544@debbugs.gnu.org; Wed, 03 Feb 2016 20:15:37 -0500 Original-Received: from homiemail-a11.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTP id 0C94F6E070; Wed, 3 Feb 2016 17:15:37 -0800 (PST) Original-Received: from localhost.linkov.net (85.253.168.42.cable.starman.ee [85.253.168.42]) (Authenticated sender: jurta@jurta.org) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id 3DC4B6E06A; Wed, 3 Feb 2016 17:15:36 -0800 (PST) In-Reply-To: <83a8nhycsl.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 03 Feb 2016 18:32:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112362 Archived-At: > Still as expected. Press once more, resulting in: > > Output message to mail file (default FOO): ~/foo/ba!r/very/long/file/name/that/overflows/minibuffer/window/line/when/displayed > > This is somewhat unexpected, because the column of the cursor looks > random -- it is neither the same as in previous display, nor related > to anything else I can think of. Sorry, I don't understand: it's unexpected that the cursor jumps to the previous visual line (this is because of line-move-visual), or an invalid column position on the previous visual line? > Now press one more time, and observe this result: > > Output message to mail file (default FOO): ~/shorte!r/file/name > > This is even less expected -- why isn't the cursor at the end of the > file name, even though it is short enough to display entirely on a > single screen line? This is because it keeps the last column before navigating to the previous history element. The last column was near the beginning of the top visual line. Do you think we should disable line-move-visual in the minibuffer? I tried to do this like below. This might help to avoid these problems, but I'm not sure. (let ((minibuffer-setup-hook (lambda () (setq-local line-move-visual nil))) (default-file "~/rmail/FOO") (file-name-history '("~/rmail/FOOBAR" "~/foo/bar/very/long/file/name/that/overflows/minibuffer/window/line/when/displayed" "~/shorter/file/name"))) (read-file-name (concat "Output message to mail file (default " (file-name-nondirectory default-file) "): ") (file-name-directory default-file) (abbreviate-file-name default-file)))