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#54946: 28.1; next-line skip one line when overlay is added in newline Date: Fri, 15 Apr 2022 12:08:07 +0300 Message-ID: <837d7q3ea0.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11540"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54946@debbugs.gnu.org To: Yikai Zhao Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 15 11:09:15 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 1nfHx5-0002oA-65 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Apr 2022 11:09:15 +0200 Original-Received: from localhost ([::1]:52918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfHx3-0007ua-WC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Apr 2022 05:09:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfHws-0007uA-7G for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2022 05:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfHwr-0007ip-Sq for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2022 05:09:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nfHwr-0000SL-L8 for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2022 05:09: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: Fri, 15 Apr 2022 09:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54946 X-GNU-PR-Package: emacs Original-Received: via spool by 54946-submit@debbugs.gnu.org id=B54946.16500136831667 (code B ref 54946); Fri, 15 Apr 2022 09:09:01 +0000 Original-Received: (at 54946) by debbugs.gnu.org; 15 Apr 2022 09:08:03 +0000 Original-Received: from localhost ([127.0.0.1]:58108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfHvv-0000Qp-14 for submit@debbugs.gnu.org; Fri, 15 Apr 2022 05:08:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfHvt-0000QM-Lk for 54946@debbugs.gnu.org; Fri, 15 Apr 2022 05:08:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfHvn-0007c8-UT; Fri, 15 Apr 2022 05:07:56 -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=fUUngh7cxEjzPCsewv54PmfWPYDOF3/WIAiYTA/2BG4=; b=F+QMw7cmc72A nj/njWecz4CgJPMTuQE4qBOj/f4DMZNkyhaLJT0/JYf2jbSkqK8qeObvY+py2p4sh86WdNSZYSAqK U4/JifUXxTQf66sOGIIfTVDWgPJukmk6lPBZqnprcSh3/6vY1nyqrRtltJQVJgblonukG0KZpCXUo hAVyNSDVy/n/RNNYIp3k1/PjwrVgOcJMVoZeJ/EsuNhZFk21qLjGaBSkW9pJixfEhutIJv4O+xXXm YMaxeaTv8XrbTUz0hwgykYjKYzL1VTwLeuF6QO7VBkeJ3JcmoMCyMsfh40bbYfQ2aMSl/t1WkeJK3 w6ERqcT/8xAt2+vAcoU0Kw==; Original-Received: from [87.69.77.57] (port=2249 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 1nfHvn-0005LB-6L; Fri, 15 Apr 2022 05:07:55 -0400 In-Reply-To: (message from Yikai Zhao on Fri, 15 Apr 2022 10:25:50 +0800) 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:229921 Archived-At: > From: Yikai Zhao > Date: Fri, 15 Apr 2022 10:25:50 +0800 > > I encountered this issue when I'm editing some code using flycheck-mode > and evil-mode: after flycheck-mode added an error region at the end of > the line, press on this line should forward two lines instead of > one. > > Here's the recipe to reproduce it using 'emacs -Q': > > > (with-current-buffer (get-buffer-create "test") > (setq truncate-lines t > line-move-visual nil) > (erase-buffer) > (insert (make-string 1000 ?x) "\nHELLO\nWORLD\n") > (let ((ov (make-overlay 1001 1002))) > (overlay-put ov 'before-string > (propertize "!" 'display '(left-fringe right-arrow error)))) > (beginning-of-buffer) > (switch-to-buffer (current-buffer))) > > After executing the code, press , the cursor would move to line 3; > but I think the expected behavior is that the cursor would move to line 2. Thanks. This is a very old bug, and rears its ugly head only of line-move-visual is disabled. Should be fixed now on the emacs-28 branch.