all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Colin Okay <okay@toyful.space>, 46238@debbugs.gnu.org
Subject: bug#46238: 27.1; recenter-top-bottom in fullscreen
Date: Tue, 2 Feb 2021 09:42:28 +0100	[thread overview]
Message-ID: <d413bbb8-67c1-888c-489d-f0fe22f61de4@gmx.at> (raw)
In-Reply-To: <87tuqvpzw2.fsf@do>

 > When in fullscreen mode, recenter-top-bottom fails to toggle to the
 > "bottom" position. Pressing C-l with the cursor at the top will recenter
 > the window with the cursor in the middle, pressing it again does
 > nothing, and pressing it one more time will recenter the window with the
 > cursor at the top. The quirk is not present when emacs is not in
 > fullscreen mode.
 >
 >
 > In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0)
 >   of 2020-11-07, modified by Debian built on x86-ubc-01
 > Windowing system distributor 'The X.Org Foundation', version 11.0.12010000
 > System Description: Debian GNU/Linux bullseye/sid

Thanks for the report.  I tried to reproduce this with emacs -Q, F11 and
a sufficiently large .el buffer using a GTK3 build for Debian 10 but
failed.  After a third invocation, 'recenter-top-bottom' moves point to
a position somewhere at the bottom of the window.  Is that the idea of
the function (I never used it before) or should it do something else?

Reading it for the first time, 'recenter-top-bottom' has an incredibly
misleading doc-string: For me "Move current buffer line to the specified
window line" means to (1) remove the buffer line at point from its
buffer and (2) reinsert it at the window line specified by ARG but I
doubt that that's the intended behavior.  Maybe someone more
knowledgeable could make it more reasonable, maybe stealing text like
"positions the current line at the top of the window" from 'recenter'.

In either case, please try to reproduce the behavior you see with emacs
-Q and maybe some trivial buffer (whose contents you could also post
here).  Then please edebug 'recenter-top-bottom' and try to find out
where it fails in comparison with say a maximized or normal window.  In
particular we'd have to know the value of 'recenter-last-op' in the
invocation where it fails.  Then you could try to feed the failing
argument into 'recenter' itself and look whether it fails there as well.

Thanks, martin





  reply	other threads:[~2021-02-02  8:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 15:32 bug#46238: 27.1; recenter-top-bottom in fullscreen okay--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-02  8:42 ` martin rudalics [this message]
2021-02-02 15:20   ` Eli Zaretskii
2021-02-02 16:03     ` martin rudalics
2021-02-02 16:26       ` Eli Zaretskii
2021-04-21  3:04         ` Stefan Kangas
2021-04-21  7:03           ` martin rudalics
2021-04-21  8:51           ` Eli Zaretskii
2021-02-02 16:46     ` bug#46238: [External] : " Drew Adams

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=d413bbb8-67c1-888c-489d-f0fe22f61de4@gmx.at \
    --to=rudalics@gmx.at \
    --cc=46238@debbugs.gnu.org \
    --cc=okay@toyful.space \
    /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.