From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Infrastructural complexity. Date: Wed, 22 Jul 2009 12:12:49 +0200 Message-ID: <4A66E621.1080304@gmx.at> References: <20090712180623.GA1009@muc.de> <87k52dycha.fsf@stupidchicken.com> <4A5C2C96.4080802@swipnet.se> <43507.130.55.118.19.1247580320.squirrel@webmail.lanl.gov> <20090714151327.GA1718@muc.de> <53864.130.55.118.19.1247586358.squirrel@webmail.lanl.gov> <87r5whgzvg.fsf@mail.jurta.org> <0C244EB2B99349238E281268B0339C72@us.oracle.com> <20090716200959.GA4298@muc.de> <87vdlstkg4.fsf@mail.jurta.org> <87skgwb9na.fsf@stupidchicken.com> <87ab34ti2o.fsf@mail.jurta.org> <4A61D2A5.8080504@gmx.at> <87vdlpfun0.fsf@mail.jurta.org> <4A62F79A.90001@gmx.at> <873a8s5wwm.fsf@mail.jurta.org> <4A6439FE.8000204@gmx.at> <8763dlmr82.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248257777 16531 80.91.229.12 (22 Jul 2009 10:16:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jul 2009 10:16:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 22 12:16:10 2009 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.50) id 1MTYrj-0008Ds-5G for ged-emacs-devel@m.gmane.org; Wed, 22 Jul 2009 12:16:03 +0200 Original-Received: from localhost ([127.0.0.1]:59403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTYri-0007Oo-8G for ged-emacs-devel@m.gmane.org; Wed, 22 Jul 2009 06:16:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTYoj-0005WO-Ny for emacs-devel@gnu.org; Wed, 22 Jul 2009 06:12:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTYoe-0005V1-Cj for emacs-devel@gnu.org; Wed, 22 Jul 2009 06:12:56 -0400 Original-Received: from [199.232.76.173] (port=37691 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTYoe-0005Uw-3t for emacs-devel@gnu.org; Wed, 22 Jul 2009 06:12:52 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:52039) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MTYod-0002Z0-Ld for emacs-devel@gnu.org; Wed, 22 Jul 2009 06:12:52 -0400 Original-Received: (qmail invoked by alias); 22 Jul 2009 10:12:49 -0000 Original-Received: from 62-47-45-73.adsl.highway.telekom.at (EHLO [62.47.45.73]) [62.47.45.73] by mail.gmx.net (mp051) with SMTP; 22 Jul 2009 12:12:49 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/iiEVnNBnisL9AvC/CnfZKuroXYsy87qoHQrrd8h DVZBpQ+KrF8nDc User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <8763dlmr82.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:112999 Archived-At: >> Did anyone ever specify what the "useful sense" of saving a frame >> configuration is? > > I guess "useful" means an ability to restore a frame configuration > to the state that was before saving. Sure. But what goes into a frame configuration? Overlays? > I misread this task as "a feature to switch between different named > frame configurations" that makes sense for the current discussion. IIUC desktop only affects what Emacs does when starting a session. Or am I wrong? > ECB layouts are too specific to the code browser and can't be used > stand-alone that would be a useful feature. But there are many good > ideas in ECB. It uses procedural definitions for layouts like: > > (ecb-layout-define "left1" left > (ecb-set-directories-buffer) > (ecb-split-ver 0.3) > (ecb-set-sources-buffer) > (ecb-split-ver 0.5) > (ecb-set-methods-buffer) > (select-window (previous-window)) > (ecb-split-hor 0.5) > (ecb-set-history-buffer) > (select-window (next-window (next-window)))) > > Such procedural definitions insure that created and restored > window trees will be the same. IIRC ECB records the entire history of window changes for saving such procedural definitions. > Maybe desktop.el should try > saving window trees with similar procedural structures where > content of each restored window will be filled with either > a file or the result of `desktop-buffer-mode-handlers'. > I mean replacing `ecb-set-directories-buffer', `ecb-set-sources-buffer', > `ecb-set-methods-buffer' in the example above with a single call > to `desktop-create-buffer'. I'm afraid that we have to use a "procedural" instead of an internal object like `set-window-configuration' does. Otherwise, we risk crashing Emacs when a user stores a "non-procedural" configuration on file and deliberately changes it. However, I profoundly dislike procedural specifications for saving states :-( martin