From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#32848: 26.1; follow-mode cursor move breaks with frame-resize-pixelwise Date: Mon, 15 Oct 2018 17:26:37 +0000 Message-ID: <20181015172637.GC5623@ACM> References: <83efdb5z73.fsf@gnu.org> <8336tr5j6j.fsf@gnu.org> <20180930121618.GB6305@ACM> <83sh1r3zz9.fsf@gnu.org> <20180930140921.GD6305@ACM> <83mury53a9.fsf@gnu.org> <20181001123336.GB5947@ACM> <8336tp4w3y.fsf@gnu.org> <20181015092341.GA5623@ACM> <831s8rtfhw.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1539625028 4448 195.159.176.226 (15 Oct 2018 17:37:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2018 17:37:08 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 32848@debbugs.gnu.org, andlind@gmail.com, darkfeline@felesatra.moe To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 15 19:37:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC6ne-00012Q-MC for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 19:37:02 +0200 Original-Received: from localhost ([::1]:53446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC6pl-0004sa-8U for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 13:39:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC6lt-0001vf-9v for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 13:35:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC6lo-00021J-Kj for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 13:35:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46928) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gC6li-0001wy-DR for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 13:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gC6li-0000xg-A0 for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 13:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Oct 2018 17:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32848 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32848-submit@debbugs.gnu.org id=B32848.15396248653633 (code B ref 32848); Mon, 15 Oct 2018 17:35:02 +0000 Original-Received: (at 32848) by debbugs.gnu.org; 15 Oct 2018 17:34:25 +0000 Original-Received: from localhost ([127.0.0.1]:51183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC6l5-0000wW-RU for submit@debbugs.gnu.org; Mon, 15 Oct 2018 13:34:24 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:34417 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gC6l4-0000wO-27 for 32848@debbugs.gnu.org; Mon, 15 Oct 2018 13:34:22 -0400 Original-Received: (qmail 22377 invoked by uid 3782); 15 Oct 2018 17:34:20 -0000 Original-Received: from acm.muc.de (p5B14745F.dip0.t-ipconnect.de [91.20.116.95]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 15 Oct 2018 19:34:19 +0200 Original-Received: (qmail 28547 invoked by uid 1000); 15 Oct 2018 17:26:37 -0000 Content-Disposition: inline In-Reply-To: <831s8rtfhw.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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" Xref: news.gmane.org gmane.emacs.bugs:151276 Archived-At: Hello, Eli. On Mon, Oct 15, 2018 at 18:07:55 +0300, Eli Zaretskii wrote: > > Date: Mon, 15 Oct 2018 09:23:41 +0000 > > Cc: 32848@debbugs.gnu.org, andlind@gmail.com, darkfeline@felesatra.moe > > From: Alan Mackenzie > > > Did you try a buffer whose first line is very tall, taller than the > > > window? > > I've tried a few ways of getting such a window, but without luck. Emacs > > is very good at making sure a window is no smaller than one line tall. > > ;-) > > Is it possible to create such a line in a window, probably with lisp? > It's possible and even very easy. Here's one way: > emacs -Q > C-x 2 > C-u 12 M-x shrink-window RET > C-x C-+ + + + + + .... > Continue pressing "+" until the cursor becomes taller than the window, > and you are done. Thanks, I didn't know about C-x C-+. > Another way is to insert a tall image and see what happens with that. > > Or was your question more a prompt to me to handle this unlikely > > situation gracefully? > It was a good-faith question, this stuff always needs to be tested in > such extreme situations. OK. For brevity, I'm going to call a window with a line too tall to be fully displayed a "very small window". With my follow mode patch that was installed in the emacs-26 branch, the cursor will not remain in a very small non-last window[*], regardless of whether it starts there as the font size is increased. Instead it moves to the next normal sized window (and this displays the correct text line). The cursor can remain in a very small last window. [*] Actually, when the two last windows are both very small, the cursor will stay in any window, if moved there with C-x o. With my follow mode patch, and additionally, make-cursor-line-fully-visible set to the function follow-make-cursor-line-fully-visible-p, I observed exactly the same behaviour. I think this behaviour is acceptable for very small windows. -- Alan Mackenzie (Nuremberg, Germany).