From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Framework extending window functions for Follow Mode (etc.). Date: Sat, 7 Nov 2015 13:57:26 +0000 Message-ID: <20151107135726.GC1770@acm.fritz.box> References: <20151105192905.GA7986@acm.fritz.box> <563DFBF8.9030903@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1446904559 6124 80.91.229.3 (7 Nov 2015 13:55:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Nov 2015 13:55:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 07 14:55:44 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zv3y3-000279-Rw for ged-emacs-devel@m.gmane.org; Sat, 07 Nov 2015 14:55:43 +0100 Original-Received: from localhost ([::1]:43949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv3y3-0003cd-BI for ged-emacs-devel@m.gmane.org; Sat, 07 Nov 2015 08:55:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv3xx-0003cY-Ma for emacs-devel@gnu.org; Sat, 07 Nov 2015 08:55:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zv3xu-0002af-FB for emacs-devel@gnu.org; Sat, 07 Nov 2015 08:55:37 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:11551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zv3xu-0002aV-5P for emacs-devel@gnu.org; Sat, 07 Nov 2015 08:55:34 -0500 Original-Received: (qmail 18852 invoked by uid 3782); 7 Nov 2015 13:55:33 -0000 Original-Received: from acm.muc.de (p579E81AA.dip0.t-ipconnect.de [87.158.129.170]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 07 Nov 2015 14:55:32 +0100 Original-Received: (qmail 3286 invoked by uid 1000); 7 Nov 2015 13:57:26 -0000 Content-Disposition: inline In-Reply-To: <563DFBF8.9030903@gmx.at> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:193535 Archived-At: Hello, Martin. On Sat, Nov 07, 2015 at 02:26:16PM +0100, martin rudalics wrote: > > The six functions window-start, window-end, set-window-start, recenter, > > pos-visible-in-window-p, and move-to-window-line-function will acquire > > an extra optional parameter GROUP. The notion is that "this call is > > interested in groups of windows, not just single ones". > > Each of these functions will get an associated variable, e.g. > > "window-start-function". The function will call the value of that > > variable instead of doing its normal actions, when GROUP is non-nil. > > Typically, the `window-start-function' will recursively call > > window-start (on some window) to perform its operation. > Instead of an extra argument I would prefer to have these functions > check for the presence of a ‘window-start’, ‘window-end’, ... window > parameter just like ‘delete-window’ or ‘other-window’ do. I don't think that would be the Right Thing (if I've understood it properly, that is). With Follow Mode active, which window start window-start returns is primarily about the context of the window-start invocation; it's not about some windows always doing one thing, some always doing another. > martin -- Alan Mackenzie (Nuremberg, Germany).