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: Sun, 20 Oct 2024 14:49:11 +0300 Message-ID: <86wmi3hu4o.fsf@gnu.org> References: <86r08dmm0h.fsf@gnu.org> <86plnxmfdt.fsf@gnu.org> <86y12kjks0.fsf@gnu.org> <86a5ezjkx8.fsf@gnu.org> <86zfmzhvdb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12167"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@janestreet.com, 73863@debbugs.gnu.org, romain.ouabdelkader@gmail.com To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 20 13:50:03 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 1t2URe-00030j-SX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Oct 2024 13:50:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2URH-00064f-HB; Sun, 20 Oct 2024 07:49:39 -0400 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 1t2URF-00064O-Ro for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 07:49:37 -0400 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 1t2URF-0005G3-E1 for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 07:49:37 -0400 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=o5BGGo9JIXX2rfSTLZAikRtQFOr0xNQpsvisDOYEmDA=; b=nPLTznRli95WEPCRgFcD5JH/xjlji1Bw+092twYHRmEEgmm3Oae0sYtYwyGzAWx4kmTEHKQWpSOil+HOV/dJnB6uPCHb5q3oq5ThGHTFSRIvEgZwQPIg5RRfOC/d2E5IjOr3hYV69G715o+LtZVxMVlT9u0V+qaetj81oe+kAZBN822s172UxCRBDQsW7TvD5sIpDerDculbn+n9KBetHHaxbNWjqAtJdkK+XkZi+bP8MrpmjtMEft21YdZVX54oBjqwNzNWsfA6WxjhIz6I884m2n7FFCKZB/vmXeb+uxQKLJ2WSEMhRjzQmDR8WYbypgO6tneqK3bQcTuNQSw9fw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2URe-00035G-Eh for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 07:50: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: Sun, 20 Oct 2024 11:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73863 X-GNU-PR-Package: emacs Original-Received: via spool by 73863-submit@debbugs.gnu.org id=B73863.172942500011841 (code B ref 73863); Sun, 20 Oct 2024 11:50:02 +0000 Original-Received: (at 73863) by debbugs.gnu.org; 20 Oct 2024 11:50:00 +0000 Original-Received: from localhost ([127.0.0.1]:46149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2URb-00034s-OG for submit@debbugs.gnu.org; Sun, 20 Oct 2024 07:50:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2URa-00034g-A2 for 73863@debbugs.gnu.org; Sun, 20 Oct 2024 07:49:59 -0400 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 1t2UR5-0005Du-AC; Sun, 20 Oct 2024 07:49:27 -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=o5BGGo9JIXX2rfSTLZAikRtQFOr0xNQpsvisDOYEmDA=; b=aXnqb5WxfVEV093Lf9d9 GgZmUTttmu+NO+p7Rvor6b94EMzaihQsA7tahgcKhlO+yhl7KWKss62MNuZzJOZhBIVq2PrUaP6nY 9TQVVA988X7ujRCh0MYlK0b/vBhXQnbIy4aLDVxAiBtBeYbo0MWSbtewGazPAmE7f1HfISeSfFE6o Yq/U8dK1Qn0G6HmY/l6Dhrew5CSFIauI27ALPkGmISNlyX3xxqQa3lso0ekkNIG6LCF3lwW7SV2uh Y64hfKrvKBcNWgcGOVIJtSKW0T9E9xkHO8/yk6VouMLBuo4Ww75hN/jE7vQPWDaB2v6DQVxsPDDWw yRReYQpa/FjleQ==; In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Sun, 20 Oct 2024 12:38:33 +0100) 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:293950 Archived-At: > From: João Távora > Date: Sun, 20 Oct 2024 12:38:33 +0100 > Cc: sbaugh@janestreet.com, romain.ouabdelkader@gmail.com, > 73863@debbugs.gnu.org > > On Sun, Oct 20, 2024 at 12:22 PM Eli Zaretskii wrote: > > > When the diagnostic overlay wraps to the next screen line, it is > > strange to see the cursor at the beginning of the diagnostic after > > C-n, since users generally expect C-n to move to the next screen line. > > That may be so, and probably it is so. But I'd make sure to keep the > current behaviour (or at least unsurprising behaviour) when the > diagnostic(s) overlay (overlays?) _doesn't_ (don't?) wrap to the next > screen line. That would mean a non-trivial code in flymake.el, because it would need to decide in advance whether the diagnostic will fit on the same screen line. Moreover, if the user then makes the window wider or narrower, the cursor will jump between two screen positions, something that I think is highly undesirable (and will look like a bug).