GNU bug report logs - #14947
Key bindings for info in other window or frame

Previous Next

Package: emacs;

Reported by: Matthias Meulien <orontee <at> gmail.com>

Date: Wed, 24 Jul 2013 21:25:02 UTC

Severity: wishlist

Tags: patch, wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14947 in the body.
You can then email your comments to 14947 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14947; Package emacs. (Wed, 24 Jul 2013 21:25:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matthias Meulien <orontee <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org.

Your message specified a Severity: in the pseudo-header, but the severity value wishlist tags: patch was not recognised. The default severity normal is being used instead. The recognised values are: critical, grave, serious, important, normal, minor, wishlist.

(Wed, 24 Jul 2013 21:25:03 GMT) Full text and rfc822 format available.


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matthias Meulien <orontee <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: emacs-devel <at> gnu.org
Subject: Key bindings for info in other window or frame
Date: Wed, 24 Jul 2013 23:28:00 +0200
[Message part 1 (text/plain, inline)]
Severity: wishlist Tags: patch 

Everything is in the subject!

The attached patch defines `info-other-frame' and bind it to `C-x 
5 i'.  It also bind `info-other-window' to `C-x 4 i'.

I know that `info-other-window' is already bind to `C-h 4 i' but I 
found it more difficult to remember than the key binding which use 
the ubiquitous `C-x 4' keymap.

[info_other_frame_and_window.patch (text/x-diff, inline)]
From cf8d4210743c1c9b06db28e5b5bb5a51f8a190bf Mon Sep 17 00:00:00 2001
From: Matthias Meulien <orontee <at> gmail.com>
Date: Wed, 24 Jul 2013 23:23:44 +0200
Subject: [PATCH] lisp/info.el (info-other-window): Add key binding and other
 frame defun

---
 lisp/info.el | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lisp/info.el b/lisp/info.el
index 0e0a117..99098e8 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -745,6 +745,7 @@ in `Info-file-supports-index-cookies-list'."
 		  (not (member dir (split-string path ":" t)))
 		  (push dir Info-directory-list)))))))
 
+;;;###autoload (define-key ctl-x-4-map "i" 'info-other-window)
 ;;;###autoload
 (defun info-other-window (&optional file-or-node buffer)
   "Like `info' but show the Info buffer in another window."
@@ -756,6 +757,18 @@ in `Info-file-supports-index-cookies-list'."
   (info-setup file-or-node
 	      (switch-to-buffer-other-window (or buffer "*info*"))))
 
+;;;###autoload (define-key ctl-x-5-map "i" 'info-other-frame)
+;;;###autoload
+(defun info-other-frame (&optional file-or-node buffer)
+  "Like `info' but put the Info buffer in another frame."
+  (interactive (list
+		(if (and current-prefix-arg (not (numberp current-prefix-arg)))
+		    (read-file-name "Info file name: " nil nil t))
+		(if (numberp current-prefix-arg)
+		    (format "*info*<%s>" current-prefix-arg))))
+  (info-setup file-or-node
+	      (switch-to-buffer-other-frame (or buffer "*info*"))))
+
 ;;;###autoload (put 'info 'info-file (purecopy "emacs"))
 ;;;###autoload
 (defun info (&optional file-or-node buffer)
-- 
1.8.3.3

[Message part 3 (text/plain, inline)]
Thanks for reading,
-- 
Matthias

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14947; Package emacs. (Thu, 25 Jul 2013 01:10:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Matthias Meulien <orontee <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org, emacs-devel <at> gnu.org
Subject: Re: Key bindings for info in other window or frame
Date: Wed, 24 Jul 2013 21:09:08 -0400
> The attached patch defines `info-other-frame' and bind it to `C-x 
> 5 i'.  It also bind `info-other-window' to `C-x 4 i'.

Thanks.  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).

Then C-x 4 C-x C-f would do the same as the current C-x 4 f,
and C-x 4 M-x info would do the same as your C-x 4 i.

Also we could further tweak those commands to use
a set-temporary-overlay-map so as to provide shortcuts like the
preexisting C-x 4 f (which would map to C-x 4 C-x C-f), at which point
adding C-x 4 i and C-x 5 i would be easy and wouldn't require any
new command.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14947; Package emacs. (Thu, 25 Jul 2013 08:17:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matthias Meulien <orontee <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: bug-gnu-emacs <at> gnu.org, emacs-devel <at> gnu.org
Subject: Re: Key bindings for info in other window or frame
Date: Thu, 25 Jul 2013 10:15:46 +0200
> (...) 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).

I see. You're right and I'll make a try in that direction.
-- 
Matthias




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 24 Feb 2016 04:34:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 14947 <at> debbugs.gnu.org and Matthias Meulien <orontee <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 24 Feb 2016 04:34:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 23 Mar 2016 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 88 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.