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] : Control help- and Info-mode buffers from other buffers Date: Wed, 31 May 2023 08:06:38 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21432"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "emacs-devel@gnu.org" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 31 13:14:17 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 1q4JmS-0005L7-7E for ged-emacs-devel@m.gmane-mx.org; Wed, 31 May 2023 13:14:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4JlR-0005dY-PN; Wed, 31 May 2023 07:13:13 -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 1q4Eyr-00045x-7x for emacs-devel@gnu.org; Wed, 31 May 2023 02:06:45 -0400 Original-Received: from mail-he1eur04olkn2085.outbound.protection.outlook.com ([40.92.73.85] 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 1q4Eyp-0005et-3m for emacs-devel@gnu.org; Wed, 31 May 2023 02:06:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D4/704+LaP1OeAZMQrEO0obl4Wb5qPUlhfRkj3GxKlpYuOrYo7ORU/OHS8RKxn8ytHuM6BtbAK0OHuIhJVzekDrCsIsy+uSqMcXpZGyF35wrzvXIy8rtdRcMGzLxet6kFGruzESF21U9tCWIJNsXyOf8CyoBwOMGLylbWDJlQj1tfYOtETGlXcNLE7UQsi00iIpLrhY6tjJ6aBbY8owDLQjTZEO7JpSEyyjDcexZi5COVFC4kVPdZNjzEJjSVmX1aYs+mZdR+lmD6GWe8mVRucElx88czpF8SHDmXvZNlU1LbR3SdPVgAGyzHc9jp1aayDdL6LGiIX6HEJY7XEgJjg== 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=6GlecOUoM9BPod0kTAg1CID6zxCDW1pbi00jK/OMFro=; b=bjHjc9Zl6nH7OdH8DXHtw/S2jEQFJpcWlCd3j/Uuc2UvKVrR/WxSZez22Tzrcr/y7r9hneg3Z9Kt1jJ3yhTLIhEGmbvTab/N970VM5NZBAtR/db7TuBLEo+ksTp63tH5W5QSXXl25HipIimILPMGPOsp/Ag0Q3ZnJuNcslg3X+dtuzEZ86vXC1Qn3ehzzPD/0utLAk3gvTB1qQM5NGmxPo6Lkfp+cvuUfYekjy+K1sBfgNOlQO/fo1Jy34kRhIR6dSaMuGtO4PD505YzmLYd+/hYdOKMYsY2HYQewklPJiIuUpFvhiP+Gv8Cel+RPaTmPgl1QRwhNv1uEIXF62gKjA== 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=6GlecOUoM9BPod0kTAg1CID6zxCDW1pbi00jK/OMFro=; b=EgsJJIU5SyM3s+sSgWZuqI+tTTTvLVqwihqjlkGgXgWfrZvD0A+wf1jzM6v1JMxt7cwDyOjxUs/pup+ewIkVy+4iPQL7CeFXylKtZ3tpx/aBjaY214iBtsU+W8ISTSPvPMnjaP7lpjTSJpReabAyUR7bRSbEK5WSeIustrs7XCiEus7UnNc3LbcIZjPDcVkmozD0t+WPhnMJTypyyiMSD+61Fg2V+tTwYlzlVyFS6G7tPj6wNEtKzERd06SCybkQ3oJ7uNbtLrixofnNhlM+8BKEpMG93x9McU2m1/LyQ9JrWsvcbJ8PJgHn15BNoZbHS3M0Q1ODTnByCEAHgVQ5vA== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by PRAPR09MB5579.eurprd09.prod.outlook.com (2603:10a6:102:29a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Wed, 31 May 2023 06:06:40 +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.020; Wed, 31 May 2023 06:06:40 +0000 In-Reply-To: (Drew Adams's message of "Tue, 30 May 2023 18:04:25 +0000") X-TMN: [OK/3ap4cNbe7iC7ZfgH9ZL5YRPas8n1LD0pfL4AntIc=] X-ClientProxiedBy: MM0P280CA0091.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:9::29) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <871qix9gr5.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR09MB4977:EE_|PRAPR09MB5579:EE_ X-MS-Office365-Filtering-Correlation-Id: 4493d356-bd81-4278-a5e8-08db619d3328 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WAgr6BU5dQ8s6pDgDmqloA0ScOuQmG62iCElDv2P2LreKbHscZbNiUaM7kzcwrzsflwBGl6R69H52S4foUYMDFGoo8pd9+2o5XYpGNbM7bKH8PRaXAH1RJgSg/H6eE8atyWfBTWFoV8YC4JcfCJJvxxafjgZww/H4TKQtMupLhara6V2jcVh3BVxoYcomHBgewQ88Rt8ZdsvHiG6hekVh4tBBPF1gN5DVUhMJViZss5MUY1xYOvikwKzvcXhPaO/Dw4TnT7kuMBpxjL+AU175ESeC/K5Cqp3JuupYqKK6d+DcgTUpD77ga71emrRqmXzqvAtaf2E8JP9rb1BDl+Sx/vPTVtLzAOd3s8KWxw3SY7phXy4E/DHTQ3NWwmj4fDGQenckHCTBntaOb4g0QxJBff/CQSR/ZVlz+Q0bMAVpKxxV64xnZ/zsyB1p0bZ8kFey00WbHqjw2pgjEezA+yJAcgyewniu2BQH457N5KZYs0W4yCxoTr6cyHX4DHI9+QuNSRpmEAlYU9Tu9UCvJNigLbhr02stzkhMuqQE7KPpkOaCMULEDDl0YKZxtZthBNsdXw5QfcbrKkisVDLHTS8LA1sn0ivVtdSDsfF0WcErJXMzyiC16GHnOU7c8hYjMYQ X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?q0iP/HT9zAYQGGN/FZtYzb0Yfks9Fiqmq0j4ukbNijfBpuB363cKpcm4dq07?= =?us-ascii?Q?BpFp6q+D103LMjpSgdR8/8nFUJnP7T3QlwnBai5KMdvtcxzxWxKaYMlqtPaW?= =?us-ascii?Q?pF+6SKEmpH824POTmVbc1Yb1VGE9BxGpbca4mxUueYOXdu3r61lXcxZ0EH39?= =?us-ascii?Q?AOE5i96BtGHQauR28FiXJJzi6dtI/KWfLJhXaQEz7Yo3slXMMMXFY1LBQwau?= =?us-ascii?Q?zy/GgA5VqnQf69KIzk29pqXAwkLsshMdBMPCh4fZ3TrFbEix8oAY7KQFrEG1?= =?us-ascii?Q?lzH3iYjNhcK3CnegJWYQTBGUWbrrTD7e0sT79NI3jYFkXHZdI9RBSde1nekc?= =?us-ascii?Q?1LEwsBXLfpIoiIj7imrxtKD4s3BHWY5b6HsnLkavq9AeNHRpkradJ3pK+rpF?= =?us-ascii?Q?qxuMGGRoAGNz3iD/ui6jCY4r8yPXoh1MM2m7XtnKARai1asL9rg2VsqRbqq6?= =?us-ascii?Q?aM2XnVizAk9x68qoujvTzeCtDkpQFU6OCMwnQ566KxQp2VOH6K+uY4A6oxhq?= =?us-ascii?Q?93r52jAmY0b73MBeaAn/G1o6+VVBN/FcXGvaAW0p+GW3TitXraLRDepGyjuh?= =?us-ascii?Q?nRDrrGD7sajnUgOCfHKjCYJNtq02+1z9aCjm9JQRiyqZtGBxp7ghXUGbDWGJ?= =?us-ascii?Q?2x X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 4493d356-bd81-4278-a5e8-08db619d3328 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2023 06:06:40.4074 (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: PRAPR09MB5579 Received-SPF: pass client-ip=40.92.73.85; 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: Wed, 31 May 2023 07:13:11 -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:306436 Archived-At: Drew Adams writes: > Apologies for not taking the time to look into the details of what you propose. Some quick feedback: > ___ > > As one user, I use (special-display) frames for *Help*, *info*, *Man*, *Completions*, etc. (all buffers named `*...*', in fact). > > 1. Please make your feature work with (such) frames, and not just with windows in the selected frame. > > E.g., pass a non-nil ALL-FRAMES arg to `get-buffer-window'. (The arg should be 0, `visible', or t, not a frame. I'd vote for t.) Thank you Drew, that was actually very useful tip; I will take a look and see if I can rework the patch. > 2. FWIW, in my use *Help* is no different from *info* (and *Man __*), in the sense that I can have multiple Help buffers just as I can have multiple Info (and *Man __* buffers). > > Only one of the Help buffers is named *Help*, just as only one of the Info buffers is named *info* (e.g. `M-n' in Info gives you *info* etc.). A Help command shows buffer *Help*, an Info command shows buffer *info*, etc. I undersand,and I am aware that different *info* windows are numbered, like other buffers. To me it seems that the name is matched by prefix, not by entire name. I am not sure if *info* will always be matched before *info*<1> when get-buffer or get-buffer-window is called. I am not sure though what alternative would be, like prompting user with completing read? I am not sure that is a good alternative either. In case of multiple windows I suggest the workflow remains same as now (user manually switches to buffer). > 3. I think that this kind of error msg might need correcting, depending on what non-nil value you decide to pass to `get-buffer-window': > > "There is no visible Info buffer" > ___ I agree. I gladly take suggestions :). > 4. FWIW, it would be much easier to eyeball your patch if you used a unified > diff (`diff -u'). I have used: git format-patch -1, which is very simple for me, but I have no problem running some other command if you give me the command. diff -u is complete command? > There's a lot of code that is, I think, unchanged other than > being wrapped with some code - only the wrapper was added. Pretty much so; basically most of those are just wrapped into with-selected-window. Few have it done manually, but basically it is all the same principle. Thank you for suggestions; if you have more useful stuff I am glad to hear.