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: Mon, 29 Nov 2021 21:22:18 +0800 Message-ID: <87fsrf3xmd.fsf@yahoo.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11990"; 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 Mon Nov 29 14:26:30 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 1mrgft-0002vs-Pu for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Nov 2021 14:26:29 +0100 Original-Received: from localhost ([::1]:56074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrgfs-0001ID-6E for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Nov 2021 08:26:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrgcA-0005uY-0o for emacs-devel@gnu.org; Mon, 29 Nov 2021 08:22:39 -0500 Original-Received: from sonic316-20.consmr.mail.ne1.yahoo.com ([66.163.187.146]:41931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrgc7-0006Oy-U6 for emacs-devel@gnu.org; Mon, 29 Nov 2021 08:22:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638192154; bh=92LsEnivboyym1k6bLiWWD/mq9C0Yis2JBKyNqZbMZQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=KtiIkbsWrI9AXnGujUHUaraQYvKgaRdU3S14+WPqm4DhVZOyAMMYYNN7YTPHaKa8eU6WuMzkx5/ka3sh/MiLlFHmb+bqiTCbOmbKCZIujTGqE8QOCpbCeHNYanxg3wdXeglyWVFX9r6+1jy6CEyhS/Z2GUuiwLwFXlyO0/nVO2hsvsL94ndEbw5PSUzWryS7PxQtTXqG+AET4gnwU0BkXB5e8OyZ+dv/HhXf0qODgSz2wCxIDS3qZ/itwQUgLghhWPkuzPdnVUNDzAfHvwRpGalR1elr30sX3HyfQ3/JaVD4lhxTsr5oDjdCq4jksFVZ0d7MNnRnX7P9HmWRMKOqCg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638192154; bh=d56mgBZbbq19uzFjTZu0tnDYUBQUpxYAcd7mJ3rUpGK=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=DUR/EynzFRr+devRQum/aExLQyh16UR5zBPVmTkkCPhfuh3Ibi5/0Uukt0qbifhStSaQzYNivM3Y6ACmhoZXOsQV+/MD/r79lYarg0M6j4jENDm163vp6mUNRTOIOssdApe9AMQGgRfgvd7OUhxcOkVnfhE0QcJs3JzKfSBA+O4r7w9wILg1PzNXLUMN1PguJyAHTamg2v2DghdQZAGUSza2L00CGIt3KgPXbtuaFkk/fvrEE/2Hi3haEttaEU0IJmOFfb5sl3whyvYFYnu++MlyDpsDX7OSc1z8cCRHm7pntvwOyBlKiDHgo9j10b4DynNf+8MLB0sjoFlDi2oj/A== X-YMail-OSG: Q33BFncVM1kXjMSuFwFgN1xy7Np8WMj7_HaLHAfr5azwmKeuHK59uOSGTLKz.w_ gX8UtafTFq.g_II9wtkrenhKg_f2Y37q7Fx65TMgPF0gIzoCZosoWCLj5RSXumH8orr441iUjvKR hIf2boWbCaWugBti3hsedC.qCGL8I.D7_vYuAWIfxmnnRHlQTo3O13WDdkcfobsAk1OvoVgrAKFB ahQ75ZB9PrEgJsAIGkgU4Dmw_yegxX90sEvjN5f9wfNGQ.rlq3Ab_aiDUnKcP8hfulJ7F6PZ.5yh Y9.slr6KeINtJkqEIUoGJ4VllZh_1ymFE3BEl9L83JvB7gVVAqfYIyOeeysB844B8Gi1zypRdkKj bq.KFUC7cvHRwyB1ocP4JQF.TNkKjgu8I3GR1tTcUmQjQXxEklnpa_JmQi.9DFSLDfL5bQdeySL4 DuFy.hh1HSMDWA4CYoiLVJ0surn9Oc03WrTMtZOmgg6O1FG1HB4pZk91ity1KjLHuw5ldSQe_I0i 0Xg81e33rQg9RUNxwNGxI7.t0tqQu9OyIzoc7nAs98Da6o7KS5kFZfNIUpUtR9LiWRvDKXTINMZc fJuQgWBju6T87C6Co9bVdpvZbWJ0N79PB4iKOy9_D6HFEodhEzqr4rLzcYhIXSwiVumrM4tjWZ3I sK.sfYoE1cPdhZAO3pxwohI3jqzxDKBrJhrk1sD4PWEkkPp63ZMamuWxQxfi6AgAk9lN6NYtZSSx o3iY7goYL1jg.Ys0542dO56JOOjbRXu41I70lhEOOCNB9hM2coFZWdo5Ue.v1CFqO1G1zneisBki y21ERY348I79q7nS1GRpAQ6Q_Z_ANbQ2pgQgrM8SPM X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Mon, 29 Nov 2021 13:22:34 +0000 Original-Received: by kubenode510.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d18ab5551f2850f8609b2d31ff3f1817; Mon, 29 Nov 2021 13:22:25 +0000 (UTC) In-Reply-To: <83zgpnunfo.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 29 Nov 2021 15:00:11 +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.146; envelope-from=luangruo@yahoo.com; helo=sonic316-20.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, LOTS_OF_MONEY=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:280468 Archived-At: Eli Zaretskii writes: > A $64M question ;-) Your opinion about my memory is too good. > > But in general, I think you are looking at a too-narrow aspect of this > behavior. First, even in xdisp.c there are several places where we > attempt to redisplay a window, and then reject the results because > point is not fully visible in the window. "Reject" here sometimes > mean another, fresh attempt of redisplaying the window with some > conditions or variables modified to yield a success. These places > should be audited in order to decide whether the rejection is > justified under this new feature. Thanks, I will look at it. One last question though: > Second, look at the scrolling code in window.c: under some conditions, > it decides up front that point will be invisible, and then either > moves point or modifies the scroll (i.e. the window-start). That, > too, will have to be revisited and carefully audited. Is any of that scrolling code used during redisplay (for instance, if the window start is changed?) The main use I have for this feature will be in the pixel scrolling code, which doesn't use any of the normal scrolling commands. Thanks.