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: Tue, 07 Dec 2021 15:42:35 +0200 Message-ID: <83ilw0zg38.fsf@gnu.org> References: <87ilwd7zaq.fsf.ref@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> <83sfv85y36.fsf@gnu.org> <87v904tsvv.fsf@yahoo.com> <83h7bo5m1x.fsf@gnu.org> <87ilw3ubfp.fsf@yahoo.com> <83h7bn4e55.fsf@gnu.org> <877dcipjmk.fsf@yahoo.com> <83mtld254e.fsf@gnu.org> <87lf0xjgxu.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36584"; 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 Tue Dec 07 14:45:50 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 1muamz-0009M8-HE for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 14:45:49 +0100 Original-Received: from localhost ([::1]:48740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muamy-00075i-A5 for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 08:45:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muajr-0004Ga-TN for emacs-devel@gnu.org; Tue, 07 Dec 2021 08:42:36 -0500 Original-Received: from [2001:470:142:3::e] (port=40504 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 1muajr-0004Wo-Ji; Tue, 07 Dec 2021 08:42:35 -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=mp/MG+BxTj9rJ/Ha2GmHRzsMnKVU3S5zdGFEb8iwjnw=; b=WNNo86VI7NEw 1pTouPik6LWS1x8h04TSbESrUorDhL3OYHEVIcopHbhNqxBBMIhzJWYy778mtL6LHVpCxoqlWdwLc XwHaUGDXf749aB2jTqlAoyoV60As3CyW2fK/w6HsZ/kIYlnBbCeThpHsiUhNZIw0yaBHvOk7tWIcx Sm/AN0jm88TRtkjyYHH0xG0kR9Rlwx43Tvk9x6wMeJh50UhGZbsMLDTiwHI92Nnpt0JvjLwqGgxvf YK3fiPIzmCEYOdfS9XK1pCBMCAN8jxfrg+pzlXwnrfU/gJmAkb3zarfAZ6Flux+h8TLcmeh0BvOyE NQmuYmUXXi6UppGVuOKwKQ==; Original-Received: from [87.69.77.57] (port=2030 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 1muajq-0007zc-BP; Tue, 07 Dec 2021 08:42:35 -0500 In-Reply-To: <87lf0xjgxu.fsf@yahoo.com> (message from Po Lu on Tue, 07 Dec 2021 10:18:37 +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:281243 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Tue, 07 Dec 2021 10:18:37 +0800 > > Eli Zaretskii writes: > > > Again, what do you mean by "start is forced"? Emacs sometimes forces > > the window-start upon itself, you can clearly see that in the code. > > Whenever w->force_start is true. This is sometimes set for Emacs itself, regardless of the user commands. So all such uses should be audited. > > And if point is outside of the window, recentering makes no sense > > anyway, because there's nothing to recenter about, there's no point of > > reference for it. > > The window start is moved to a suitable location which will cause point > to be displayed in the center of the screen. > > If that isn't possible, the closest location to that is set as window > start. Yes. I'm saying that if point is allowed to be outside of the window during some redisplay cycle, we'd need a different criteria for when and how to change w->start.