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: Thu, 09 Dec 2021 08:16:05 +0800 Message-ID: <87y24ud456.fsf@yahoo.com> References: <87ilwd7zaq.fsf.ref@yahoo.com> <87ilwd7zaq.fsf@yahoo.com> <83bl24yaed.fsf@gnu.org> <87sfvg7l51.fsf@yahoo.com> <87r1az6bpy.fsf@yahoo.com> <87ee6nx42p.fsf@ankarstrom.se> <834k7jxo33.fsf@gnu.org> <87zgpbi5ma.fsf@ankarstrom.se> <83ilvzw4td.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="26893"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: Eli Zaretskii , John =?utf-8?Q?Ankarstr=C3=B6m?= , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 09 01:16:58 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 1mv77K-0006m3-Mv for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 01:16:58 +0100 Original-Received: from localhost ([::1]:43258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv77I-00084L-W1 for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 19:16:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv76e-0007Nn-7U for emacs-devel@gnu.org; Wed, 08 Dec 2021 19:16:16 -0500 Original-Received: from sonic316-21.consmr.mail.ne1.yahoo.com ([66.163.187.147]:33840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv76c-0004Xh-HU for emacs-devel@gnu.org; Wed, 08 Dec 2021 19:16:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639008972; bh=8Q5+WwM/PfvjRbwhV3sxQUii0++xPc1snrg6bynshOg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=TN8MVY5TLC2ArZy32uR4gOyqoj2o8wui3z4UFT579OVgZoa8Qs0GryZsnzVfLoePmZ1lSkBNu0r5rQt7BS0Q8bZkfXimXQ7+VsITuiFv2DJH6pNqugZbY188dtStLIagLZqfQiavWxi3o0QvJyttDsTWldVBwbWNVNDecoFBOujjVW1ww1tyG05C0NJyod71gL6BANmcH58x96orbiQ8HlYQuOPzeezgztXldXdtQdLBPvdRN2AOHAYsRlEntd3/7HATk7YSxiCuzXyQKHWu84ohOR1sXgmvJNW9CC1hKMkJMEaPrF6Jse3f/i6Fc9E/qCZyXBdKVN6j/wTdJCZi0A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639008972; bh=bKea6iBl5Xhxg6y7Vz8dvoMfhR5yeZlpjv13RO9QU3I=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=FLDx8b5ShXOl17XQn7SY37StjY5TpCV44w+/3luN1JjY2ijHHucj6zNZ9Zweog9dDNN4r1RqSA+uVtNjxLDq8H7WA9HrrwR9BhfmtZAq9zJdESynGYWTcZ5Js+zAmih/cYmzZ2ekEF1bJiVGpm0PB8yCuCdh5Z/4Gz+QznYZQFRqx5Q/zkg0/1Bw4+uq9RZUUKEQLDmLf8O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ic316.consmr.mail.ne1.yahoo.com with HTTP; Thu, 9 Dec 2021 00:16:12 +0000 Original-Received: by kubenode517.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d6b68678c8afe336571b44638d9eea8a; Thu, 09 Dec 2021 00:16:10 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Wed, 08 Dec 2021 11:57:28 -0500") X-Mailer: WebService/1.1.19415 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.147; envelope-from=luangruo@yahoo.com; helo=sonic316-21.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:281408 Archived-At: Stefan Monnier writes: > IIUC the way this new feature is expected to work is that it prevents > "scroll to bring point into view" under some conditions. > I'm not sure exactly what are those conditions, but I'd expect it's > something like: > - point was not moved since last time we redisplayed this buffer. > - window-start was set explicitly. Yes. > - the buffer was not modified since last time we redisplayed it. This might not be necessary. > So it should be easy to provide a "move point to view" with something > like: > (goto-char (window-start)) It would probably have to take into account vscroll, as the cursor appearing in a partially visible row would be confusing.