[Top][All Lists]

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

Re: how about a find-library-other-window command?

From: Kim F. Storm
Subject: Re: how about a find-library-other-window command?
Date: Thu, 21 Jun 2007 12:49:37 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

David House <address@hidden> writes:

> Richard Stallman writes:
>  > I do not want anything that would replace C-x 4 f and similar
>  > commands with four-character sequences. 
> I would be happy with a system whereby C-x 4 <key> was equivalent to C-x <key>
> in the other window, so that find-file-other-window becomes C-x 4 C-f (as it 
> is
> also currently) and C-x 4 f is set-fill-column-other-window. The latter 
> perhaps
> isn't that useful, but for consistency's sake, it should be that.
> In other words we make a copy of ctrl-x-map and put it on C-x 4, but with 
> every
> command having its effects in the other window.
> -- 
> -David House, address@hidden

Not that I care a lot about this, but...

Most of the relevant find-file-.... functions will eventually call 
switch-to-buffer-other-window, or switch-to-buffer-other-frame.

Now, if switch-to-buffer looked at the keys used to invoke the current
command, it could DTRT if command invoked with a C-x 4 or C-x 5 prefix
vs. a plain C-x prefix.

If we don't want to do it at the C level (in switch-to-buffer), we
could create a new switch-to-buffer-dwim that could be used in
find-file, and friends.

Then would could simply put find-file on C-x 4 f and C-x 5 f and have it

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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