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.devel Subject: Re: Allowing point to be outside the window? Date: Sun, 28 Nov 2021 10:03:38 +0200 Message-ID: <83bl24yaed.fsf@gnu.org> References: <87ilwd7zaq.fsf.ref@yahoo.com> <87ilwd7zaq.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21520"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 28 09:05:13 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 1mrFBR-0005UK-A1 for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Nov 2021 09:05:13 +0100 Original-Received: from localhost ([::1]:59924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrFBP-0007Mq-VI for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Nov 2021 03:05:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrF9l-0006ee-IF for emacs-devel@gnu.org; Sun, 28 Nov 2021 03:03:29 -0500 Original-Received: from [2001:470:142:3::e] (port=55256 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 1mrF9l-0007bn-8W; Sun, 28 Nov 2021 03:03:29 -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=0E+pQUYaVCbCsin6LTxwu/Wca9065O305jjP25kGV7w=; b=EoRAdY2njHNh 1Dm1OYjhlT2gmfaQMYafePs8hl0gvaZ+gPkI53ivk0CF72NPioWPgRqUgInfL0tf+ypKJP6hwm9OH N8RZNmbg2bJnumnJUFkopMV0yafGH+49dMd33QR1YPUtNg7Hj/uY4FHRbZyxFOwsn+fIm2gBKgNiS iZemLWdCbjgsYe/Qz0kXpdYlMEXz42xQVptfksgctoS00kE/1lpSsHl/jnPtuoqn7WtB9m1W1RwqE RKWtdQV/YHHA8WN7f2Udv/XD5TIv6KZYTlF5c3S7OshcXVdmg8jyWXoZwHqU6bPeCTZ9W2cA2BVTf uQoyqiITDJB/DbrQJxf64w==; Original-Received: from [87.69.77.57] (port=2319 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 1mrF9k-0004jD-M5; Sun, 28 Nov 2021 03:03:29 -0500 In-Reply-To: <87ilwd7zaq.fsf@yahoo.com> (message from Po Lu on Sun, 28 Nov 2021 11:07:57 +0800) 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:280381 Archived-At: > 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? 2. Go over the display-related code and modify all the places which assume point is or must be visible. Source files involved are xdisp.c, dispnew.c, window.c, fringe.c, probably also indent.c. IMO, it's a large job if done cleanly. Patches welcome.