From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eason Huang Newsgroups: gmane.emacs.bugs Subject: bug#75333: 31.0.50; Feature-Request: Always keep cursor's position when pixel scrolling Date: Sat, 04 Jan 2025 22:03:09 +0800 Message-ID: References: <86jzbbf2ej.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16547"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Po Lu , 75333@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 15:04:24 2025 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 1tU4lL-0004D7-WC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 15:04:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU4l7-00018o-SG; Sat, 04 Jan 2025 09:04:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU4l2-00018A-Ne for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:04:06 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU4l2-0005wF-F6 for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:04:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=zF4fG//lKjn1mBLzeskfFCci40fmF5/Ur16xx6viXOA=; b=SsPGuNQpPY9NH2/iOAQLi0hSzP7nIguapYqetloc7Fw12Plyce9jR9wwwZ/6RJQwUkCrX3TLzjCYaaXIrOEtCVSxmnjki+nyz5jJealnHaLaKYTBHflgdj0QQpoI18PbA6j8C8dVqtmEUCtMapycZl3T5IAFYbFKKzQBIPgSqSy5r6hrDk6h550FzNx+sVFoBu55N7WsScx4oLfsE/vhVn7zgRSVu95h9yeeU9rWB52VnGHvQwhUy69YYykY1CvFlv891Lso7rYdTcVv9VDVHIUVg2MsAQmaugXWUlhusg4Wqqm1FFCACQ1Nvh3bsuZRwuHKYDww3rTVrfqnoHXa2g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU4l0-0001FW-1M for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 14:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75333 X-GNU-PR-Package: emacs Original-Received: via spool by 75333-submit@debbugs.gnu.org id=B75333.17359994194771 (code B ref 75333); Sat, 04 Jan 2025 14:04:01 +0000 Original-Received: (at 75333) by debbugs.gnu.org; 4 Jan 2025 14:03:39 +0000 Original-Received: from localhost ([127.0.0.1]:53977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU4kc-0001Et-Hs for submit@debbugs.gnu.org; Sat, 04 Jan 2025 09:03:38 -0500 Original-Received: from out162-62-57-87.mail.qq.com ([162.62.57.87]:52143) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU4kY-0001EZ-VF for 75333@debbugs.gnu.org; Sat, 04 Jan 2025 09:03:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1735999394; bh=zF4fG//lKjn1mBLzeskfFCci40fmF5/Ur16xx6viXOA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=Y/bClkQXN9gWLFFYh0RbXrdMycWhJRwUZEAmPy/O0svgHge3s7pfZqMUlWmsPBYkh L04lqdKW+VhNFFT8RWLqB8rE1FkOm1l3cYBEjctah5kWkoKNiKDZ6iXG/X6jGgu6L2 uic8Pw+VBf1hIAd5O0/bih/r6wI8Ciji5xSKVyQo= Original-Received: from 192.168.1.4 ([101.85.8.70]) by newxmesmtplogicsvrsza36-0.qq.com (NewEsmtp) with SMTP id CD3C29B; Sat, 04 Jan 2025 22:03:13 +0800 X-QQ-mid: xmsmtpt1735999393tgle59wxg X-QQ-XMAILINFO: NC4p7XQIBeahw9uDy0AY9AgpgjGKtWE/elNxrGRPX1QkR7YwfKn5KbSph/1YO9 jtCatbue7HqfvAb7qPGLmi1IMhUctZ5muovAKMuvrbNmL3Wu2nEtB5hf+5myvMH+BxI/Jf1y8m3T UO81cjCUyorZkxyWzHSnzVA/TvSfV0+80CWenzXdu3usWHFVY9z8HRPvZMm7JWePs1+rSoI3iqJL Orn1gWAhju+HQ5GiIc23lewdEHwTRdW0agS0vnMU62V/FMQUudVYJci5Dui7rmbDVWmLG6aa6+SR 4Yiae5IAemdch7U6iqKAGMg1DBn8A9igIXmpBkIbbwz8x7nmfjD3aWmUQBHk3v6PETjnnQjhpuBP 9siJFfi1PjdMcTw0tKsNnqwHQaZFkbeYIrd7wJYXl8fM67gx13EEGu65dUSEl3c/BsklRdd1jx6Y sJOEl41Ys2qW7MST6Ykx7ZQvBOCqFDz5XlRR3/Y8BR+Kd/B8lwPNq2MvHkF9KdbdAMjh/84GmAgY A8y/iK4vmVCrhVAmK+mPXWY+/9EOAxje2o9tBJPwUVGTbCQ1swO5izW0RME6XnoZpitj5pM8+vYS GS8lsmwaEOE+FsATtGM2JZGlzyapSh3Gv21+LjxSr8BmMrGTUk7laD+ZdiqB7gy/Tj2DhmIa3EIV x0V8GCXgOZFjV2Tny2iGm+2SFS8z5uJgfHejy/TxzrsdBjSCvqbIBDH378AETxIp/Ss4wGgcjTiA 8Q2uKVPBV8x0731zsvpnGDGO24gdfS5zPJQ9rZ7ATJUSCKYz93SHT0enzdt8FZVayNyHf9IDPQmM RFXVm9WFiXINFvIJmznpxPpTAdYZPgYSjYo6oQ9W X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= In-Reply-To: <86jzbbf2ej.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2025 09:45:24 +0200") X-OQ-MSGID: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298405 Archived-At: Eli Zaretskii writes: >> From: Eason Huang >> Date: Sat, 04 Jan 2025 08:50:04 +0800 >> >> >> Recently, when the cursor is inside the screen, it's positon will not >> move when pixel scrolling. But when the cursor touching the bording of >> window, it's position begin to change. >> >> expected: >> >> 1. when the cursor(line) is closed to the border of window, partially-visible >> the cursor >> 2. when the cursor(line) is outside the window, hide the cursor >> 3. wehn the cursor(line) is inside the window, show the cursor again >> >> Or there already an option to enable this feature? >> >> As I known, Apple Xcode and Microsoft Word have the same behavior as >> describe above. > > Unlike other editors, Emacs' display engine was designed with the > explicit requirement that the position of point (what you call > "cursor") is always visible in the window. So when the window is > scrolled for some reason, Emacs moves point to bring it back into the > visible portion of the window. This behavior is coded and assumed all > over the place, and is hard to change. There's therefore no option > for the behavior you expect. > > There was an effort in the past to provide such behavior as an option, > but AFAIR it wasn't completed. We did discuss some of the > consequences of such behavior and identified some problematic > decisions which will need to be made in various situations (e.g., what > should happen when point is outside of the window and the user runs > some command which modifies the buffer?), and I personally consider > those issues we considered to be the tip of a very large iceberg. See > this discussion: > > https://lists.gnu.org/archive/html/emacs-devel/2021-12/msg00328.html > Hi Eli, Thanks for your explanation, it make sense. -- Eason Huang