From unknown Sun Jun 22 11:36:17 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#54946 <54946@debbugs.gnu.org> To: bug#54946 <54946@debbugs.gnu.org> Subject: Status: 28.1; next-line skip one line when overlay is added in newline Reply-To: bug#54946 <54946@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:36:17 +0000 retitle 54946 28.1; next-line skip one line when overlay is added in newline reassign 54946 emacs submitter 54946 Yikai Zhao severity 54946 normal tag 54946 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 14 22:26:05 2022 Received: (at submit) by debbugs.gnu.org; 15 Apr 2022 02:26:05 +0000 Received: from localhost ([127.0.0.1]:57727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfBeu-0003iE-L2 for submit@debbugs.gnu.org; Thu, 14 Apr 2022 22:26:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:34698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfBes-0003i7-PC for submit@debbugs.gnu.org; Thu, 14 Apr 2022 22:26:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfBes-0001DC-0Y for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2022 22:26:02 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:57837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfBen-0005by-KE for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2022 22:26:00 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 3C66A3202484; Thu, 14 Apr 2022 22:25:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 14 Apr 2022 22:25:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z1k.dev; h=cc :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t= 1649989553; x=1650075953; bh=DBqoZbDFhlBnuMLJjFyG9P3stuBetMFuEvw iwEyVzEE=; b=k6WsIozKStCE0t4daC29KmTY+6YAzFS24sTTrgR6ALrkPsn0CEb CwoTYot9VZGLcQbWQAzsS7lieLXBu8lg95IAwZFb6klef4sqrJjRmsJwxEDPFcM0 Egm7w+JzNzzsPCziR1tmL8mfSseZhRPi90ljTB9vg5Z0yrrZQ34AVHFkIZ3JAmd0 atZVk1B+DnO7u2tI2JLKCyT6DDA7ZZhGctoBRSAwFdwccSIKDeVUKRctf5jEVggu OFGj9gx2K1JuDxMU69IaJvwHNzynmoEDvrtxGtVJKtK4ixQLciViZvOaAAFADJJR ikxQv8pYWsRyIl7WjPw+WOuW2niDY6K8yfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1649989553; x=1650075953; bh=DBqoZbDFhlBnu MLJjFyG9P3stuBetMFuEvwiwEyVzEE=; b=hguGmUhUcFWhOSAXl7yzQwF6dG54m xD/eUPhnKQZW6msNllGGeaCk85FEa2driNZy5DiOX8bJrDvfzcgYPZ3wsvqgXjy0 9zcq0wM4/2lPepv/AMGQQ2kO2ZKhfniVcVa/vHcJ5ZSSIKP2/o2XixyDG/u+adoS xtHu1E0ksvd5wKIVamDvdDNF+gOM9O3H6A3uAmuDWFAed6z/qqJW9q8wOszDlXrD VZsPQihaG/fbLGTHON46QM+CedSEhuXpp7viQlVThIF1EYcABVzlWI3CeBnxnvhO lpYW2MjMFuVh2hNVLY73Q07bC13B59gePd3CRX59YAxlqdYOdyK30zJkg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudelgedgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpegjihhkrghiucgkhhgrohcuoeihihhkrghiseiiudhkrdguvghvqeen ucggtffrrghtthgvrhhnpeelleduleehjeeggefhfeefkeevjedvueefgffgtdehkeehie ehhfevfeetiefgheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpeihihhkrghiseiiudhkrdguvghv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 14 Apr 2022 22:25:52 -0400 (EDT) From: Yikai Zhao To: bug-gnu-emacs@gnu.org Subject: 28.1; next-line skip one line when overlay is added in newline Date: Fri, 15 Apr 2022 10:25:50 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.24; envelope-from=yikai@z1k.dev; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) 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! In GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-10 built on frederik Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Arch Linux Configured using: 'configure --with-native-compilation --without-compress-install --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib --localstatedir=/var --with-cairo --with-harfbuzz --with-modules --with-wide-int --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/emacs/src=/usr/src/debug -flto=auto' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_CTYPE: zh_CN.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: global-git-commit-mode: t recentf-mode: t dap-tooltip-mode: t dap-ui-many-windows-mode: t dap-ui-controls-mode: t dap-ui-mode: t dap-auto-configure-mode: t dap-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: t treemacs-fringe-indicator-mode: t ligature-mode: t outline-minor-mode: t whitespace-mode: t hl-line-mode: t display-line-numbers-mode: t electric-pair-mode: t hl-todo-mode: t dtrt-indent-mode: t projectile-mode: t yas-minor-mode: t company-mode: t flycheck-posframe-mode: t flycheck-mode: t winner-mode: t global-auto-revert-mode: t save-place-mode: t override-global-mode: t vertico-mode: t which-key-mode: t global-evil-vimish-fold-mode: t evil-vimish-fold-mode: t vimish-fold-global-mode: t vimish-fold-mode: t global-evil-surround-mode: t evil-surround-mode: t evil-commentary-mode: t shell-dirtrack-mode: t evil-mode: t evil-local-mode: t windmove-mode: t straight-use-package-mode: t straight-package-neutering-mode: t straight-live-modifications-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t transient-mark-mode: t Load-path shadows: /home/blahgeek/.emacs.d/straight/build/protobuf-mode/protobuf-mode hides /usr/share/emacs/site-lisp/protobuf-mode /home/blahgeek/.emacs.d/straight/build/cmake-mode/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /home/blahgeek/.emacs.d/straight/build/transient/transient hides /usr/share/emacs/28.1/lisp/transient /home/blahgeek/.emacs.d/straight/build/let-alist/let-alist hides /usr/share/emacs/28.1/lisp/emacs-lisp/let-alist Features: (shadow sort mail-extr emacsbug sendmail vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc bug-reference evil-collection-magit magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit evil-collection-package-menu package url-handlers magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff git-commit evil-collection-log-edit log-edit message rfc822 mml mml-sec evil-collection-epa epa derived mm-decode mm-bodies mm-encode mailabbrev gmm-utils pcvs-util add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor magit-mode transient magit-git magit-base magit-section tabify crm mule-util evil-collection-yaml-mode yaml-mode undo-fu descr-text cl-print evil-collection-debug debug backtrace consult-xref evil-collection-consult consult-vertico consult recentf eieio-opt evil-collection-speedbar speedbar ezimage dframe evil-collection-shortdoc shortdoc help-fns radix-tree url-file url-dired url-cache url-auth vertico-directory orderless cursor-sensor devdocs-browser evil-collection-eww eww xdg url-queue mm-url evil-collection-gnus gnus nnheader gnus-util rmail rmail-loaddefs shr kinsoku svg browse-url lsp-diagnostics lsp-modeline dap-mouse dap-ui gdb-mi gud bui bui-list bui-info bui-entry bui-core bui-history bui-button bui-utils evil-collection-custom cus-edit cus-start lsp-lens evil-collection-view view lsp-zig lsp-steep lsp-svelte lsp-sqls lsp-yaml lsp-xml lsp-vimscript lsp-vhdl lsp-volar lsp-vetur lsp-html lsp-verilog lsp-vala lsp-v lsp-typeprof lsp-ttcn3 lsp-toml lsp-terraform lsp-tex lsp-sorbet lsp-solargraph lsp-rust lsp-rf lsp-remark lsp-r lsp-purescript lsp-pylsp lsp-pyls lsp-pwsh lsp-php lsp-perlnavigator lsp-perl lsp-ocaml lsp-magik lsp-nix lsp-nim lsp-nginx lsp-markdown lsp-lua lsp-kotlin lsp-json lsp-javascript lsp-idris lsp-haxe lsp-groovy lsp-hack lsp-graphql lsp-go lsp-completion lsp-gdscript lsp-fsharp lsp-fortran lsp-eslint lsp-erlang lsp-emmet lsp-elixir lsp-elm lsp-dockerfile lsp-dhall lsp-d lsp-css lsp-csharp gnutls lsp-crystal lsp-cmake lsp-clojure lsp-semantic-tokens lsp-clangd dom lsp-beancount lsp-bash lsp-ansible lsp-angular lsp-ada lsp-actionscript evil-collection-vc-git vc-git evil-collection-diff-mode diff-mode vc-dispatcher lsp-haskell lsp-pyright dap-java dap-mode dap-launch dap-overlays lsp-java request mailheader mail-utils lsp-treemacs lsp-treemacs-themes treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-bookmarks treemacs-interface treemacs-extensions treemacs-mouse-interface treemacs-tags treemacs-persistence treemacs-filewatch-mode treemacs-follow-mode treemacs-rendering treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator treemacs-scope pulse treemacs-faces treemacs-icons treemacs-themes treemacs-core-utils pfuture treemacs-logging treemacs-customization treemacs-macros cc-mode cc-fonts cc-guess cc-menus cc-cmds lsp-mode lsp-protocol tree-widget wid-edit spinner network-stream puny nsm rmc evil-collection-markdown-mode markdown-mode lv inline ht ewoc epg rfc6068 epg-config ligature evil-collection-outline noutline outline whitespace hl-line display-line-numbers elec-pair git-gutter-fringe fringe-helper git-gutter hl-todo dtrt-indent projectile lisp-mnt mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr evil-collection-grep grep ibuf-ext evil-collection-ibuffer ibuffer ibuffer-loaddefs yasnippet company-keywords company-etags company-gtags company-template company-dabbrev-code company-dabbrev company-capf company-yasnippet company-files company pcase flycheck-posframe posframe flycheck-google-cpplint evil-collection-flycheck flycheck evil-collection-imenu imenu evil-collection-go-mode go-mode url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap find-file ffap url-parse url-vars etags fileloop generator evil-collection-xref xref project time pydoc-autoloads suggest-autoloads loop-autoloads devdocs-browser-autoloads server sudo-edit-autoloads dumb-jump-autoloads popup-autoloads fcitx dbus xml fcitx-autoloads wgrep-ag-autoloads wgrep-autoloads ag-autoloads git-link-autoloads pr-review-autoloads ghub-autoloads treepy-autoloads magit-autoloads magit-section-autoloads git-commit-autoloads transient-autoloads lsp-haskell-autoloads lsp-pyright-autoloads lsp-java-autoloads dap-mode-autoloads lsp-treemacs-autoloads bui-autoloads treemacs-autoloads cfrs-autoloads hydra-autoloads pfuture-autoloads ace-window-autoloads avy-autoloads request-autoloads lsp-mode-autoloads lv-autoloads spinner-autoloads ht-autoloads flycheck-posframe-autoloads posframe-autoloads flycheck-package-autoloads package-lint-autoloads consult-flycheck-autoloads flycheck-autoloads let-alist-autoloads pkg-info-autoloads epl-autoloads company-emoji-autoloads company-autoloads yasnippet-autoloads winner projectile-autoloads vterm evil-collection-bookmark bookmark pp tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 time-date ls-lisp format-spec auth-source eieio eieio-core eieio-loaddefs password-cache json map face-remap evil-collection-compile compile text-property-search evil-collection-term term disp-table ehelp find-func vterm-module term/xterm xterm vterm-autoloads with-editor-autoloads org-tree-slide-autoloads cc-styles cc-align cc-engine cc-vars cc-defs google-c-style google-c-style-autoloads cuda-mode-autoloads bpftrace-mode-autoloads dockerfile-mode-autoloads jsonnet-mode-autoloads haskell-mode-autoloads lua-mode-autoloads web-mode-autoloads typescript-mode-autoloads go-mode-autoloads markdown-mode-autoloads xonsh-mode-autoloads groovy-mode-autoloads kotlin-mode-autoloads yaml-mode-autoloads bazel-autoloads gn-mode-autoloads protobuf-mode-autoloads jinja2-mode-autoloads vimrc-mode-autoloads fish-mode-autoloads cmake-mode-autoloads dtrt-indent-autoloads hl-todo-autoloads rainbow-mode-autoloads git-gutter-fringe-autoloads fringe-helper-autoloads git-gutter-autoloads autorevert filenotify saveplace cus-load embark-consult-autoloads embark-autoloads consult-autoloads use-package-bind-key bind-key easy-mmode evil-collection-vertico vertico vertico-autoloads orderless-autoloads evil-collection-which-key which-key which-key-autoloads fringe-scale emacs-fringe-scale-autoloads add-node-modules-path-autoloads exec-path-from-shell-autoloads switch-buffer-functions switch-buffer-functions-autoloads solarized-light-theme solarized-theme solarized solarized-faces color solarized-theme-autoloads evil-vimish-fold evil-vimish-fold-autoloads vimish-fold f dash s vimish-fold-autoloads f-autoloads dash-autoloads s-autoloads evil-surround evil-surround-autoloads evil-commentary evil-commentary-integration evil-commentary-autoloads use-package-delight evil-collection-tabulated-list evil-collection-tab-bar evil-collection-simple evil-collection-process-menu evil-collection-occur evil-collection-info evil-collection-indent evil-collection-image image-mode evil-collection-dired dired dired-loaddefs exif evil-collection-help evil-collection-elisp-mode evil-collection-comint calc-ext evil-collection-calc evil-collection-buff-menu evil-collection annalist evil-collection-autoloads annalist-autoloads evil evil-integration evil-maps evil-commands reveal flyspell ispell evil-jumps evil-command-window evil-search evil-ex shell pcomplete comint ansi-color evil-types evil-macros evil-repeat evil-states evil-core advice evil-common windmove calc calc-loaddefs calc-macs thingatpt rect evil-digraphs evil-vars ring edmacro kmacro evil-autoloads goto-chg-autoloads undo-fu-autoloads ligature-autoloads delight comp comp-cstr warnings rx delight-autoloads finder-inf use-package-core use-package-autoloads bind-key-autoloads straight-autoloads cl-seq info cl-extra help-mode seq byte-opt straight subr-x cl-macs gv cl-loaddefs cl-lib bytecomp byte-compile cconv china-util iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 1441246 611296) (symbols 48 65553 5) (strings 32 473408 32915) (string-bytes 1 15632293) (vectors 16 113819) (vector-slots 8 3290339 1027112) (floats 8 1043 959) (intervals 56 47613 5332) (buffers 992 39)) From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 15 05:08:03 2022 Received: (at 54946) by debbugs.gnu.org; 15 Apr 2022 09:08:03 +0000 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 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 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==; 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 Date: Fri, 15 Apr 2022 12:08:07 +0300 Message-Id: <837d7q3ea0.fsf@gnu.org> From: Eli Zaretskii To: Yikai Zhao In-Reply-To: (message from Yikai Zhao on Fri, 15 Apr 2022 10:25:50 +0800) Subject: Re: bug#54946: 28.1; next-line skip one line when overlay is added in newline References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54946 Cc: 54946@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 15 05:10:55 2022 Received: (at control) by debbugs.gnu.org; 15 Apr 2022 09:10:55 +0000 Received: from localhost ([127.0.0.1]:58120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfHyh-0000W8-KI for submit@debbugs.gnu.org; Fri, 15 Apr 2022 05:10:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfHyf-0000Vo-8U for control@debbugs.gnu.org; Fri, 15 Apr 2022 05:10:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XMqRuY2qhb24CQV51RMqb6AbUoybZZrl8csK4/P5s5I=; b=VT0nMZHPi4Upz2oen3NxFUtYuE abTNwAmX/Nfe7wCd9RrrnRtMf7aPGvGIyo949bazIXu3imFmmio89KpIpZlDe62zrbPlcbDJA3u78 jN4dKMmizEj2v+Ahy+RgVgxa8KsPN/rVTUHY0KrjGXDZt4RdythBh9O1hhCGPwonlnpw=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nfHyW-0000FX-NX for control@debbugs.gnu.org; Fri, 15 Apr 2022 11:10:46 +0200 Date: Fri, 15 Apr 2022 11:10:43 +0200 Message-Id: <871qxyiuek.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #54946 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 54946 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 54946 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 16 03:10:00 2022 Received: (at 54946) by debbugs.gnu.org; 16 Apr 2022 07:10:00 +0000 Received: from localhost ([127.0.0.1]:60649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfcZ9-0008Ry-OL for submit@debbugs.gnu.org; Sat, 16 Apr 2022 03:10:00 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:46279) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfcZ3-0008Rh-AI for 54946@debbugs.gnu.org; Sat, 16 Apr 2022 03:09:54 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 76860320206D; Sat, 16 Apr 2022 03:09:43 -0400 (EDT) Received: from imap45 ([10.202.2.95]) by compute4.internal (MEProxy); Sat, 16 Apr 2022 03:09:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z1k.dev; h=cc:cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1650092982; x=1650179382; bh=dGuqWv9PwP LWekaUpgavl4HSun0O85TtA24SzrbTN08=; b=Ns6FBx6tSz4M3IpPALgR4s23+c oSrvjRiRbNjslSKIZC5HnxuFmde04w0KiJUJxP2xY4dkaolMaAvXy1dIH5CwKiXx Bf4iZ2PBHSNCTAiks+MehxZhDBPeswYRZ39DDc9K3qD0R8gwhj/7m4HA36aAPK6+ 6zx92Wgc7m7zGO5vYNJEnZkhJz5tlBETygTNbqYMgDduUZ/CDm6KEbvFErFYN9+F lgngYkqliFXhJwKPw8Wcg2vtzZnk8ObKahmAkrtFQz8qQrExn11Mntvkfcq8+AO1 DYr67rp3pLDex+y4eyz5MixDRk8a++sqS1XFov7YDiO4Jj9QoJHcg/GABL2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1650092982; x= 1650179382; bh=dGuqWv9PwPLWekaUpgavl4HSun0O85TtA24SzrbTN08=; b=n sh1bOZxmJQZcawPJojvArl+q1OoW/GQ1qwsXjn/fFKAuKQDgpeVHUljAfneVb5hS WiAm+FEbxs18sqCE+0u/XpWAiH39fyA7usTuDR8St0APLO+RBz8K0Secz48poYHO aiULgZaat16Y9EMaOh020lGTUg4NwogHx4mdkOy5UUj+KY2EaOxTIY6xbEhBrJBC qpEJAwwZtq5IO/KjKP2Fjmpu+px5pcCbbVwZQ8B94Rjpg87Un0T06Muf/OsSouJ4 /wI6gSC9/TvNbWqriToUiDjHUqt4NA0tD0FDFfQFFspAOsdM0es973ToSpk/FCgU 7XrS/RwpFSJ+gLun6DRtA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeliedgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfjghi khgrihcukghhrghofdcuoeihihhkrghiseiiudhkrdguvghvqeenucggtffrrghtthgvrh hnpeekjefhffdtueekleettedugeefhfegleekieejjeektddtgeefkedtgfdvgefffeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeihihhkrg hiseiiudhkrdguvghv X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8B4BF24A0074; Sat, 16 Apr 2022 03:09:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-387-g7ea99c4045-fm-20220413.002-g7ea99c40 Mime-Version: 1.0 Message-Id: <57024e91-7206-4cd3-b312-bc666a1ee9f6@www.fastmail.com> In-Reply-To: <837d7q3ea0.fsf@gnu.org> References: <837d7q3ea0.fsf@gnu.org> Date: Sat, 16 Apr 2022 15:09:22 +0800 From: "Yikai Zhao" To: "Eli Zaretskii" Subject: Re: bug#54946: 28.1; next-line skip one line when overlay is added in newline Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 54946 Cc: 54946@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Should be fixed now on the emacs-28 branch. Thank you so much for fixing it so quickly! > This is a very old bug, and rears its ugly head only of > line-move-visual is disabled. Yes. `line-move-visual` is enabled by default by evil-mode, so I guess it affected a large group of users. From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 16 03:10:50 2022 Received: (at 54946) by debbugs.gnu.org; 16 Apr 2022 07:10:50 +0000 Received: from localhost ([127.0.0.1]:60654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfcZy-0008Tg-6K for submit@debbugs.gnu.org; Sat, 16 Apr 2022 03:10:50 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:58471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfcZs-0008TP-6O for 54946@debbugs.gnu.org; Sat, 16 Apr 2022 03:10:44 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 80D19320208C; Sat, 16 Apr 2022 03:10:34 -0400 (EDT) Received: from imap45 ([10.202.2.95]) by compute4.internal (MEProxy); Sat, 16 Apr 2022 03:10:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z1k.dev; h=cc:cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1650093033; x=1650179433; bh=ZR9mp7WX51 +mjw5Hn8CnBgci8VSTUqN75jP6E6Tq4fw=; b=AWf6ohBWR1C5EYHN5zVuth6PlR 1+aGTBg7zTM9P8v5W9Tu5RxRH4MHJT6BibI2TzjRtZRvgQpfPCpYJLcSjQlJat0G 8e+wjZxV5qpq77hOxxeEXv/WD6N2ivbSw51LUSmxNqndPI0KEozwxKgXeImnNVBy P3FVXIkAGR4ktmOhU+8s3nTA0SeKZZ7KiSgX1fDVRR4I1lZehoBiFsMTOyCMw4L4 cMC7nW0OSRq+4ssLAx50bgb01Gn/Rxgjv0Znc4nZ22J29CEw22DA3AdcyqZEu7wN jHZ3/z5D3qz2kH8mSSDXg2UXcDY8EEsrZErPG8pMBY3IkRbzuS463eZ4DesQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1650093033; x= 1650179433; bh=ZR9mp7WX51+mjw5Hn8CnBgci8VSTUqN75jP6E6Tq4fw=; b=n gOaS4QmIzDIh4lOPSOWX5ejM33euvzGj4AOPYkNLMqXQLFjd11N2BSGcZfPes7l0 nOOL9RrBiQ8ifoMzvw3gT0cc9s0cjrlVnchMo6q8wT6KcVBtSgH3Suel2I43zjLC YHHJOpbY4PkshXbaxtpe42cVzduIeljyd6Ye7yBL4fXCBnphHAZg+DdGLCE/8yl1 5XTn+V7HPCGWQZnNfm/TdpHcpVoL4LLMMWuo+JWIOq6c9M9UxwZslN0SyqYmVFDz S56RJqJyCm/9+xs/dPDpV80vZjBj+hxASgN7+upz6ShtE2m3EWmQruCN1Q8OmPrs 4Xf/X476oHhlGmOO+Jleg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeliedgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfjghi khgrihcukghhrghofdcuoeihihhkrghiseiiudhkrdguvghvqeenucggtffrrghtthgvrh hnpeekjefhffdtueekleettedugeefhfegleekieejjeektddtgeefkedtgfdvgefffeen ucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpeihihhkrg hiseiiudhkrdguvghv X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id BCF5D24A0074; Sat, 16 Apr 2022 03:10:33 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-387-g7ea99c4045-fm-20220413.002-g7ea99c40 Mime-Version: 1.0 Message-Id: <3729d95d-bdb9-455c-97be-01da823490a7@www.fastmail.com> In-Reply-To: <57024e91-7206-4cd3-b312-bc666a1ee9f6@www.fastmail.com> References: <837d7q3ea0.fsf@gnu.org> <57024e91-7206-4cd3-b312-bc666a1ee9f6@www.fastmail.com> Date: Sat, 16 Apr 2022 15:10:13 +0800 From: "Yikai Zhao" To: "Eli Zaretskii" Subject: Re: bug#54946: 28.1; next-line skip one line when overlay is added in newline Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 54946 Cc: 54946@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Yes. `line-move-visual` is enabled by default by evil-mode, so I guess > it affected a large group of users. Typo. I meant 'disabled by default by evil-mode' From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 16 04:09:09 2022 Received: (at 54946-done) by debbugs.gnu.org; 16 Apr 2022 08:09:09 +0000 Received: from localhost ([127.0.0.1]:60682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfdUT-0001Vr-4n for submit@debbugs.gnu.org; Sat, 16 Apr 2022 04:09:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfdUR-0001Vf-SZ for 54946-done@debbugs.gnu.org; Sat, 16 Apr 2022 04:09:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfdUL-00034H-7J; Sat, 16 Apr 2022 04:09:02 -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=b6FOgHQFbV+vNRhFDmekkYCff/ZEv0VsG//Rv3Y5Okw=; b=GOnyoJeXI0a2 YMHcZEFU9nrmbgwzIApan0XGfC1Mx1D7F6lalQDHXZs54CSmONpPkzzgG9a3XpnQgL5oP4IEXhJsU qISiW3gLlzp2xajvkKq9RnWP6t+6IE4jJgwHOi/Cd9gNC5pQPfLKErYrlaTqTKC8FJ6Pa2qcJ/baO n65SFbSc23w7poQBwr1SoSGCEglUldxqBw6Z1/6aVf2xxr9847ykhlF+xVL9dZj/Uzq0smbOlLq62 9Me+Fi8/r7IP50230dPYFLqYkiiZ++A3eVveovPu+dwJ7yJgd0txdle7Q9WdkIPk3w8pUnb3eOsoT 66CmDoJGJDZUMnmJHVCuDw==; Received: from [87.69.77.57] (port=4669 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 1nfdUJ-0006fU-MK; Sat, 16 Apr 2022 04:09:00 -0400 Date: Sat, 16 Apr 2022 11:09:13 +0300 Message-Id: <83h76t1mc6.fsf@gnu.org> From: Eli Zaretskii To: "Yikai Zhao" In-Reply-To: <57024e91-7206-4cd3-b312-bc666a1ee9f6@www.fastmail.com> (yikai@z1k.dev) Subject: Re: bug#54946: 28.1; next-line skip one line when overlay is added in newline References: <837d7q3ea0.fsf@gnu.org> <57024e91-7206-4cd3-b312-bc666a1ee9f6@www.fastmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54946-done Cc: 54946-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 16 Apr 2022 15:09:22 +0800 > From: "Yikai Zhao" > Cc: 54946@debbugs.gnu.org > > > Should be fixed now on the emacs-28 branch. > > Thank you so much for fixing it so quickly! > > > This is a very old bug, and rears its ugly head only of > > line-move-visual is disabled. > > Yes. `line-move-visual` is enabled by default by evil-mode, so I guess it affected a large group of users. Thanks for testing, I'm therefore closing this bug. From unknown Sun Jun 22 11:36:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 14 May 2022 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator