From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Window configurations Date: Mon, 07 Jun 2010 21:31:54 +0300 Organization: JURTA Message-ID: <87d3w3chhq.fsf@mail.jurta.org> References: <4BB4CF6B.2000007@alice.it> <87vdav4vx5.fsf@mail.jurta.org> <4BE900E7.3090402@gmx.at> <87r5liqv8f.fsf@mail.jurta.org> <4BEA74DC.2060103@gmx.at> <87y6fns8qo.fsf@mail.jurta.org> <4BECF4D6.9030707@gmx.at> <87632na2af.fsf@mail.jurta.org> <4C03F1B5.8040708@gmx.at> <4C04D1BF.9070902@gmx.at> <87hblmv9s3.fsf@mail.jurta.org> <4C0655D1.60205@gmx.at> <87eigps0gn.fsf@mail.jurta.org> <4C076E7A.8060803@gmx.at> <8739x4klj1.fsf@mail.jurta.org> <4C08B549.1030107@gmx.at> <877hme20t5.fsf@mail.jurta.org> <4C0A47E0.8010504@gmx.at> <874ohhp9w3.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275936747 6609 80.91.229.12 (7 Jun 2010 18:52:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2010 18:52:27 +0000 (UTC) Cc: martin rudalics , Emacs To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 07 20:52:26 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhQu-0003rK-ER for ged-emacs-devel@m.gmane.org; Mon, 07 Jun 2010 20:52:24 +0200 Original-Received: from localhost ([127.0.0.1]:34732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLhQt-0005PL-Oj for ged-emacs-devel@m.gmane.org; Mon, 07 Jun 2010 14:52:23 -0400 Original-Received: from [140.186.70.92] (port=44919 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLhQe-0005ML-Ui for emacs-devel@gnu.org; Mon, 07 Jun 2010 14:52:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLhQd-0003HQ-NJ for emacs-devel@gnu.org; Mon, 07 Jun 2010 14:52:08 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:44883 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhQd-0003Gz-Gw for emacs-devel@gnu.org; Mon, 07 Jun 2010 14:52:07 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.35.211.cable.starman.ee [82.131.35.211]) by mx1.starman.ee (Postfix) with ESMTP id 728373F418D; Mon, 7 Jun 2010 21:52:01 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Sun, 06 Jun 2010 09:21:27 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125603 Archived-At: >> But how would you implement tab-local buffer-list without modifying >> frame-local buffer-list? > > You could imagine getting rid of this special handling of frames and > buffers's buffer-list and instead provide a record-buffer-function and > a buffer-list-function, so Elisp packages can implement them as > they wish. I'm not sure it's worth the trouble. Maybe record-buffer-functions and buffer-list-functions (plural) where Elisp packages could add own function to a list of functions. Then core primitives will construct a composite list by appending values returned by these functions. An example of buffer-list-functions: '(window-buffer-list-function tab-buffer-list-function frame-buffer-list-function). created with code in window.el: (add-to-list 'buffer-list-functions 'window-buffer-list-function) tab.el (add-to-list 'buffer-list-functions 'tab-buffer-list-function) frame.el (add-to-list 'buffer-list-functions 'frame-buffer-list-function) -- Juri Linkov http://www.jurta.org/emacs/