[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Key bindings for info in other window or frame
From: |
Stefan Monnier |
Subject: |
Re: Key bindings for info in other window or frame |
Date: |
Sat, 27 Jul 2013 10:06:59 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> (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)))
Another problem is that it should not call read-key-sequence.
Instead it should set display-buffer-overriding-action, then return.
But after returning, it should arrange to reset
display-buffer-overriding-action after the next command (maybe with
a post-command-hook).
Stefan