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#73863: 30.0.91; Unexpected cursor movement with flymake-show-diagnostics-at-end-of-line Date: Sat, 30 Nov 2024 11:45:22 +0200 Message-ID: <86cyid9hsd.fsf@gnu.org> References: <86r08dmm0h.fsf@gnu.org> <86plnxmfdt.fsf@gnu.org> <86y12kjks0.fsf@gnu.org> <86a5ezjkx8.fsf@gnu.org> <86zfmzhvdb.fsf@gnu.org> <86wmi3hu4o.fsf@gnu.org> <8634jvmbug.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="28039"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73863-done@debbugs.gnu.org, joaotavora@gmail.com, romain.ouabdelkader@gmail.com To: sbaugh@janestreet.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 30 10:46:28 2024 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 1tHK3X-0007A0-Ni for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Nov 2024 10:46:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHK3A-0006nv-UP; Sat, 30 Nov 2024 04:46:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHK38-0006nZ-SD for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 04:46:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHK38-0003bP-GF for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 04:46:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=B+VCSYAHvOqJEP9p2UmKKsE8BREASLGRNQzB75oMxM4=; b=d7yvITz2NlbGFJvwkXGwQQpiJACUmmNzqIlgHIyORzYRDk/D/bfLzzBXA5ZcjbX2139GpGTIcFGbtBxcg4l/Ju2qK9YMbgR7O8r6y8lqyZkMtBIWiOFyRlcolyRP/2alFfxFF8f9jKABPmaTCpMdwx0fX9a8yOzR2tPNUrK56aCX0OVFlMDIUdGELus5BVV89qoSEXyfbtuCjOprJ35N5Q1zgqCSrFSEDtkM4ismwrHJ8FlzHUj6wh60eHOcSLcbzQvDyWDeD1br5YVAFrzcD3f11tkgnDbz2mLmjVAnAVLvbqOb5F7oCo99kr7OWmsFPWMLshBpflKAiaftA5+ljg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHK38-0006I5-Af for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 04:46:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Nov 2024 09:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 73863 X-GNU-PR-Package: emacs Mail-Followup-To: 73863@debbugs.gnu.org, eliz@gnu.org, romain.ouabdelkader@gmail.com Original-Received: via spool by 73863-done@debbugs.gnu.org id=D73863.173295993624133 (code D ref 73863); Sat, 30 Nov 2024 09:46:01 +0000 Original-Received: (at 73863-done) by debbugs.gnu.org; 30 Nov 2024 09:45:36 +0000 Original-Received: from localhost ([127.0.0.1]:45432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHK2i-0006H9-3A for submit@debbugs.gnu.org; Sat, 30 Nov 2024 04:45:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHK2g-0006Gv-8j for 73863-done@debbugs.gnu.org; Sat, 30 Nov 2024 04:45:35 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHK2Z-0003SX-LT; Sat, 30 Nov 2024 04:45:27 -0500 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=B+VCSYAHvOqJEP9p2UmKKsE8BREASLGRNQzB75oMxM4=; b=g4adLDkGpFI2STKCTH2y hjDUvVC8cQvIqpIowyVD0ZtdMxUr3N/myLADvkucALM6Ar5Ib4nA0Qaegvtnu3Fnke0mKbwoZqwEC MmpZhDvaBzqH3z6HK7VW7GxzoxRrED+ZqQgXWKUhDE9TNFmVylL40RS9B4/VUIVoscEp3l5kuqGDn TWWoGTRHVb2vKS2dGXuxrCLZ++O4aPhwZngUClLVAq5ksyFuwI/tq8xoVZDWHK2em3yjnIFlil9wW yo5B0iP/6yem9qu+dYg0jopBIp6Xgbk3IPoDw0Tijc71Mhxs9m7u8Kg0OnQo7WZzEn1iCEqcJxVKg W6aYYnkG/EkOHA==; In-Reply-To: <8634jvmbug.fsf@gnu.org> (message from Eli Zaretskii on Wed, 13 Nov 2024 16:45:27 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296123 Archived-At: > Cc: 73863@debbugs.gnu.org, joaotavora@gmail.com, romain.ouabdelkader@gmail.com > Date: Wed, 13 Nov 2024 16:45:27 +0200 > From: Eli Zaretskii > > > From: Spencer Baugh > > Cc: João Távora , Eli Zaretskii > > , > > 73863@debbugs.gnu.org > > Date: Tue, 12 Nov 2024 16:38:43 -0500 > > > > There's actually another symmetric issue to B: after moving to the end > > of the line with C-e, if you hit C-p that moves to the start of the > > current screen line, instead of moving to the previous screen line. > > This is because vertical-motion acts as if the cursor is on screen line > > 3, when it's actually on screen line 2 because of the 'cursor property. > > > > Arguably this is a bug in vertical-motion: if you run (vertical-motion > > 1) or (vertical-motion -1) in the appropriate places, it returns 1 or > > -1, claiming that it moved by a screen line even though it actually > > stayed on the same screen line. > > No, it isn't a bug: vertical-motion works with point, not with the > screen position of the cursor. And point is on the next screen line, > because the diagnostic overlay "covers" the newline at EOL. > > > I'm not sure how to fix this. IMO, vertical-motion should try harder to > > move by screen lines. > > Feel free to teach vertical-motion about the 'cursor' property. I > don't plan on doing that any time soon, having spent numerous hours on > making that function cater to quite a few complications. > > > In the C-p case, there's an obviously correct thing to do: move to the > > same column of the previous screen line. But for some reason, > > vertical-motion doesn't do it: it stays on the same screen line. Maybe > > fixing this should start there? > > See above: vertical-motion works perfectly correctly in that case, you > are just tricked by the fact that the 'cursor' property forces us to > show the cursor not where point is. No further comments within more than 2 weeks, so I'm no closing this bug.