unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
To: David House <dmhouse@gmail.com>
Cc: Juri Linkov <juri@jurta.org>,
	schwab@suse.de, emacs-devel@gnu.org, rms@gnu.org,
	monnier@iro.umontreal.ca
Subject: Re: how about a find-library-other-window command?
Date: Thu, 21 Jun 2007 12:49:37 +0200	[thread overview]
Message-ID: <874pl1vaym.fsf@kfs-lx.testafd.dk> (raw)
In-Reply-To: <18042.19357.517899.64196@gargle.gargle.HOWL> (David House's message of "Thu\, 21 Jun 2007 10\:57\:49 +0100")

David House <dmhouse@gmail.com> 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, dmhouse@gmail.com

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

Most of the relevant find-file-.... functions will eventually call switch-to-buffer,
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
dtrt.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2007-06-21 10:49 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 18:23 how about a find-library-other-window command? Drew Adams
2007-06-19 19:08 ` David House
2007-06-19 19:39   ` Sean O'Rourke
2007-06-19 19:52     ` Drew Adams
2007-06-19 19:51   ` Drew Adams
2007-06-19 21:40   ` David Kastrup
2007-06-20  1:03     ` Stefan Monnier
2007-06-20 13:28   ` Richard Stallman
2007-06-19 19:15 ` Stefan Monnier
2007-06-19 19:36   ` Drew Adams
2007-06-19 19:53   ` Andreas Schwab
2007-06-19 20:41     ` Stefan Monnier
2007-06-19 20:55       ` Drew Adams
2007-06-19 21:54       ` Juri Linkov
2007-06-20 13:28         ` Richard Stallman
2007-06-20 14:09           ` Juri Linkov
2007-06-20 14:57             ` Andreas Schwab
2007-06-20 15:44               ` Juri Linkov
2007-06-21  1:07                 ` Richard Stallman
2007-06-21  7:43                   ` Juri Linkov
2007-06-21  9:55                     ` David House
2007-06-21  9:57                   ` David House
2007-06-21 10:49                     ` Kim F. Storm [this message]
2007-06-21 11:38                       ` Andreas Schwab
2007-06-22  1:51                       ` Richard Stallman
2007-06-21 10:49                     ` Andreas Schwab
2007-06-20 17:21             ` Ehud Karni
2007-06-20 17:54               ` Juri Linkov
2007-06-21  1:07             ` Richard Stallman
2007-06-19 23:24   ` Davis Herring
2007-06-19 23:30     ` Drew Adams
2007-06-20 13:28   ` Richard Stallman
2007-06-20 13:28 ` Richard Stallman
2007-06-20 14:17   ` Juri Linkov
2007-06-20 16:49   ` Drew Adams
2007-06-21  1:07     ` Richard Stallman
2007-06-22 19:29     ` Juri Linkov
2007-06-22 20:40       ` Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874pl1vaym.fsf@kfs-lx.testafd.dk \
    --to=storm@cua.dk \
    --cc=dmhouse@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    --cc=schwab@suse.de \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).