From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Allowing point to be outside the window? Date: Wed, 08 Dec 2021 11:57:28 -0500 Message-ID: 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="34450"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: John =?windows-1252?Q?Ankarstr=F6m?= , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 08 17:58:48 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 1mv0HI-0008l1-5e for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 17:58:48 +0100 Original-Received: from localhost ([::1]:36860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv0HH-00050m-5K for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 11:58:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv0GG-0004BF-2D for emacs-devel@gnu.org; Wed, 08 Dec 2021 11:57:45 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:14807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv0G7-0007ys-6z; Wed, 08 Dec 2021 11:57:42 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B33A64421FB; Wed, 8 Dec 2021 11:57:32 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 515164421F8; Wed, 8 Dec 2021 11:57:31 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1638982651; bh=h3PL+GLf/VqC63aCrVnx8uN2gXBBJE5De2rhsS8tv4g=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=jHSEvJ1e4Br2mlfG/UOTwfRDSkn5M571pNoKh8W9hDKURN4V/K/TdfgiTwnSx7k/2 jgjcaYxb7alr7WVkxVRMRAxeqqlwLVdvrZjQQ0sgKe1pg7IRHD6Gp1o/gtx21hSh3K tbhGtNXBeWh8zO5MBKOZzNO4jgS+HIetiH7uwzn8wnUd00Tm7RdRs7ZoFDSxEDkTd5 uR1Kohq5tUyh8xAbdl0VHat20GRo5eKIQKA4RcnpjRVqwR8kICkXpDUhUEK/8NLVp4 TOgVDItYhhrXRgsYUKyHL1RxQDscnjkW8+HRlmHnYo7AT8YBmmWrcBwk82F69bO+GX 1qgEoUBaIRGbg== Original-Received: from alfajor (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4467C1206B5; Wed, 8 Dec 2021 11:57:31 -0500 (EST) In-Reply-To: <83ilvzw4td.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Dec 2021 16:26:38 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:281368 Archived-At: 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. - the buffer was not modified since last time we redisplayed it. - window-start was set explicitly. So it should be easy to provide a "move point to view" with something like: (goto-char (window-start)) -- Stefan