[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read syntax for window configs
From: |
Michael Sperber |
Subject: |
Re: read syntax for window configs |
Date: |
Fri, 19 Mar 2010 12:09:58 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b29 (darwin) |
martin rudalics <address@hidden> writes:
>> I've attached code that works for XEmacs.
>
> Thank you for posting this. It won't work out of the box for Emacs
> because Emacs lacks `make-window-configuration' and `make-saved-window'.
> Can you post their definitions here or tell us a page on the net where
> we can look at them?
http://hg.debian.org/hg/xemacs/xemacs/file/45753d9a0dc4/lisp/window-xemacs.el
> Do they check a configuration for integrity (e.g., whether the
> combined window sizes match those of their parents, that of the root
> window the size of the frame, ...) before mapping the frame?
Yes: Since all restoration happens from Lisp, there's no way to get
anything inconsistent.
> Can you restore on machine A a configuration saved on machine B when A
> and B have different toolkits?
I don't see why not. You're not always going to get an
identical-looking configurations because the original frame will be
gone, but as close an approximation as the code knows how to recreate.
> Also, am I right that the `next-child' field denotes the right sibling
> of the window?
If I recall correctly, it depends on whether windows are going right or
down. It's just whatever `window-next-child' returns on XEmacs.
> And, how do you translate back from pixel values (like `pixel-left'
> ... ) to normal line/column values? Do you?
No, we don't.
> Finally, do you have any ideas how this would integrate with a thing
> like ECB? For example, how would ECB find its editor window in a
> restored configuration unless we make such a property part of the save
> configuration?
I don't know anything about ECB, so I don't really know. However, I
would think that it needs to remember the name of the buffer to find the
window, or remember the window's place in the layout. (That's a general
issue with window configurations, but it becomes very clear here -
there's no way to preserve window identity across sessions.)
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
- Re: AW: AW: Fwd: CEDET sync, (continued)
- Re: AW: AW: Fwd: CEDET sync, Stephen J. Turnbull, 2010/03/02
- Re: AW: AW: Fwd: CEDET sync, Michael Sperber, 2010/03/05
- read syntax for window configs (was: CEDET sync), Drew Adams, 2010/03/05
- Re: read syntax for window configs (was: CEDET sync), Lennart Borgman, 2010/03/05
- Re: read syntax for window configs, Juri Linkov, 2010/03/06
- Re: read syntax for window configs, Juri Linkov, 2010/03/06
- RE: read syntax for window configs, Drew Adams, 2010/03/06
- Re: read syntax for window configs, Michael Sperber, 2010/03/18
- RE: read syntax for window configs, Drew Adams, 2010/03/18
- Re: read syntax for window configs, martin rudalics, 2010/03/19
- Re: read syntax for window configs,
Michael Sperber <=
- Re: read syntax for window configs, martin rudalics, 2010/03/19
- Re: read syntax for window configs, Michael Sperber, 2010/03/19
- Re: AW: Fwd: CEDET sync, Richard Riley, 2010/03/02
- Re: AW: Fwd: CEDET sync, David Kastrup, 2010/03/02
- Re: AW: Fwd: CEDET sync, Stephen J. Turnbull, 2010/03/02
- Re: AW: Fwd: CEDET sync, David Kastrup, 2010/03/02
- Re: AW: Fwd: CEDET sync, Stephen J. Turnbull, 2010/03/02
- Re: AW: Fwd: CEDET sync, David Kastrup, 2010/03/02
- Re: AW: Fwd: CEDET sync, Stephen J. Turnbull, 2010/03/02
- OT: threats to Free Software (was: AW: Fwd: CEDET sync), Stefan Monnier, 2010/03/02