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: Control help- and Info-mode buffers from other buffers Date: Sun, 04 Jun 2023 16:19:20 +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> <83ttvpao80.fsf@gnu.org> <83ilc48wx8.fsf@gnu.org> <8335388tlm.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="29190"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: juri@linkov.net, manuel@ledu-giraud.fr, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 04 16:21:29 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 1q5obn-0007Hs-GH for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Jun 2023 16:21:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5obF-0006UR-Bt; 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 1q5oZq-0005vf-3M for emacs-devel@gnu.org; Sun, 04 Jun 2023 10:19:26 -0400 Original-Received: from mail-db8eur05olkn2045.outbound.protection.outlook.com ([40.92.89.45] helo=EUR05-DB8-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 1q5oZo-0000pa-5s; Sun, 04 Jun 2023 10:19:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T/dPvbzSdC6KebuLxPp2Eh/HNDcind7rMAP41GPnMMjSARZbqxRueit7+sEKibXSTfwY8eAWKbxUPX+lKZOG2lJx4Io2YDpjkRLdmrqh5rkl2TboTlXtZ9QUtBLrh2+vkwKBL6dlfe3DDE2uwXBsfkGtcnUV+KQv83b13SLgM70+D6gCkXzxlhShCm+YysK4qI/gO0D55/uHv02x7ut74IdWqrcCM9FXc5HwsoSm+sDmhQZSzcoMQPmKEMaTgGyuNBwrfX6fPRiQ6kuwiYx1cD05HBhnqXdXxqrMVxS8hystHNXxrTMcUxdFPguioOz3gC17x9Lc0MAUOx8s0UKwGA== 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=2/K1/JUu98dFGkk5c73/0787E7IFH031LKGXKw81FQQ=; b=CJrH8xqaGXzB/jA/9llyaTisCAa3p54sVxfc+KxWN9a243qBRkXLW1kYHyVDMCG/ZQvOh4pJWz6d/08V4AHwK1Iilkinys9WrKjD/7S3de4vAJwcuAH7BwcejRGf1yqIYUZ2j9egqjLWw0xu6OgDWxlove6gy8xX2ZDxmRYjsZqBPlhiv0AHjn0dsxVdB3a4fIcyitJu7wGqMVc0WmK6PTH55zuoDiCPJhd+PgYTyA3Ht2VJYaM0q7a5Ljdmsmr3EZIUOiQZHyzpCUo0CZCemzTUEJ/VWuZvBicLDJJVthY01lccfOkW0Zz3DZGjPJl+/Lgrn4piDy/FqtuE5voaQw== 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=2/K1/JUu98dFGkk5c73/0787E7IFH031LKGXKw81FQQ=; b=jhH+X0p8P4EulwePb13YhyjA5Umqs6NSyCe7R61GvT9oN6039A6E7mn7R0/rj5G+6HCSQlHPc4mXuUUzVEkUYhTtX6PG9Xc1FYjQmIRrMGxw796VCZgLHRUogoN3VbPB889Zz0lWWps4iR0xx+WT8FJY/UqlCnudSvjuc6laph/FRiEXmaK2V3wpnrsr64tf4IPp9qiy0W20EA9I9LRfKD26tCmHUHC3tuKUnOl8Pc/LRgJdRvu9ApjpV4FP+o76GRRPB1VgdMv9NUvNxRoNkhWi6LhbX4ODAwV+6UXQ+sAOASYONqqm2TQwV+/0m/Qod9ui1gTSzN11L3+RI5x4VA== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by DB8PR09MB4203.eurprd09.prod.outlook.com (2603:10a6:10:12f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Sun, 4 Jun 2023 14:19:22 +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 14:19:21 +0000 In-Reply-To: <8335388tlm.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Jun 2023 11:14:59 -0400") X-TMN: [RwUw8yrSQCLuXX2jfsZyC3e+pdC2y+i7L/HicJJYUwY=] X-ClientProxiedBy: MM0P280CA0047.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:b::28) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87mt1f1f9z.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR09MB4977:EE_|DB8PR09MB4203:EE_ X-MS-Office365-Filtering-Correlation-Id: bd658227-ca03-4849-ddf6-08db6506b0e4 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A1qdOjJlYukiVPQs0ONqaxDxkH6WQUnpCgvFrW0n/Ocypmo+qkYbNMwp8k37k+ErtvhELBWVhosHUx8NEEt+GYMxs20Tfxu+IJwSG5C3iF36aH0TtufQRxs9m1aopJw0F6uWdpL68j4S5lj+MqExyk4oJ94ZIrSHTdTjYxSPFnNQXukil3I6nybUS58LZntQ6QEcuSIlak8ai72GJA/KeuHP20IfDfua0ReiQvHee9ZRWXiUzr10yXI1SHPAvh5zQdnFYjLoqM9SevOlAHnu3h5gSYVmoropfo5b1hHudfu/YWI+boDX9G4Usb7AXYjoOg6DOaoS0dpwFsiqyO6C+b6hZaHrCPFed4AYUHhndr9+Pz2ZZWXnLwuTLd4Ca/BmaXtoorSK/123/btQbqczd17OmD261QbirGj1SP6poYmflFFV7vBhWKS70aoiQzWqYheaWYeyGOo6QOriISzaI94AfyUwYXIhbongl5BK47MoI+M2Mb2Jz8s5XDDSY6ev/BwgYdjIHTqK/Cyi/msClbxqFa7wFQYG0dAX2weEG+FaicRHN6xVpwK0APuYZ61Kh9Y443GUdceg/1t0IXXzTAnvkg9S97U+S53osB14Gw7qu97lGb5104frs1jlg6ka X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?3Nfjdz/9Ivfun2QjZHDq9l2yS5og09egXlCygUFdtVhawkesgP9uLBLhZPVD?= =?us-ascii?Q?n9ejbasJEK+P1rUEG+nTXQti7jh+v65YlvALPMgQbhzQunlVspUdjCSjdziG?= =?us-ascii?Q?ZqEyRlM76Ep2XKpMpn+amTBOpbLq5syY9ULp894zu5UlrpM8tOGuRHUMDIHW?= =?us-ascii?Q?cOdjH4821g+aGXbfl3cGWQl6brFr/oMaTbZ+ktZ1+UOGV7eqFumucvjs+MHT?= =?us-ascii?Q?ngrs8keGS/YrhrrzWxo6TwJnuZChBa05+bowfhO+91IZVYgwfKTwdw4chKV4?= =?us-ascii?Q?Z8uXoBkB5tXOik0bURBJO+lMNYeXltMU6NXWiIXzQqV9RMW8YPm9TMXx0YuE?= =?us-ascii?Q?vwnPIzbdpGnbzGiVWtFEpuymCqY0Qet5+IobolzJzjAlg14R96xlNbnqdORs?= =?us-ascii?Q?dtq6rNK3WSZQQSmKMyM33GE8BaxgYjR/UtEY02YuooUTqlktR71sOhSDAQQR?= =?us-ascii?Q?B68wk1kQasdcvLtT0ciWEF1wY6LPPSrv4o/0RuW1zwH9aeOgI2RdjjcGFlXt?= =?us-ascii?Q?WL53EVYnyYOpfJvX++/2Tne7VnwbSdBmALrOXOj72PoT+AumRgeaE6O+QOy+?= =?us-ascii?Q?dZU6zk1l5i8XUsyGWSt7MJEBQEFMmmA2holNzRAn5cHHaVHkJbD+Q6nvCN67?= =?us-ascii?Q?nK X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: bd658227-ca03-4849-ddf6-08db6506b0e4 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2023 14:19:21.9083 (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: DB8PR09MB4203 Received-SPF: pass client-ip=40.92.89.45; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-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:306616 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Cc: juri@linkov.net, manuel@ledu-giraud.fr, emacs-devel@gnu.org >> Date: Sat, 03 Jun 2023 17:06:24 +0200 >> >> Eli Zaretskii writes: >> >> >> From: Arthur Miller >> >> Cc: juri@linkov.net, manuel@ledu-giraud.fr, emacs-devel@gnu.org >> >> Date: Sat, 03 Jun 2023 15:53:22 +0200 >> >> >> >> The interactive form has to be the very first form in a function body, which >> >> makes it impossible to just wrap the entire function into >> >> with-selected-window. >> > >> > I still don't understand why you need the entire function to be >> > wrapped in with-selected-window. >> >> Because part in the interactive form would like to do some work in the info buffer >> too. Since we have called function from some other buffer it simply wont >> work before switch to info buffer. > > Then use with-selected-window inside the interactive form. > >> > I don't understand: I thought we were talking about causing the other >> > window to do something without the user selecting that window. So why >> > does it matter where input goes? what input do you want to go to the >> > non-selected window or frame? >> >> Yes we are; but some functions prompts user for additional input, and if the >> info is in another frame but the one with the focus, than minibuffer does not >> get the focus, and the input instead goes into the frame where mouse >> cursor/point is. See more further down. > > I don't understand: prompts are in the minibuffer, so are you saying > that there's some situation in Emacs when a Lisp program prompts the > user, but the minibuffer with the prompts doesn't get input focus? > That'd be a terrible bug in Emacs in general, not related to the issue > we are discussing. Please report such a bug ASAP! Yes, there is definitely such a situation, in my personal copy of Emacs and Arch Linux at least. But I also said that I believe it is probably due to my X11 window manager :-) Anyway, I have found a way to do it without switching; as said, I just needed the data, so with-current-buffer solves it. Now I get the prompt in the selected frame, not in one with the info buffer. All good. >> Not *Help*; I am asking about multiple *info* windows. > > A prefix arg should be able to solve at least some such problems. Are you sure you need a prefix? I can just get list of info (and help buffers to make Drew happy) and prompt user via completing read to pick one. Since we are aiming at Emacs 30, and there is still no Emacs 29 released, I guess there is no rush, so I'll take a bit more time to experiment. I'll come back to the last when I done :).