From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= 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 15:42:15 +0100 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28722"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@janestreet.com, 73863@debbugs.gnu.org, romain.ouabdelkader@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 20 16:43:55 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 1t2X9v-0007LB-3r for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Oct 2024 16:43:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2X9f-00043h-G3; Sun, 20 Oct 2024 10:43: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 1t2X9e-00043X-5Z for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 10:43:38 -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 1t2X9d-0007j6-FK for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 10:43:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=1nag9gRXYCWjv8YidHpTbgWndd2sl1n+w77zCyPOKhg=; b=jf8kr2/ACEvGEzr6xaJ7aXDFzRyeh+/JjFWbPLC85H/rTIZbB3UQTroJq6eiePflzRSQgLGFeIL/PkFrSxRgSl8BtZDkbW26EXA6TqoAc4Th15qv+RPe47Yr16+LI8HVbjIFbHN4lCgPa5uwX8/UKypD5CVaCDyFHKo8fhzR+MwwZ1hjdQdy0Von9quN4ACWUV5aXrxiRS8XivoHJHVO/EiGnA6cwlFqNAQmCLBc+9R2mxBL79FMbIYGX4FSQnLl2HX3LlogfW+3AK+1Yx+c1IbDghWcvP0ZAsR+OoQZWEpm+O/xkuGWraZBIFZqnO5QW1SNhhULX+pIz/uIAI1ZzA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2XA2-0003YH-C8 for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 10:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Oct 2024 14:44: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.172943544013638 (code B ref 73863); Sun, 20 Oct 2024 14:44:02 +0000 Original-Received: (at 73863) by debbugs.gnu.org; 20 Oct 2024 14:44:00 +0000 Original-Received: from localhost ([127.0.0.1]:48043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2X9z-0003Xu-VE for submit@debbugs.gnu.org; Sun, 20 Oct 2024 10:44:00 -0400 Original-Received: from mail-oi1-f176.google.com ([209.85.167.176]:52381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2X9x-0003Xe-RN for 73863@debbugs.gnu.org; Sun, 20 Oct 2024 10:43:58 -0400 Original-Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3e5f6e44727so2214382b6e.0 for <73863@debbugs.gnu.org>; Sun, 20 Oct 2024 07:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729435347; x=1730040147; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1nag9gRXYCWjv8YidHpTbgWndd2sl1n+w77zCyPOKhg=; b=SbAA3rI5Q8bIWtwJN+bg8WrrM9zraZUzHGgsvzyO56GS1pe5aW27pZOx9nrpkClE+s 2+qEapRrifZGRYYiR9t3l6EvMTIiPa0WVsWQAwInwPAK139CQItF64OWmUhEmkNxhYEl lnXs6FoMS9dTTtBY2UzKUiMhy6oMpc6UUliEE7IlX8Ai8fQ5w0lKebWJRPcHw3kM/iCG JFiK7Odxp6yeYcGKenc6KRFXM8ERJGEpwZUkeNX+pG4D3gUmqfEsefz6G1HXo7xnTFbt p2+9v11kb36QOkeqQm24OxyCHdFo606NAEitHqyL5ZYnojhNukX0wSnC0hRp3GiKzqtG 0R8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729435347; x=1730040147; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1nag9gRXYCWjv8YidHpTbgWndd2sl1n+w77zCyPOKhg=; b=OInUhHqTr+v8Kd3dKr+DglBYQzyj8VnjLyIU2aUOPKf7qoj9VzTKosKDN+siNLEds1 XrNzBNTu+t4qsySitnv2apRj7guA+jHLZta6LBrDf0n7J+dkPqWdyOa+7bf+IRKgsPi9 AIMi6IJTsKvDus6G3LlPQTZGYGPu2ZKYCXb6mgU4DCerPdI1Q42TmoULwk+WXV+bmzub NoJ49oT/vRH8kaR77mxYMyynTSS/xGSZ6O3erCsb40+wKCUPg8vhEUqUi2tPy7DO9v4f OYDd9vXGhgG+7h10zLeybc4K2X8jdFk0WYFvPPyJdwX11Mnxp6TeQ8M5Pb+XAQ/z6sSQ u67w== X-Forwarded-Encrypted: i=1; AJvYcCUZKcAQ4aewy+/ET31x+If8lqYWKovdw3uFVaTqW79U0mGa0UTSb6/IAjXri0MytrqwA/r3hg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yyno2V7l+UdHUUD7aowX265SO3c97wBHvCuw7dg8wXDZ16/gB6H LSCOBYhR9RupNwXirJQJCKxXXUqgF839vRbib+YF1kRZhfVgCm2Xg3CscMnRKywHy0yGaoHqdS8 5oF5nB7oODrD6c+oPFkiMlquC8j8= X-Google-Smtp-Source: AGHT+IG8c/8K/UBmPZZS4k9l7+hGvUodJ838G14W9lE6sZaswoGAc1LkqHUJsztyuyzuHCbrQMO5OArxLuiDwx9wo/E= X-Received: by 2002:a05:6808:2e99:b0:3e6:5ee:f197 with SMTP id 5614622812f47-3e605eef39bmr4681630b6e.14.1729435346824; Sun, 20 Oct 2024 07:42:26 -0700 (PDT) In-Reply-To: <86wmi3hu4o.fsf@gnu.org> 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:293972 Archived-At: On Sun, Oct 20, 2024 at 12:49=E2=80=AFPM Eli Zaretskii wrote= : > 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). Yes, you're right, but the solution you propose is arguably harmful for the current case. If I'm at line n, column c and I move down to line n+1 w= ith less than c columns, and that line n+1 has a wrapping diagnostic at eol, I = now see that a single 'down' makes the cursor jump multiple screen lines to the end of said diagnostic, and that's not really pretty either. And even closer to this report's scenario, your solution only makes some sense if the overlays happ= en to only wrap one line: it ceases to make sense in very narrow windows where the overlays wrap multiple lines. IMO, wrapping these annotations is more distracting than useful. They're meant to be minimally intrusive auxiliary visual aids, and causing screen line increase violates that. Note that the full diagnostic info can= be viewed via eldoc in the echo area for example, where there are options to control length and jumping (and where window width isn't an issue). So I advise to turn on line truncation when using them, or to live with the current idiosyncrasy instead of another equivalent (IMO slightly worse) idiosyncrasy. Jo=C3=A3o