From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: HaiJun Zhang Newsgroups: gmane.emacs.bugs Subject: bug#38731: 27.0.50; Unexpected redisplay behaviour. Cursor =?UTF-8?Q?can=E2=80=99t?= be moved to end of line. Date: Tue, 24 Dec 2019 18:43:34 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5e01ebdb_75a2a8d4_4379" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="45880"; mail-complaints-to="usenet@blaine.gmane.org" To: Emanuel@debbugs.gnu.org, Berg@debbugs.gnu.org, via@debbugs.gnu.org, Bug@debbugs.gnu.org, reports@debbugs.gnu.org, for@debbugs.gnu.org, GNU@debbugs.gnu.org, Emacs@debbugs.gnu.org, 38731@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 24 11:44:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ijhfh-000Bm0-2e for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Dec 2019 11:44:13 +0100 Original-Received: from localhost ([::1]:38054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijhff-0001td-SO for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Dec 2019 05:44:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42555) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijhfY-0001tW-Ji for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 05:44:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijhfW-0007EJ-N7 for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 05:44:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46004) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ijhfW-0007EE-JE for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 05:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ijhfW-00077c-Gl for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 05:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Dec 2019 10:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38731 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors Original-Received: via spool by submit@debbugs.gnu.org id=B.157718423627354 (code B ref -1); Tue, 24 Dec 2019 10:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Dec 2019 10:43:56 +0000 Original-Received: from localhost ([127.0.0.1]:51977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijhfP-000775-9I for submit@debbugs.gnu.org; Tue, 24 Dec 2019 05:43:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijhfN-00076x-3H for submit@debbugs.gnu.org; Tue, 24 Dec 2019 05:43:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42491) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijhfK-0001qa-K0 for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 05:43:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijhfI-000781-MT for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 05:43:50 -0500 Original-Received: from mail-oln040092255017.outbound.protection.outlook.com ([40.92.255.17]:21600 helo=APC01-HK2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ijhfH-00075S-Km for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 05:43:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WXjCnwLggbeCIoLWG1yxkeCjDzfapegeWQj7yUb6uG9HIloSXIW0Za24ps2UsbRl4oJ5+4gLTNLU7JPit5n2h0sk9h1E4xqCsSg6O+2RqwIXMo6kykOs4M+L1jNojDsvjjQU1a45dUqau3ImvU3YSZav8jlvRvNydMLmeRPhEN9jA/NOus2OiQ+5kBkB1DmZTvW1gIrYQ6BXSdHqUcU7jcd1mWjksEjZRARfRrpSMKj6kVCuI0fbgzwqHW6oYspPJjYODhGg1Y+SpXlBr7vGABDBRcDjv71tfIU85KpUGBsj5zQb9+wAZSzFsfdElwvDztyJeRpkkVI+hJt0wmMi+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6oCMImoM+exONyyh3SSjCUEcca4EWXQmyRcECq1P5NY=; b=Rx5snlcyXUWvh6Ue2VZlGJWNlBzOOEeAr+lsPhC2/ax807GSFL1a0zZRTv91HhX68SyiG9LxWwPNsakddy4Zlzv1IbIZkeCoaM6zCjFPnBjpBSklcqawfSMEMIzrDIds67u0TpARD6eyMvBF+H0ENLSxVL5pKzIufuySe4NXjdBKDKs58NjRwTdepjAf1S8hr634XnMF5722XdfB2fiqYgt3oY7otBGToSxiNNnANojGgMZy1QqV8wns4nbNXOOLEnOyPUl+nHm8O/eQEnPlnSY/dsy8rOUd2JAGc9NNDu1SdPS5U2OiZXaGhfnVeKs+HGvOe38FFEqh+A1bdWSOEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6oCMImoM+exONyyh3SSjCUEcca4EWXQmyRcECq1P5NY=; b=KI5wb4mUkrR3GsDwGw1HzFL3opS47qynvYQWZgrN33J3nbjFMjhwuYLmSf0nDXL6/coGvheNsTDiB3dpqH2vZpMcECTlA7PK6MfRJ2+cUj/DccvBPztZTFvkYKHW+Z7xJ3vJhImhgWlQEkguCgqBPWtU+Nwq7YUIuCY24LW939BvoQKm5pDGcWjbtgFp08si2pdSqleFa9hLQuyvYpG+0bWjmZUFW8ISty7BPj+IR58OL10Ul4JN2uu6AMwbsTYUVWldCQ8xV1HCEKWc07Xn9U14dbZ13MHeyXPOxMt8OOzpqMVxdFkpozeteTMBANDb4HB9wHwZLFXWa3FkSAnLGw== Original-Received: from PU1APC01FT063.eop-APC01.prod.protection.outlook.com (10.152.252.51) by PU1APC01HT102.eop-APC01.prod.protection.outlook.com (10.152.253.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14; Tue, 24 Dec 2019 10:43:43 +0000 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.60) by PU1APC01FT063.mail.protection.outlook.com (10.152.253.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14 via Frontend Transport; Tue, 24 Dec 2019 10:43:43 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:F2908E3146536A6704F069628987FD8623A1C50648BE78DC8AEAA7340D510AB6; UpperCasedChecksum:D9E5913F1D9761A068C02144772F1C0AC603B1E65E013EAC52A515B1D5EEDBB7; SizeAsReceived:8684; Count:46 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4%5]) with mapi id 15.20.2581.007; Tue, 24 Dec 2019 10:43:43 +0000 X-Readdle-Message-ID: 13fcfb6c-66bd-40ab-bb6a-faa6c24e9d08@Spark X-ClientProxiedBy: HK2PR02CA0189.apcprd02.prod.outlook.com (2603:1096:201:21::25) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <13fcfb6c-66bd-40ab-bb6a-faa6c24e9d08@Spark> Original-Received: from [192.168.1.103] (1.196.186.208) by HK2PR02CA0189.apcprd02.prod.outlook.com (2603:1096:201:21::25) with Microsoft SMTP Server (version=TLS1_2, cipher=) via Frontend Transport; Tue, 24 Dec 2019 10:43:42 +0000 X-Readdle-Message-ID: 13fcfb6c-66bd-40ab-bb6a-faa6c24e9d08@Spark X-Microsoft-Original-Message-ID: <13fcfb6c-66bd-40ab-bb6a-faa6c24e9d08@Spark> X-TMN: [jTJNdwGHHPoNQeCSDys9TFV+DJVBg54u] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 4ccbad70-7996-4332-b3c3-08d7885e2517 X-MS-TrafficTypeDiagnostic: PU1APC01HT102: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1i8gQok0Xhgm7Z6RUIu4DWiDr/MXaV9XxtZ4CnwrDFQaBjZ1bMLYgWAXwVMsVt+MWjWBcv9P3pTwE61yIgpUMg64+9a9nS/HZBBe0ODqETNXFajz/9z0PMfOG9P2+O0WSqrlyyNxNX/8ooSHuHqquue67suirQIQhPMHja7ha99bq4+c91cPRzXx+my5YoOf X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ccbad70-7996-4332-b3c3-08d7885e2517 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2019 10:43:42.9756 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT102 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173704 Archived-At: --5e01ebdb_75a2a8d4_4379 Content-Type: multipart/alternative; boundary="5e01ebdb_6763845e_4379" --5e01ebdb_6763845e_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline In GNU Emacs 27.0.50 (build 1, x86=5F64-apple-darwin17.7.0, NS appkit-156= 1.61 Version 10.13.6 (Build 17G10021)) =C2=A0of 2019-12-23 built on jundeMac Repository revision: 3ee8ee8476fef2a5e8159f7597e36e0953295ce2 Repository branch: mod Windowing system distributor =E2=80=98Apple', version 10.3.1561 System Description: Mac OS X 10.13.6 Reproduction steps: 1. emacs -Q 2. open the test file in attachment(a.cpp) 3. M-x toggle-truncate-lines 4. M-x global-hl-line 5. shrink the width of the emacs window so that the longest line(=2312) c= an=E2=80=99t be fully visible 6. go to line 12 and press C-e to goto end of line 7. the cursor is not at the end of line and you can=E2=80=99t move the cu= rsor to end of line Recent messages: =46or information about GNU Emacs and the GNU system, type C-h C-a. Truncate long lines enabled Global Hl-Line mode enabled next-line: End of buffer delete-backward-char: Text is read-only funcall-interactively: End of buffer =5B3 times=5D Configured using: =C2=A0=E2=80=98configure =E2=80=94with-ns '--enable-locallisppath=3D/Libr= ary/Application =C2=A0Support/Emacs/=24=7Bversion=7D/site-lisp:/Library/Application =C2=A0Support/Emacs/site-lisp=E2=80=99 --with-modules --disable-acl =C2=A0=E2=80=94without-makeinfo C=46LAGS=3D-O2=E2=80=99 Configured features: RSVG GLIB NOTI=46Y KQUEUE GNUTLS LIBXML2 ZLIB TOOLKIT=5FSCROLL=5FBARS NS MODULES THREADS PDUMPER LCMS2 GMP Important settings: =C2=A0 value of =24LANG: zh=5FCN.UT=46-8 =C2=A0 locale-coding-system: utf-8-unix Major mode: C++//l Minor modes in effect: =C2=A0 global-hl-line-mode: t =C2=A0 tooltip-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 tool-bar-mode: t =C2=A0 menu-bar-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 blink-cursor-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t =C2=A0 line-number-mode: t =C2=A0 transient-mark-mode: t =C2=A0 abbrev-mode: t Load-path shadows: None found. =46eatures: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs 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 sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-start cus-load hl-line vc-git diff-mode easy-mmode cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib china-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 80300 14394) =C2=A0(symbols 48 9922 0) =C2=A0(strings 32 24946 2210) =C2=A0(string-bytes 1 886243) =C2=A0(vectors 16 14651) =C2=A0(vector-slots 8 229697 4904) =C2=A0(floats 8 23 40) =C2=A0(intervals 56 259 0) =C2=A0(buffers 1000 12)) --5e01ebdb_6763845e_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin17.7.0,= NS appkit-1561.61 Version 10.13.6 (Build 17G10021))
 of 2019-12-23 built on jundeMac
