From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: Using only one emacs session
Date: Sun, 17 May 2009 01:05:01 +0200 [thread overview]
Message-ID: <87tz3k644i.fsf@galatea.local> (raw)
In-Reply-To: decaeb8d-2856-4f15-8368-ea2d8a9e86bd@l28g2000vba.googlegroups.com
Francis Moreau <francis.moro@gmail.com> writes:
> On May 16, 5:43 pm, p...@informatimago.com (Pascal J. Bourguignon)
> wrote:
>> Francis Moreau <francis.m...@gmail.com> writes:
>> > yes, that's one possibility I did evaluate. But the main concern is
>> > that I don't know how to get a list of all registers with a
>> > description for each.
>>
>> Then why don't you ask emacs how to get a list of all registers with a
>> description for each?
>>
>
> Well the result is quite bad:
>
> Register a contains a window configuration.
> Register b contains a window configuration.
> Register c contains a window configuration.
>
> which is not very useful IMHO.
The results are better for other kinds of register contents.
But if you're not happy with this result, why don't you patch it?
The problem here is that window-configuration are opaque objects.
We have about only three functions:
(current-window-configuration) to get the current window configuration
(set-window-configuration wc) to set the window configuration and
(compare-window-configuration wc1 wc2) to compare them.
and these functions are implemented in C.
You have two solutions:
If you want to have accessors to get details about eg. the windows in
a given window configuration, you would have to patch the C code of
emacs. Untasty, but it would probably be the best solution.
An alternative would be to put an advice on
window-configuration-to-register. This advice would collect whatever
information about the current window configuration you may like to
report in the register list, (eg. a list of the displayed buffer
names), and associate it to the window-configuration so it can be
displayed by list-register.
> Other things (perharps more important) that make window package
> superior is that it allows me to use some window navigation 'a la' gnu
> screen (go back and forth between the 2 most recent visited windows,
> go to the next/previous window, select a window among a list of well
> described window etc...).
I don't know what "window package" is, so I cannot comment, but it
seems to me that these features are already present in emacs, or
easily added.
--
__Pascal Bourguignon__
next prev parent reply other threads:[~2009-05-16 23:05 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-15 11:04 Using only one emacs session Francis Moreau
2009-05-15 11:47 ` Peter Dyballa
2009-05-15 12:48 ` Pascal J. Bourguignon
2009-05-15 13:34 ` Francis Moreau
[not found] ` <mailman.7199.1242388057.31690.help-gnu-emacs@gnu.org>
2009-05-15 12:50 ` Pascal J. Bourguignon
2009-05-15 12:53 ` Francis Moreau
2009-05-15 13:36 ` Pascal J. Bourguignon
2009-05-15 13:45 ` Francis Moreau
2009-05-15 14:55 ` Peter Dyballa
2009-05-15 16:50 ` Suttles, Andrew C. (GRC-DSI0)
[not found] ` <mailman.7245.1242439486.31690.help-gnu-emacs@gnu.org>
2009-05-16 12:33 ` Francis Moreau
2009-05-18 13:14 ` Suttles, Andrew C. (GRC-DSI0)
[not found] ` <mailman.7205.1242399319.31690.help-gnu-emacs@gnu.org>
2009-05-15 16:02 ` Francis Moreau
2009-05-15 21:41 ` Pascal J. Bourguignon
2009-05-15 14:13 ` Michael Ekstrand
2009-05-15 14:38 ` Peter Dyballa
2009-05-16 11:14 ` Vagn Johansen
2009-05-15 13:38 ` Lowell Gilbert
2009-05-15 14:00 ` tomas
[not found] ` <mailman.7201.1242394726.31690.help-gnu-emacs@gnu.org>
2009-05-15 13:49 ` Francis Moreau
2009-05-15 17:07 ` William Xu
[not found] ` <mailman.7216.1242408514.31690.help-gnu-emacs@gnu.org>
2009-05-16 12:55 ` Francis Moreau
2009-05-16 15:43 ` Pascal J. Bourguignon
2009-05-16 21:53 ` Francis Moreau
2009-05-16 23:05 ` Pascal J. Bourguignon [this message]
2009-05-17 7:01 ` Francis Moreau
2009-05-17 15:32 ` Pascal J. Bourguignon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tz3k644i.fsf@galatea.local \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.