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#53220: 27.2; scroll-up moves point +1 if text has display property Date: Thu, 13 Jan 2022 14:26:19 +0200 Message-ID: <83pmov3jpw.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22832"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53220@debbugs.gnu.org To: awrhygty@outlook.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 13 13:27:32 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 1n7zCW-0005bK-7J for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Jan 2022 13:27:32 +0100 Original-Received: from localhost ([::1]:38016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7zCV-0001TB-6s for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Jan 2022 07:27:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7zC2-0001Qu-7o for bug-gnu-emacs@gnu.org; Thu, 13 Jan 2022 07:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7zC1-0002NL-TR for bug-gnu-emacs@gnu.org; Thu, 13 Jan 2022 07:27:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7zC1-00031d-Qt for bug-gnu-emacs@gnu.org; Thu, 13 Jan 2022 07:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jan 2022 12:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53220 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 53220-submit@debbugs.gnu.org id=B53220.164207678811572 (code B ref 53220); Thu, 13 Jan 2022 12:27:01 +0000 Original-Received: (at 53220) by debbugs.gnu.org; 13 Jan 2022 12:26:28 +0000 Original-Received: from localhost ([127.0.0.1]:60383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7zBU-00030Y-G0 for submit@debbugs.gnu.org; Thu, 13 Jan 2022 07:26:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7zBT-00030C-7e; Thu, 13 Jan 2022 07:26:27 -0500 Original-Received: from [2001:470:142:3::e] (port=42482 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7zBN-0002Jt-Vd; Thu, 13 Jan 2022 07:26:21 -0500 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=sdBVz0VeKXZmz2IXClkQsLuXrte4Qdxzguejpz73Nxg=; b=FfvNwmupNcEq zaGsVU03UBjWuBWqQ+DeT7to2e4unyKENavaVb9wJzvl2jGX2d+tFiFShID8R+XPzDMtgiAfNObMz 9yMnLIy7bRPQ8AbwtGOhA6OWomtvvRVGZ94qvgq18UH+xbgNwfz1EZZsoH5fvpQerv453brAr9Jz4 TtV6Rt6Mkmyjli1fItyrcaEy5NLxq51GG+E/694E76LURHd6X8W3ErW4lNhiaGvuvFg+sOxA6B1tZ D1pYW1WksydBFDGR5+0rb2ERlMBIlOFUAW+nKojR+mMga6Bk8lDAwL4eMLRaw8WOlEyNKxwE3tdvU NAQyswCtH5y67BPVpmpS8g==; Original-Received: from [87.69.77.57] (port=1316 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 1n7zBN-0008Fl-VG; Thu, 13 Jan 2022 07:26:22 -0500 In-Reply-To: (awrhygty@outlook.com) 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:224098 Archived-At: tags 53220 wontfix close 53220 thanks > From: awrhygty@outlook.com > Date: Thu, 13 Jan 2022 03:07:51 +0900 > > > Evaluate the form below and type 'C-v', the current point moves next to > the beginning of line. > Similarly, if the current point is at the window-start and type 'M-v', > the buffer scrolls down and the point moves next to the original position. > > (let ((buf (generate-new-buffer "tmp")) > (line (propertize "A" 'display "B"))) > (switch-to-buffer buf) > (dotimes (i 100) > (insert line ?\n)) > (goto-char (point-min))) Preserving the column by scrolling commands is tricky in the presence of display properties. I fixed the C-v case (at least partially), because it was a low-hanging fruit. But the general solution, if it's at all possible, is too complicated, and I see no reason to jump through hoops for such obscure use cases. We try very hard to preserve the column during C-n/C-p, and that should be enough. So I'm closing this bug report.