Repository revision: 3ee8ee8476fef2a5e8159f7597e36e0953295ce2
Repository branch: mod
Windowing system distributor =E2=80=98Apple', version 10.3.1561
System Description: Mac OS X 10.13.6

Reproduction steps:
1. emacs -Q
2. open the test file in attachment(a.cpp)
3. M-x toggle-truncate-lines
4. M-x global-hl-line
5. shrink the width of the emacs window so that the longe= st line(#12) can=E2=80=99t be fully visible
6. go to line 12 and press C-e to goto end of line
7. the cursor is not at the end of line and you can=E2=80= =99t move the cursor to end of line



Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Truncate long lines enabled
Global Hl-Line mode enabled
next-line: End of buffer
delete-backward-char: Text is read-only
funcall-interactively: End of buffer [3 times]

Configured using:
 =E2=80=98configure =E2=80=94with-ns '--enable-locallisppath=3D/L= ibrary/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp=E2=80=99 --with-modules --disable-acl
 =E2=80=94without-makeinfo CFLAGS=3D-O2=E2=80=99

Configured features:
RSVG GLIB NOTIFY KQUEUE GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS
MODULES THREADS PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: zh_CN.UTF-8
  locale-coding-system: utf-8-unix

Major mode: C++//l

Minor modes in effect:
  global-hl-line-mode: t
  tooltip-mode: t
  global-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
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs<= /div>
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-conf= ig
gnus-util rmail rmail-loaddefs text-property-search time-date subr-x s= eq
byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode<= /div>
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-start cus-load
hl-line vc-git diff-mode easy-mmode cc-mode cc-fonts easymenu cc-guess=
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
cl-loaddefs cl-lib china-util tooltip eldoc electric uniquify ediff-ho= ok
vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize
mule-util term/common-win 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-m= s
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 loaddefs=
button faces cus-face macroexp files text-properties overlay sha1 md5<= /div>
base64 format env code-pages mule custom widget hashtable-print-readab= le
backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process=
emacs)

Memory information:
((conses 16 80300 14394)
 (symbols 48 9922 0)
 (strings 32 24946 2210)
 (string-bytes 1 886243)
 (vectors 16 14651)
 (vector-slots 8 229697 4904)
 (floats 8 23 40)
 (intervals 56 259 0)
 (buffers 1000 12))

--5e01ebdb_6763845e_4379-- --5e01ebdb_75a2a8d4_4379 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="a.cpp" I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqKmFyZ3YpCnsKCXBy aW50ZigiaGVsbG8gd29ybGRcbiIpOwoKCWlmKDEpCgl7CgkJaWYoMSkKCQl7CgkJCWlmKGEgbG9u ZyBsb25nIHZhcmlhYmxlIC1uYW1lIGZmZmZmZmZmZmZmZmYgKSB7CgkJCQkvLyBwcmludGYoIi0t LS0tLS0tLS0tLSB2ZXJ5IGxvbmcgbGluZSAuLi4uLi4uIiwgZm9vYmFyKCkpCgoJCQkJZm9vKCk7 CgkJCX0KCQl9Cgl9CgoJcmV0dXJuIDA7Cn0K --5e01ebdb_75a2a8d4_4379--