all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthias Meulien <orontee@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Key bindings for info in other window or frame
Date: Fri, 26 Jul 2013 23:46:41 +0200	[thread overview]
Message-ID: <87siz1kn9a.fsf@gmail.com> (raw)
In-Reply-To: <jwvtxjjpi2f.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 24 Jul 2013 21:09:08 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:
 
> (...) But what I'm looking for is a C-x 4 command and a C-x 5 
> command which work like prefix keys changing the subsequent 
> command to use a new window/frame (presumably using 
> display-buffer-overriding-action).

Here is my 2c. It works as expected with the key bindings `C-x 5 
C-h i', `C-x 5 C-x C-b' or `C-x 5 M-x compose-mail' but not with 
`C-x 5 C-x d' or `C-x 5 M-x gnus'... So I am not sure, I am doing 
it the right way...  Please feel free to comment.

(defun other-frame-visitor (_arg) 
  (interactive "p") (let* ((key-seq (read-key-sequence "Other 
  frame: ")) 
	 (display-buffer-alist (cons '(".*" 
	  (display-buffer-pop-up-frame)) display-buffer-alist)) 
	  (cmd (lookup-key (current-global-map) key-seq))) 
    (call-interactively cmd))) 
 
(global-set-key "\C-x5" 'other-frame-visitor) 

-- 
Matthias



  parent reply	other threads:[~2013-07-26 21:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24 21:28 Key bindings for info in other window or frame Matthias Meulien
2013-07-25  1:09 ` Stefan Monnier
2013-07-25  8:15   ` Matthias Meulien
2013-07-26 21:46   ` Matthias Meulien [this message]
2013-07-27 14:05     ` Stefan Monnier
2013-07-27 21:02       ` Matthias Meulien
2013-07-27 14:06     ` Stefan Monnier
2013-07-27 21:06       ` Matthias Meulien

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=87siz1kn9a.fsf@gmail.com \
    --to=orontee@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.