all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: RE: how about a find-library-other-window command?
Date: Tue, 19 Jun 2007 12:52:04 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMMELODCAA.drew.adams@oracle.com> (raw)
In-Reply-To: <m27ipzivje.fsf@0-16-cb-b9-d7-be.dynamic.ucsd.edu>

> > I've wondered in the past whether it would be feasible to have
> > C-x 4 be bound to a command which reads a key sequence then
> > executes it in another window, so that we needn't define new
> > commands for every command we want to execute in the other
> > window.
>
> This, or something similar, seems useful.  I currently use a
> slightly different hack that makes "C-z FOO" do whatever "C-x
> FOO" does, but in another window.  I do it by copying `ctl-x-map'
> and wrapping the entries with this:
>
>     (defun other-windowize (fn)
>       `(lambda ()
>          (interactive)
>          (switch-to-buffer-other-window
>           (save-window-excursion (call-interactively ',fn)
>                                  (current-buffer)))))
>
> No doubt there's a better way, but this seems to work well enough
> to replace many existing FOO-other-window commands, and to
> other-windowize some new things.

I like this idea a little better than David's suggestion, but I'm not sure
about the implementation. What happens if `fn' doesn't change the current
buffer? Anyway, something like this might be worth exploring. The particular
prefix key (`C-z') should be open to user configuration.

  reply	other threads:[~2007-06-19 19:52 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 [this message]
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
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

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

  git send-email \
    --in-reply-to=EIENLHALHGIMHGDOLMIMMELODCAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@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.