From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Control help- and Info-mode buffers from other buffers Date: Thu, 01 Jun 2023 10:05:07 +0300 Message-ID: <834jnrek7w.fsf@gnu.org> References: <87h6ruf09e.fsf@ledu-giraud.fr> <861qixbum2.fsf@mail.linkov.net> <86wn0opgpi.fsf@mail.linkov.net> <86ilc78zc2.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26468"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arthur.miller@live.com, manuel@ledu-giraud.fr, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 01 09:05:20 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q4cN6-0006g1-HA for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Jun 2023 09:05:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4cME-0002xc-Ug; Thu, 01 Jun 2023 03:04:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4cMD-0002xK-BI for emacs-devel@gnu.org; Thu, 01 Jun 2023 03:04:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4cMB-0001g6-Bx; Thu, 01 Jun 2023 03:04:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7vx/rBmMMRA+fyB0VCKrNBDKNWfTG261JSC5SociWog=; b=lSUnRSzRMZtL tcYpwQiCwCbkv8zNhKS+6/ii3RlGF8Im3CMoR2UVfCeDboW7NnGgIL+npvN8tSFLFIqZAYdsiRAcL 7lkWDagSsjjqpcG2VFt/eQFrtrxl0ECri6nkzS4rTCAI1QwHXrpr7JKiyzHWpThaSHjabpY0+d39U 8jjAmy7QUb6sO2qHeRII2IpjynnoN4jXWBcT/8FP3DUUxDKxEHgGPaMCgDZ20zbRB3J/UdvaRtoHE /whFT0l0qec+1WZFhO2oldFvyrr4Jk3T+9d2EbIs2VcZ1GYzdZyQO92/yYRpn3S7kKRrKFPF8C+hf 1jbHOZoy+zVyIcoq8Fdtug==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4cMA-0004bh-KK; Thu, 01 Jun 2023 03:04:23 -0400 In-Reply-To: <86ilc78zc2.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 01 Jun 2023 09:35:09 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306487 Archived-At: > From: Juri Linkov > Cc: Manuel Giraud , emacs-devel@gnu.org > Date: Thu, 01 Jun 2023 09:35:09 +0300 > > > Why can't we just invoke the command directly, via M-x, when anything > > bound to a key is an interactive command by definition? The reason is > > that commands are written with (or without) some assumptions. > > Because in this case you need to modify all commands to switch windows > explicitly. What about using the "C-x 4" prefix? We could define a new prefix map bound to "C-x 4 h", then have all the bindings in *Help* be in the map prefixed by "C-x 4 h". For example, "C-x 4 h I" will run a command which will produce the same effect as help-goto-lispref-info, using the current *Help* window as its starting point. We could support "C-x 5 h" prefixed key sequences in a similar manner, for people who have Info buffers or *Help* buffers in another frame. WDYT?