From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Liu Hui Newsgroups: gmane.emacs.bugs Subject: bug#45837: 28.0.50; incorrect cursor position in visual-line-mode when word-wrap-by-category is t Date: Wed, 13 Jan 2021 10:27:24 +0800 Message-ID: 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="30901"; mail-complaints-to="usenet@ciao.gmane.io" To: 45837@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 13 03:28:12 2021 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 1kzVtL-0007vB-0q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 03:28:11 +0100 Original-Received: from localhost ([::1]:36784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzVtK-0001uL-0K for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 21:28:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzVtD-0001t9-3Y for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 21:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzVtC-0003YN-Ql for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 21:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzVtC-0003MF-KO for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 21:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Liu Hui Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2021 02:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45837 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161050486312878 (code B ref -1); Wed, 13 Jan 2021 02:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2021 02:27:43 +0000 Original-Received: from localhost ([127.0.0.1]:33836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzVss-0003Le-JM for submit@debbugs.gnu.org; Tue, 12 Jan 2021 21:27:42 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzVsp-0003LV-Oh for submit@debbugs.gnu.org; Tue, 12 Jan 2021 21:27:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzVso-0001Xg-Nf for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 21:27:39 -0500 Original-Received: from mail-yb1-xb44.google.com ([2607:f8b0:4864:20::b44]:45360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzVsm-0003LU-QL for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 21:27:38 -0500 Original-Received: by mail-yb1-xb44.google.com with SMTP id k78so707286ybf.12 for ; Tue, 12 Jan 2021 18:27:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=X49yU8jdUP2cVzoOWOBySBVUiz5f9aYgCBJ6a1vaR6Y=; b=bQk7w59h5FBEn3TCsVq8BGla9EQpUtMYJGGIE4ntYXKpBb4SKXoAmTXFlNNiHMwZlZ RO7hKY9pJBe5zMZynVCGCDtwKib3dEQzvn4ljZ5mEevOjIE7Y18LMFWNir2WH/NnFADv HHrD+Jx67dKSnvX9M0rrpRMorEAndBdi4c/W//55vT4joPT2hozHIvvv9CDB3yYRN3bD KC9pQ8kAWNrz6Gkn6UotiFglXywfEnnb3pSfXFWrr7xlYH3ME3AWrNj/Pwxr8pPv8QHC /Syn6o9YwkBlEdiaGtprL6b4ssjoL83TooeDk8YFW22wKzrhPRU/Sb5E3kEEIM7CHnBc 98xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=X49yU8jdUP2cVzoOWOBySBVUiz5f9aYgCBJ6a1vaR6Y=; b=E+sZIjJfnkvGxiax6sIY3SzFWkL9cADN7hlMjxEdslL8oI4sgNq9TRKuxLRP9FLw5R WGed/DtE+SY0/Fx+3HeSPIT2HQh2z4zzXbMTSi7HdyuaYuw99JOn8WEedtoXP3mWQ12V q/9q204OFHyP9V7lGt5uXmvr45THXL9osFN6Y72sIeJLfgl5huuPnmmOOmK+bX+kegbu lCjyfuyFVszGtiJr/wPwWUnRq1UdSU8gw9vmXDuM7oyv/XnjiCC1GhP7JBluEvObGOKS LQX13SKvL1zt4MWHgZhgxMGAZjrQIdWf/ur27MiIUW25Z3IqE6FA1RO2u0EuUnkK+iS3 6G8A== X-Gm-Message-State: AOAM532fNj1Vvobv4hk0DTzBq8kmZyMR0Yi0iVKwYbCGdDynX25NIF09 3iI394gyQOuldZ1UFIrRRnor4alxf6yMjaX/75OWlf/CYiUIZFmqKxQ= X-Google-Smtp-Source: ABdhPJx6gDf/mQ+/4L5Eq44ZXA8do3hEWVu4x4aiLM8iy50XTXZ17kySo9ep3MrMMvMDLZhWK6NKw05U6kttK7Pd0UQ= X-Received: by 2002:a25:d802:: with SMTP id p2mr180160ybg.305.1610504854807; Tue, 12 Jan 2021 18:27:34 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::b44; envelope-from=liuhui1610@gmail.com; helo=mail-yb1-xb44.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:197872 Archived-At: Steps to reproduce: 1. emacs -Q 2. eval the following code in the *scratch* buffer: (with-current-buffer-window "*test*" nil nil (dotimes (_ 3) (dotimes (i 10) (insert "=E4=B8=80=E4=BA=8C=E4=B8=89=E5=9B=9B=E4=BA=94=E5=85=AD= =E4=B8=83=E5=85=AB=E4=B9=9D=E5=8D=81")) (dotimes (i 20) (insert "test "))) (setq word-wrap-by-category t) (visual-line-mode)) 3. In the *test* buffer, C-a/C-e don't always move the cursor to the beginning/end of screen line. There is also an offset between the mouse click location and the cursor position. If there seems to be no problem, you can adjust the window width and recheck the cursor movement. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-01-12 built on lcy01-amd64-029 Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Ubuntu 20.04.1 LTS Configured using: 'configure --build=3Dx86_64-linux-gnu --prefix=3D/usr '--includedir=3D${prefix}/include' '--mandir=3D${prefix}/share/man' '--infodir=3D${prefix}/share/info' --sysconfdir=3D/etc --localstatedir=3D/v= ar --disable-silent-rules '--libdir=3D${prefix}/lib/x86_64-linux-gnu' '--libexecdir=3D${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=3D/usr --sharedstatedir=3D/var/lib --program-suffix=3D-snapshot --with-modules=3Dyes --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-xwidgets=3Dyes 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs-snapshot-4HYkJA/emacs-snapshot-103322=3D. -fstack-protector-strong -Wformat -Werror=3Dformat-security' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: zh_CN.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils china-util iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu 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 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 xwidget-internal dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 51700 5953) (symbols 48 6834 1) (strings 32 18505 2017) (string-bytes 1 607714) (vectors 16 12701) (vector-slots 8 222094 12046) (floats 8 21 45) (intervals 56 226 0) (buffers 984 10))