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, 19 Oct 2024 16:15:59 +0300 Message-ID: <86y12kjks0.fsf@gnu.org> References: <86r08dmm0h.fsf@gnu.org> <86plnxmfdt.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73863@debbugs.gnu.org To: Romain Ouabdelkader Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 19 15:18:43 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 1t29Lu-00011I-Mh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Oct 2024 15:18:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t29Lr-0003sb-LI; Sat, 19 Oct 2024 09:18: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 1t29Lq-0003sT-DD for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2024 09:18: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 1t29Lq-0005Ni-4F for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2024 09:18:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=ZSDQ3SK5V2xYPs3XIDQ+xrHneQQuetDcDBoZoCo7gio=; b=mEeogqWd2SbJoBKdAeLWBaE1iRH3lAwqkYAidt6SgYxZLMXUlAxMBaZoo7tWAR9BCHhM3bgvpSQ/KzuB36jbdAF1XIst1hzWxyP0Les1k3UOZnS0IpMiMyZtV8cdLT1I0j8qjmoMEFloVJQSe5F2wzAiQQ3FvtUKi+t6gOwixAPabevlZRspvdyrnlesfdxgHJSdSfbxuuv4/vzIlP8eIEhaF6Bin/6CIcqjjT0wRrVh/brr193FnTu1kiPvOe4vo2XKqrX4Iy+AJ1kflYeFnY+PSr6jaOjaITbKQnzk8DSeJkzTc8GP3K4EZvHN4Hk2jY2KlGCaph2NvT9f+R76xA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t29MD-0007jo-Rz for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2024 09:19:01 -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, 19 Oct 2024 13:19:01 +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.172934392529718 (code B ref 73863); Sat, 19 Oct 2024 13:19:01 +0000 Original-Received: (at 73863) by debbugs.gnu.org; 19 Oct 2024 13:18:45 +0000 Original-Received: from localhost ([127.0.0.1]:41873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t29Lw-0007jG-MO for submit@debbugs.gnu.org; Sat, 19 Oct 2024 09:18:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t29Lu-0007j1-Je for 73863@debbugs.gnu.org; Sat, 19 Oct 2024 09:18:42 -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 1t29JL-0005HG-QL; Sat, 19 Oct 2024 09:16:03 -0400 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=ZSDQ3SK5V2xYPs3XIDQ+xrHneQQuetDcDBoZoCo7gio=; b=aLpaE1OX0LbX PJUdoRyGzgGEkFl7ZmudktK2yzo8px4Txyy38WR8tH71FKo5D1hK49Df1fFX5ptSQLqBYJjDZnkli YcElxosjlbO6Nh7G7S22IGSNh/3HwhJ+S/TVE+2Rnh9DVbo6P21WAVjwEyVQAcMAQqVmfihuPbf5h 5Kpv2S8zzy7TlpdLN5DbyL0WUMx97xIRUvUDpLEKlopDCuvMpYqoZ8NY4Ogj+hixtHdZuyv9kI25n SbaFmvNejB0PVAHX6YuHdWLW2zTiqjEqiiXoMkMSD+ogR4SSIGZ6hcbTWA5Z6jnVJ4tN5G7Zx+XWR BSkTo4wSRp3MXOKMbMXWeA==; In-Reply-To: (message from Romain Ouabdelkader on Fri, 18 Oct 2024 21:10:02 +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:293879 Archived-At: > From: Romain Ouabdelkader > Date: Fri, 18 Oct 2024 21:10:02 +0200 > Cc: 73863@debbugs.gnu.org > > I can reproduce the issue on a C source file with clangd: > > emacs -Q > M-x eglot > (setq flymake-show-diagnostics-at-end-of-line t) > > ``` > unknown_function > void func(); > ``` > Screenshot 2024-10-18 at 21.06.43.png > > I can also reproduce on a elisp file without using eglot or any additional packages: > > emacs -Q /tmp/test.el > M-x flymake-mode > (setq flymake-show-diagnostics-at-end-of-line t) > > ``` > ;;; test.el --- Test for flymake diagnostics -*- lexical-binding: t -*- > ;;; Commentary: > > ;;; Test file > > very_long_variable_name_to_make_flymake_diagnostics_on_multiple_line > > ;;; Code: > > (provide 'test) > ;;; test.el ends here > ``` > > Screenshot 2024-10-18 at 21.02.10.png > > Make sure that the diagnostic is displayed on multiple lines (resize your window if necessary). Place your > cursor on `very_long_variable_name_to_make_flymake_diagnostics_on_multiple_line` and then press down. So this problem only happens when the window is not wide enough, and the diagnostic wraps to the next screen line?