From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#46238: 27.1; recenter-top-bottom in fullscreen Date: Tue, 2 Feb 2021 09:42:28 +0100 Message-ID: References: <87tuqvpzw2.fsf@do> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25206"; mail-complaints-to="usenet@ciao.gmane.io" To: Colin Okay , 46238@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 02 09:43:18 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6rHK-0006SK-FL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 09:43:18 +0100 Original-Received: from localhost ([::1]:45600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6rHJ-0004vx-In for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 03:43:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6rH4-0004vm-Tw for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 03:43:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6rH4-0005tL-FJ for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 03:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6rH4-0007bB-DM for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 03:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Feb 2021 08:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46238 X-GNU-PR-Package: emacs Original-Received: via spool by 46238-submit@debbugs.gnu.org id=B46238.161225536529179 (code B ref 46238); Tue, 02 Feb 2021 08:43:02 +0000 Original-Received: (at 46238) by debbugs.gnu.org; 2 Feb 2021 08:42:45 +0000 Original-Received: from localhost ([127.0.0.1]:33989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rGk-0007aX-Hl for submit@debbugs.gnu.org; Tue, 02 Feb 2021 03:42:45 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:50835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rGi-0007aI-8z for 46238@debbugs.gnu.org; Tue, 02 Feb 2021 03:42:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612255350; bh=eDZe/RNOeRPJ3eSN29H7lLBZcTtWwYfnaaasxKT8E4k=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=AMkxW5L6Nav0dMNqel0tltyEjSPBDa2II/CecrIE3I3pmDP5YwLk6s9JIjBU9gKFY OFZJRrAqNvvPCTX5gdafyoK+ctZDwGConqiIwogwPPKIo2ZiQ5z1bHrn53iy8gw0G9 FqOT3YGVa5L+NaXkCCXsofu/sxi+NDzclSOLW6XM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.235]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MkYXs-1loUbg0bTK-00m0IB; Tue, 02 Feb 2021 09:42:30 +0100 In-Reply-To: <87tuqvpzw2.fsf@do> Content-Language: en-US X-Provags-ID: V03:K1:Xy11vZ/flkik7bKBJBBEjHbPvdT/ezc4V0otMOrkLDMWEnGvWmv 6+yj7QPK3B7KWlpuWT0npZ2a3p984YvwJzkLiY/7L6bV0iJaZcHjxWoKX4cU3uNSBbjosJS uwpawzfV7o68ECKcSh5aIm8GK5P11WOKU8UE0xeJiMP9mlUlSu2DcCx0raKF3Onb91Ag+5R nG3AXnsOZYeGDRa4rXfvQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:IA35lHCwzXg=:rYL1OmQOlQkcZKku1ocCcZ bai5h9EL9UJxxanLJOze+U61OvDnK4OXYaWB5WfySueIt8EDV47A+kGxBO0U9WPGN+bDbpLWz hUxI+R6WE+T2iUFcOqHYTHDhNnOwGOaictjlIpnfaD5OyPjWhv3YSVcYTuJQuCPHf5h61McMZ d8aY9Qvka7qX35JLRZXfsnCVjMj9tNeNXgfAhBOfz+7BrkyyERy5hV+/SNREA8uHJ6qEDdhiC drJg1alrZKrnUoln7hLQD4LlbdhYL/xpzI5C7ezn5/WkMY7hqdjobF6ClXzdfY91exlYh0Jcd YpdgEwYcACGw1iFKEMBGdA5zpNtAUNkXy51zfGbnhwy1GQiaXBtB5TuYdkjQPdrp/V1nXOq2L EKLf6IdAD19CDejFT9ChfQgpn574ZyM8ysiuRIRXCXkjpUExfYba1xqcnv5RcKKc/AIQCZ/Kd 4hDM4hD0A9GvU2/uu9wiUg9MYJ8hd/tIETVIkcGZ5o3VJ6nG32cnS7PH8HECORuNdJJ0d9xZR aZFJmMR3DE1As2BpLpiE5Avzkqvd4abLah9s6gUpUYlcgmyE/IPYeNOgBn9nh46nFBnguFs/S 507vwOAE+egVtA2k76xKFqrj9g0p1867UkUhtWKejVT+AP+2MZZa8nxsMCinHkCXz4FdXp164 JqwUnzIvkpJ/oFG+slf5f76e2jNvYufnW5NxKmmTnypSAk1tD4KVnYfVZtYsTyJE9mSO7mruL FlLOp4r2JG6hmH1eWs34XKk7nXvsr/oxasbhwzOX20LYFuC3IkSIXoZfim1GrUJrYGtWwifY X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199122 Archived-At: > 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