From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Allowing point to be outside the window? Date: Sun, 28 Nov 2021 16:13:46 +0800 Message-ID: <87sfvg7l51.fsf@yahoo.com> References: <87ilwd7zaq.fsf.ref@yahoo.com> <87ilwd7zaq.fsf@yahoo.com> <83bl24yaed.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="24285"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 28 09:14:38 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mrFKY-00069e-Fa for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Nov 2021 09:14:38 +0100 Original-Received: from localhost ([::1]:38794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrFKW-00049U-V4 for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Nov 2021 03:14:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrFJv-0003T7-D3 for emacs-devel@gnu.org; Sun, 28 Nov 2021 03:13:59 -0500 Original-Received: from sonic308-56.consmr.mail.ne1.yahoo.com ([66.163.187.31]:42751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrFJu-0000Jk-3K for emacs-devel@gnu.org; Sun, 28 Nov 2021 03:13:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638087233; bh=guhwvkIBnwTk8ctbqL9yU4LVzLtELnKgceZ5i4pReRY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=rg9gE8QXPYcQTbNQsC1CJrwSZ0GQYYCzATogQk9SVs4fdh2kA3I4FGPQDaFY/UODptxdDyzhQlAyvAI8qKgjQ8Iv46sE1cM2tSOsGlnzZmkFsNgcRQZCTrn8IxyRWzHnMAXOS33z8I6JP0it3ROT1j2JQj5FhXlVvRoxHAyuKOHm36kx9tlOAgw/VD2HJEqMXNN2jr1GD1x5jEHIovASPrpuHidbk1pxjBFyS+OadGZOgarpEWFcu+ocCUx+bG/0aWKTEOqYkHSZJBiYAIHRk42FcYnB0Voc8Ck4l/6wpPdwrzb0olR3riGbo8x/tktBHzGRbZtIFB55Ywl/9I/PnA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638087233; bh=5sb51zgEt4ep+We3lPp90X2oR2XdKDqI7DKC5oeZkLe=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=XyKHyRaBygRh8F9gBMNUwko+2GeZDCwE0uAgBo3eC+eA+1da0GakPB0/pBmn1lvYRWrt+VSGHUhNMHGsvg+y6K4R6qkiiD0UfzvZ1sfYD9jn9LxYkBC6shXksos2LC5Zt0nNzDzB8nXSjmuVdkOK/wvBGSwKz8FilTDb1a+t++ZgvyM9ifXIlNGfx0oeDH7G1flEZtZ3AbUZHk2C2tVmZqOR4BxTVd0Y/oKaB0/U2INty5oBvdTqvFMhdAKQg/vgF2tqlqqLrmF2jB8s22BM6EW/X9B4KLsOM4XiHIm85NgqhvqdnDk2KKRi5a+WMpiY7FkZXE5eqPxu2zlvCtTsbQ== X-YMail-OSG: ahyB8ngVM1kcVsoWGGnNUSPPWraEcRoTT6gsatkrs7AcKBTaINq7s.ZkgIP0u02 C9dcWpYi48PMxoPcBA4aOmYqBlmB.Q6ZCe6UdeIk9.5UXW9KZ_.Cmo1pFjbTG7hR7SHHvwYVIGxi Mx8GnLYKrzbRf_dwXw.fRiSUFpc9SLbRF6BxDXJ.BYGmv1lSJLKq0xAsZrDYekfZdNlzmmfLk7R_ kD7fmI5VCBhWsKcUyuGreEog4iq5POlSm_wTbqDjebMPXDXf6.tcrpZXb_AAzkQfIyQ4A48V83aP ABCOUWBKPyKffDWT3zBWquzBsXTI1J7pBLxVDDBfIsthKJWiqb6G5BLsNsi4tvia5VOkSOy5g4ob jIFAOjlXPuzxGYNgeItgpBDYyO3k1Y16h7yIVsMa.eYWNNC0MWR9US7VIWdWTjiJ64xThW02z6bs _s0e8GXrt6Ivnb0av3MaN.h8NM8g0Ehk7DZaIrumChSVNafagBkE3EcDCRTqVIgg1rEuYK20mDoB 8f3.Ds8eMjVaTozC.fdcADY7orDAEPnkVEHZ.Jjj9d9nkSckN8BKPJLkzoq.BJ1Bb0hxeKszUSNO .RQ8bchqHbNqROBNzaz_1wseVblugR1hmNGdRMeCouT31aRB5aROlQnDJAU.DIxvyJSv5VLNojqQ _teveDiqRuRLKwfsk8OvSeJMOJsV24U_yYjeVzoqrDSTJJqKAA62spXz7qXRsIDGHqNytpXhOErk 3o3yrasGAUvRi4E2JpXlrkI.2C_T.Ecb.2uItpK9eGVrZ.03oO_qdCWBx3wYzaqYkoJtAvzUwq_B pKJ.KvrDIFXIlTUHVlzWK_J94E0Q2e9SqH4fmFmrp3 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Sun, 28 Nov 2021 08:13:53 +0000 Original-Received: by kubenode519.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 032c3ff8915efeaae0ee4bef49fa84fe; Sun, 28 Nov 2021 08:13:51 +0000 (UTC) In-Reply-To: <83bl24yaed.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 28 Nov 2021 10:03:38 +0200") X-Mailer: WebService/1.1.19306 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.31; envelope-from=luangruo@yahoo.com; helo=sonic308-56.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280384 Archived-At: Eli Zaretskii writes: >> From: Po Lu >> Date: Sun, 28 Nov 2021 11:07:57 +0800 >> >> I wonder what would be involved in allowing point to be outside a >> window's visible area. > > Two steps: > > 1. Design the feature: how would it work? which operations would > bring point back into the viewport, and which won't? For > example, a simple question: if point is outside of the viewport, > what is the effect of C-f or C-n on display? The effect would be move point forward, or to the next line, and then to recenter the window, so point is at the center of the window. Inserting text should probably recenter the window as well, if point is outside the visible area (this is also how other programs behave). This is how other programs behave as well. > IMO, it's a large job if done cleanly. Patches welcome. Thanks, I will take a look at it.