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: Sat, 04 Dec 2021 15:41:20 +0200 Message-ID: References: <87ilwd7zaq.fsf.ref@yahoo.com> <87ilwd7zaq.fsf@yahoo.com> <83bl24yaed.fsf@gnu.org> <87sfvg7l51.fsf@yahoo.com> <83zgpowu23.fsf@gnu.org> <87zgpo5tws.fsf@yahoo.com> <83pmqkwi6r.fsf@gnu.org> <87v90c5su6.fsf@yahoo.com> <83o864wg2a.fsf@gnu.org> <87ilwb68ck.fsf@yahoo.com> <83zgpnunfo.fsf@gnu.org> <87fsrf3xmd.fsf@yahoo.com> <83y257ulfp.fsf@gnu.org> <8735ne4e0e.fsf@yahoo.com> <87czmcvcs1.fsf@yahoo.com> <87k0gkjzj3.fsf@dick> <87r1astsle.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14585"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android To: emacs-devel@gnu.org, Po Lu , dick Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 04 14:42:27 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 1mtVJ5-0003bz-Fq for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 14:42:27 +0100 Original-Received: from localhost ([::1]:35634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtVJ3-0004gC-Kq for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 08:42:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtVI7-0003sb-6Z for emacs-devel@gnu.org; Sat, 04 Dec 2021 08:41:27 -0500 Original-Received: from [2001:470:142:3::e] (port=35230 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 1mtVI6-00072m-Tm; Sat, 04 Dec 2021 08:41:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Subject:To:From: Date; bh=dhj286DVO1J5GYkVsA7wDTEhcOMfRzj9ZxHWysS19O8=; b=mGz+z39f1gTcqGF4nZIG 5okgSsDTTLH71NpqLJv6QTKaSTL4G9uq0ln7lFTSz7oUawYhikchpGDhFBSzmkCLfbqw8KEh/XdQe z4BkS427eQE6cwDxXlhLjL1wy/giEcvKMFCrSXCA+KkDf2MFcoFLwjRKLzEiNjG3fPQj7NjaKAq9H HWNRqqHivhgplxbw+xji7Ez6ABCaSDIhWz++sWAMBE3ejuCBL09atusqoXIDjSUPEm3kU8WrJTdUs 1gxwvqGXWZssCQHxq/aGZ2whfI8kLFBSyN4eCjGzj0nLR14ldryeNtyy+N0UrXy3Cbf7s/BW2tS8g QNuL0/X0p+9Igw==; Original-Received: from [176.231.237.212] (port=52252 helo=[127.0.0.1]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtVI6-0004Gf-7a; Sat, 04 Dec 2021 08:41:26 -0500 In-Reply-To: <87r1astsle.fsf@yahoo.com> Autocrypt: addr=eliz@gnu.org; keydata= mQENBF+pf4UBCAC6vjkWLSAsQpe8YIGKLQzNOJx/IjGtCdFF8uzmO5jmME+SD8ROuJN+t5KXVw58 uzu75EFD0vHTY9e+udJ2gkpuy0NnzkFcbumdLLo2ERKCoSctZZRhzKXI5z5cHxCqW0B2ygHRrRLt oNlGID7bAgcgSViT1ptGqTXO7zGVu4Airok7dNzcPtHgns8GlR5YAFX0TvE6oGd0l2VPghNeVJKJ OjrbfhoDxl3ucFpqbqMH8z9HTLDOFpz8UaYYUdJMi3xX6vwTZxI2sM2RRVLUpZyllAkSMI4lln1O OgazM/62DJUs/rKIHKBnF6h3/qsJUjUYXaAHbrXY26mWllAd536lABEBAAG0I0VsaSBaYXJldHNr aWkgKGVsaXopIDxlbGl6QGdudS5vcmc+iQE4BBMBAgAiBQJfqX+FAhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgAAKCRCRwSYvAeuNOYUQB/4/iIKKOG45ijNaRoTvmJJZMvj1S07WQxEm7c5SHEeE QbLOAxB9vESOV7sLueuN3oqEndtzyYt4x1WTSBmHFF7h5fcCMjBs41siOIp5Sj/xD0Bvaa0IKGCR SZ7PAo8Mq3wgajXpTpn9vxE2PmtzA8KdEE0K1+f9pVAfOpUIcCl44rIxLUW352XG0y7iz6c/O6LB 1deOKMiKFctKO7pBti1dJEm1ImewLH3H8uTbwspLOs3EB8xhsESxmTidnze68HX2jt+2EeMgCdki NU+LWbexQZPfIS7+ZmE06ll0v6+Jy7ZdTkCCRypKWTnW7pIFsq/p4kybV8O/kHSV6B4vvQBfuQEN BF 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:280918 Archived-At: On December 4, 2021 3:19:57 PM GMT+02:00, Po Lu wrot= e: > dick writes: >=20 > > PL> + if (!keep_point_visible > > PL> + && (!w->cursor_visible_p > > PL> + || w->cursor=2Evpos =3D=3D -1) > > PL> + && w->phys_cursor_on_p) >=20 > > The display code is already rife with a hundred state variables, all o= f > > which invite laborious combinations of if-clauses to accommodate >=20 > I am aware of that=2E But you could perhaps avoid a separate flag if you'd set w->cursor=2Evpos = to a negative value when the cursor is outside of the window=2E