From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#53398: 29.0.50; narrow-to-region induces buffer recentering Date: Sun, 23 Jan 2022 18:34:15 +0200 Message-ID: <83ilual8c8.fsf@gnu.org> References: <87tudy9l8y.fsf@gnus.jao.io> <87fsphv1t7.fsf@gnus.org> <87czkj8tym.fsf@gnus.jao.io> <83tudvkmr9.fsf@gnu.org> <875yqaaaym.fsf@gnus.org> <871r0ycvb8.fsf@gnus.jao.io> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24786"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 53398@debbugs.gnu.org To: Jose A Ortega Ruiz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 23 17:35:49 2022 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 1nBfqG-0006HP-UH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 17:35:49 +0100 Original-Received: from localhost ([::1]:49544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBfqG-0005H9-0v for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 11:35:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBfpW-0005Ei-RJ for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 11:35:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48097) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBfpW-0006Mn-Hh for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 11:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBfpW-0004Zy-FA for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 11:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jan 2022 16:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53398 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix moreinfo Original-Received: via spool by 53398-submit@debbugs.gnu.org id=B53398.164295568417554 (code B ref 53398); Sun, 23 Jan 2022 16:35:02 +0000 Original-Received: (at 53398) by debbugs.gnu.org; 23 Jan 2022 16:34:44 +0000 Original-Received: from localhost ([127.0.0.1]:41000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfpD-0004Z3-Q1 for submit@debbugs.gnu.org; Sun, 23 Jan 2022 11:34:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBfpB-0004Yh-Mm for 53398@debbugs.gnu.org; Sun, 23 Jan 2022 11:34:42 -0500 Original-Received: from [2001:470:142:3::e] (port=43354 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBfp6-0006K5-5R; Sun, 23 Jan 2022 11:34:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Z62ca6kzPyCqcFF6rnr63JMU88PZOAmCwM+YNxaBea4=; b=E+jvjm1PKjj1 hP9yWvNpq3GgaRoYrwbhyuheNpUXFkPUwsDiI0Fn6KACm3No55jmdG5MxHmLL/s5VzLKpoTo4+hGZ LQnsZX7s/SRwnfE4m2TTA3qMufbqnYSCTA6O0ZuhjJMBH5hjqC2i9RkwF6ohNSngZUTBVHCbcc/Xs 95/gcbin/VP+MqO7RE4YUvtJ9MTGugPdqQkZPqTL/Av62fFNTr87maD2IaayoBHvoAZbNUsTaBrKB 3fDOHpTMBGG4xZvZSFYc+fQb4HRZVdzLySjifkTQPTQQ/SCps3oRgdCdbRn1LNXuT7kkaTQueA3D0 M5vgtpiFUx2sXpwo8a3z+w==; Original-Received: from [87.69.77.57] (port=3032 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBfp5-0006N2-Gz; Sun, 23 Jan 2022 11:34:35 -0500 In-Reply-To: <871r0ycvb8.fsf@gnus.jao.io> (message from Jose A Ortega Ruiz on Sun, 23 Jan 2022 15:42:51 +0000) 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:224941 Archived-At: > From: Jose A Ortega Ruiz > Cc: 53398@debbugs.gnu.org > Date: Sun, 23 Jan 2022 15:42:51 +0000 > > just for my own understanding: are you saying that the fact that the > minibuffer displays more than one line causes a re-centering of my > current buffer? why is that normal? if i M-: (message "a\nb\n"), should > i expect that my current buffer is recentered? (it isn't). If point is in the last N lines that would be "covered" by the enlarged mini-window, then Emacs will recenter to keep point visible. > (also, for the record, the message displayed by that custom set-message > does not span more than one line, as far as i can tell.) It does, see the continuation indicator at the right fringe. You have computed the alignment to span the entire screen line, but Emacs needs one more place there to display the cursor.