From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: Control help- and Info-mode buffers from other buffers Date: Sun, 04 Jun 2023 15:53:05 +0200 Message-ID: References: <861qixbum2.fsf@mail.linkov.net> <86wn0opgpi.fsf@mail.linkov.net> <86ilc78zc2.fsf@mail.linkov.net> <834jnrek7w.fsf@gnu.org> <86v8g77iof.fsf@mail.linkov.net> <83o7lzcxm8.fsf@gnu.org> <837csncfz1.fsf@gnu.org> <83o7lybaph.fsf@gnu.org> <863539sv46.fsf@mail.linkov.net> <87edms4pwi.fsf@ledu-giraud.fr> <86cz2b1y0r.fsf@mail.linkov.net> <83y1kz626q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28257"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Juri Linkov , "manuel@ledu-giraud.fr" , "emacs-devel@gnu.org" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 04 16:21:21 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 1q5obg-0007AO-JG for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Jun 2023 16:21:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5obF-0006Uk-Ky; Sun, 04 Jun 2023 10:20:53 -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 1q5oAS-0001Vb-8y for emacs-devel@gnu.org; Sun, 04 Jun 2023 09:53:12 -0400 Original-Received: from mail-he1eur04olkn2108.outbound.protection.outlook.com ([40.92.73.108] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5oAQ-0003nP-Ix; Sun, 04 Jun 2023 09:53:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=efSwdhhl/pJh5o6ZED882mybUZxsNkuq2mcMZlmYM5B/elh0Q5MAozEUnVZQoI6+Fzd4GYw9wkmVSitLG6WlPJgn7Pjw59Qpmrfk//I6xPoJhioUutDIRyZN6VYKtbPaIf0HAzg+UbU0MAlb9rXiiUoObReFeZgTuyaraEJsj/ucCbMX2zsFyWSIzwrrwMeFV1sediTB5nO+yfLFp5EtfhjSQmE2/MYgu6K7nJNg8OVIrOBulDFjmSMC99v/imKHCViyEVHzuZtcuugH2JRNO1kGgzb9u5D0dywoPsEi+kH73sY+agrEbEURBsf1VGbAgRFowdP/ZlNFom4zICVITw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wmX9fLtuAXVLbu+UEc1YVtMp+dpbhA5XxKGAIDvRG2A=; b=PwAfMNBhJDTLLkB2VjNn3vS0s015nNf2H+ByJDzhQN/0Ixco4+GYoxsNxJjst8WYhNZ/O73PxUl1P6RXo4KULdErmISwsyTVjz96NlSLCogiJTKEDZ0d87eleTXNtyUF8VNcWz9C/ERksEMQilxiq8WH1xJRCV6isqFNeY5dlrqZy5yF6yAjBKcyukxWEhD3hrZQtzDgP1HOCQoGlDpoCuuEIK5D197LcRxip0Z2kuhdL5Stz9Ceom6k8PMupeEe+eakqvDPVqO+iVPknXtkX552ZKHM0HV6UZBuKSRcv2g/3FFp8/Vgq/gZoll+WM4bWLMv4HUCSa1TWM4Ac7UURg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wmX9fLtuAXVLbu+UEc1YVtMp+dpbhA5XxKGAIDvRG2A=; b=MvTYxmySzHYqapthLo7QNm5459z6JL/NvbwWdd7GSjPZ0/STAMHjxIZcT8exglxS3rTb/ErELmY+cOh8IpnZE+u5amc3+lvEncAYd6939bP/ug7IqW5Wa+1xh1zLiFzCJydcxpREAPsbVPCG/N9gA8nspcNiZg+oAYdteKPvERE18qDQP/2N2AcNjMSvUt4a8rd/USLWBywrdpK6fpBQJy1Cd4KRMIZLz78dwt88zQxvmOi+atmZoNtdE6EgbOpF/L9IOFxT3iaHGz8oWC5UDnHwGnV2eZkxfkaBcN4sJw88Pa5Qwr70qkXUpOb8d8v1isWThErNxyaXINND5Ef+Vw== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AS8PR09MB6092.eurprd09.prod.outlook.com (2603:10a6:20b:566::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.31; Sun, 4 Jun 2023 13:53:07 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6983:1def:fb14:21bf]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6983:1def:fb14:21bf%6]) with mapi id 15.20.6455.030; Sun, 4 Jun 2023 13:53:07 +0000 In-Reply-To: (Drew Adams's message of "Sun, 4 Jun 2023 13:40:41 +0000") X-TMN: [eb6JgBO6T730Sts2+S++Y1uvvi8Jg5GM] X-ClientProxiedBy: BE1P281CA0205.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:89::14) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87a5xf49mm.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR09MB4977:EE_|AS8PR09MB6092:EE_ X-MS-Office365-Filtering-Correlation-Id: 0a9715d1-6be4-466b-18ae-08db6503060a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K1t6tgHiqR5MwCWiOT/rXFbMbH8F4dVCk/jaQ/3Euw5QwoTAhUzTU6kkIwR8Jc0St4/4/pjIJmLGsjc6GfZuThyL486+iTsK4rgI6uVnO8xJxV+ibWV6IM3nE8WZ6zYnyvtlzWtmpH/mseW7kFGggJhLtMeXI03oFpzhhrrcFwYU6lD7m12Kw9F1nEMsgZiKxWuCdQO6nw/VPLfep0+50lZImqDOZHUCMLw0oyO3Oht3ZD8n2R+8/UQSPvSq5wiS+AoEZlhr/2eVovoOz2J27XiKdn8JdLhWb04wnMvpLKfzlMSA38hlHh0i9N8zWGJv/ee4dU4ckJvMnJ2eRwtXjwcT+rOojeA2/Qh1ygQcR2vb2wZzet4Bm59TV4oSJpm6l3q+xi17wDqJotuFKRA8qX6V2J2oiBzpwoXG7DttR8/actnn9QdPiujpKbwOr42z3mhWwIi/DhKotl0MuuxSt8/GLA/m4gLUxVBl2nSVZQX/JvfFqgo0/ZBiUPAiqYvtWVQ9XK1edlKnr5+3UlFiyaASab0piNqwcq8MXBfvgjmJ+kbgKJhXwOj20RgaiwoDUD2ykC3r8AI8S3fyS5hhOg+b3zRp8PcBzP91xxQ7zbZFSlfxRSkHiwUrd1BXfoFB X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?z75EbjUSfU7jWp40woXte2XcZNioCBA6dWXaESOB/V+G2zk8NQjtVrlR8F2G?= =?us-ascii?Q?n+2DMEEzwXd5kDYkMabOefE39QQT4ERAeXsm9WYaFmt+6+w/+wlzmwe9XSgR?= =?us-ascii?Q?r5PXxv/hFT/ElxDu5RjPdiL2C6nRR6FzeQg4r/E5cxgRlgUxaSOf8ZgunXrJ?= =?us-ascii?Q?HPHFqee0Q1jJ12DJzgWUhakwWvmzeGNc2WTZIkBZTBhsrIQJMyAQr1npp1Ij?= =?us-ascii?Q?uxEbnDEFQNQ4G/PyAwdpdQcLrIJ5099WxdhZWmLKpb+tIGv5hDqIiBf2qAES?= =?us-ascii?Q?iD93z4MSeBexUklgtuNVUsNCx6CkhJFV/+LACMjNLxN4xRMuIL39TZIPYIPD?= =?us-ascii?Q?9elLYTWOlXQNopC34QSFmkmRe2twxO4krre04OEMwoMVY7sBsesF8RAPUjVx?= =?us-ascii?Q?6mOBVN3a9RJ/2pVKiK++1UwKHnSz+9fAc54iYFWMitsyZDlgoguXnLjB4TyO?= =?us-ascii?Q?Ac/LwFahJ2vFs+PZ2+b5P/jBEWawV9DtXfFF2WOvkf89vqJd0PAaY2DDFeNO?= =?us-ascii?Q?W+lV1JNkPVFqjgXzLpQ/9n3avAvwbpF0XJfMWGX1GztjtPoIVjHQ8OjfFPZN?= =?us-ascii?Q?kNUuO2Wps+nr1j0ANEi0wenIexSmBrF75MbVJLrRDMUJ/eV73PonLExBZLjp?= =?us-ascii?Q?95 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 0a9715d1-6be4-466b-18ae-08db6503060a X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2023 13:53:06.8490 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR09MB6092 Received-SPF: pass client-ip=40.92.73.108; envelope-from=arthur.miller@live.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 04 Jun 2023 10:20:52 -0400 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:306614 Archived-At: Drew Adams writes: >> > we can bind Help-specific wrappers in the Help keymap, e.g.: >> > 'C-h 4 s' to run 'help-view-source' in the Help buffer. >> > 'C-h 4 i' to run 'help-goto-info' in the Help buffer. >> >> Please use the "C-x 4 h" prefix for "other-window help" commands, not >> just "C-x 4". Otherwise we will run out of key sequences too quickly. > > Dunno if this is what you meant, Eli, but I > initially thought that Juri was suggesting > `C-x 4 s' and `C-x 4 i', and for that I > would have said what you said. I strongly > oppose gratuitous binding of `C-x 4'. > > Then I noticed that Juri's suggesting the > Help-specific prefix `C-h 4'. I think Eli suggested specifically in some previous email to bind C-x 4 h to help-mode-map, so that all help-mode commands are available as 5 or 6 keys combinations, like C-x 4 h s for view-source. I don't think scroll command is implemented as help specific commands; you have end/beginning of the buffer, next/previous page, as well as next/previous link (button). Do you really need scroll command too? I mean we mostly just read help. When it comes to some potential general key for doing stuff in "other-window" via pre/post hook, only one is needed, since it will do stuff in any "other-window" not just help or info; however, some windows are usually *not* other-window, or very seldom, like those special buffers. With a "remote" control like wrapping their commands in with-seleceted-window and putting their mode-map on a prefix-key, which becomes a "buffer remote control", those special buffers can be excluded from "other-window" consideration totally, so they are never considered the "other-window" at all. If it is useful or not, I guess is a personal preference.