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#57433: Emacs no longer moves point into visible port of the buffer Date: Sat, 27 Aug 2022 13:19:20 +0300 Message-ID: <83sfliyonr.fsf@gnu.org> References: <83y1vayqrm.fsf@gnu.org> <83v8qeypm5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21942"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57433@debbugs.gnu.org, pogonyshev@gmail.com To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 27 12:20:24 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 1oRsvQ-0005Xf-2Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 12:20:24 +0200 Original-Received: from localhost ([::1]:43004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRsvO-0002Mp-AZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 06:20:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRsv4-0002Md-Rb for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 06:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37292) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRsv4-0000Cd-ID for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 06:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRsv4-0000eM-AI for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 06:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Aug 2022 10:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57433 X-GNU-PR-Package: emacs Original-Received: via spool by 57433-submit@debbugs.gnu.org id=B57433.16615955532436 (code B ref 57433); Sat, 27 Aug 2022 10:20:02 +0000 Original-Received: (at 57433) by debbugs.gnu.org; 27 Aug 2022 10:19:13 +0000 Original-Received: from localhost ([127.0.0.1]:55274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRsuG-0000dD-Rr for submit@debbugs.gnu.org; Sat, 27 Aug 2022 06:19:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRsuE-0000cy-Qv for 57433@debbugs.gnu.org; Sat, 27 Aug 2022 06:19:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRsu9-00008j-EV; Sat, 27 Aug 2022 06:19:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=3YbcCGzOFTkrpKJguYTr25ZEiqc/uaiNYQ+R3kqcMTg=; b=jti+Y+AnZwiQtha2XPn6 e1iwrdOQY7D6gSINIUGSjAXABRxuJVYdp7JYLeIIpReI/4WCeaVv/7aFLe6mXkNnv4gvFkFDMTXUW O9hmu/XEDLITvpxcIfAVBqRRkIEbHyqdyIP61iUhw3eOxvWJWGGRxf9+kKcj3Wbfp3e5MYK0ay4g5 t1NNkNC4BfKvGPhJVc6pSjH0UGXAa4+9JtKnZYQ0fj4C4tHC3LA2Q5ll/MWz74TaECIhSOOKnnnEi 2rGu/64iWMKmqNvO/F1c9MwIPAp3UvlxeNuialK2JgaXlbXh7e5j0j3Y4ggcC0PE2t8rELa5faHGK WoNIWiBhbsaHPA==; Original-Received: from [87.69.77.57] (port=2403 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 1oRsu8-0007Yi-8o; Sat, 27 Aug 2022 06:19:04 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Sat, 27 Aug 2022 12:02:32 +0200) 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:240896 Archived-At: > From: Gerd Möllmann > Cc: 57433@debbugs.gnu.org, pogonyshev@gmail.com > Date: Sat, 27 Aug 2022 12:02:32 +0200 > > Eli Zaretskii writes: > > > Does Magit turn on truncate-lines in the affected buffer, or cause > > them be truncated due to partial-width windows? If it does, I might > > have an idea what could cause the OP's problem. > > Yes, truncate-lines it t. In that case, can you see if the patch below solves the original issue with Magit? diff --git a/lisp/simple.el b/lisp/simple.el index ee765c8..d18d54c 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -7717,13 +7717,15 @@ line-move (not goal-column) ;; Lines aren't truncated. (not - (or truncate-lines - (and (integerp truncate-partial-width-windows) - (< (window-width) - truncate-partial-width-windows)) - (and truncate-partial-width-windows - (not (integerp truncate-partial-width-windows)) - (not (window-full-width-p))))) + (and + (or truncate-lines + (and (integerp truncate-partial-width-windows) + (< (window-total-width) + truncate-partial-width-windows)) + (and truncate-partial-width-windows + (not (integerp truncate-partial-width-windows)) + (not (window-full-width-p)))) + (long-line-optimizations-p))) ;; When the text in the window is scrolled to the left, ;; display-based motion doesn't make sense (because each ;; logical line occupies exactly one screen line).