emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Infrastructural complexity.


From: Lennart Borgman
Subject: Re: Infrastructural complexity.
Date: Wed, 22 Jul 2009 04:24:09 +0200

On Wed, Jul 22, 2009 at 2:38 AM, Juri Linkov<address@hidden> wrote:

>> 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.

As you notice below
> 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)
...
>  (select-window (next-window (next-window))))
>
> Such procedural definitions insure that created and restored
> window trees will be the same.  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'.

Is there any other way? But perhaps you mean saving the commands that
lead to this structure and then the replay them?


> 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'.
>
> --
> Juri Linkov
> http://www.jurta.org/emacs/
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]