From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: Key bindings for info in other window or frame Date: Wed, 24 Jul 2013 21:09:08 -0400 Message-ID: References: <87k3kfmyvz.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374714570 10900 80.91.229.3 (25 Jul 2013 01:09:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jul 2013 01:09:30 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, emacs-devel@gnu.org To: Matthias Meulien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 25 03:09:31 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V2A3Z-00050X-KL for ged-emacs-devel@m.gmane.org; Thu, 25 Jul 2013 03:09:25 +0200 Original-Received: from localhost ([::1]:53702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2A3Y-0001SW-JE for ged-emacs-devel@m.gmane.org; Wed, 24 Jul 2013 21:09:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2A3U-0001SG-OE for emacs-devel@gnu.org; Wed, 24 Jul 2013 21:09:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2A3S-0003zP-U8 for emacs-devel@gnu.org; Wed, 24 Jul 2013 21:09:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:8063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2A3K-0003ya-7Z; Wed, 24 Jul 2013 21:09:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxLd+/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMTgUok X-IPAS-Result: Av4EABK/CFFFxLd+/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMTgUok X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="19754183" Original-Received: from 69-196-183-126.dsl.teksavvy.com (HELO pastel.home) ([69.196.183.126]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Jul 2013 21:09:03 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DD8D262E5D; Wed, 24 Jul 2013 21:09:08 -0400 (EDT) In-Reply-To: <87k3kfmyvz.fsf@gmail.com> (Matthias Meulien's message of "Wed, 24 Jul 2013 23:28:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162120 gmane.emacs.bugs:76637 Archived-At: > 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