[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: Sean O'Rourke
Subject: Re: how about a find-library-other-window command?
Date: Tue, 19 Jun 2007 12:39:01 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin)

David House <address@hidden> writes:

> Drew Adams writes:
>  > How about a `find-library-other-window' command?
> 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 ()
          (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.


reply via email to

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