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: Universal/prefix argument for "other window" redirection? Date: Thu, 08 Apr 2021 18:11:23 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13692"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 08 18:13:00 2021 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 1lUXH8-0003QY-Qe for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Apr 2021 18:12:58 +0200 Original-Received: from localhost ([::1]:42038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUXH7-0000Nr-Ox for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Apr 2021 12:12:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUXFn-0007F4-3o for emacs-devel@gnu.org; Thu, 08 Apr 2021 12:11:35 -0400 Original-Received: from mail-db8eur06olkn2071.outbound.protection.outlook.com ([40.92.51.71]:9760 helo=EUR06-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 1lUXFh-00058F-Ec for emacs-devel@gnu.org; Thu, 08 Apr 2021 12:11:34 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mm/ULJEPwOX+N8SRK0GrLJlM+PKHQkl49urz0Cz1cUE1x3GDknsGUm1OhxMlmLd1p/DwSAvqqT9nEmZ8TRXDJQ/tk+O7nIqbtOqONHfQt4+53att58X80eEtiOc9Isxfw41+veRbMLMSwo0BkdMUv6NGLSWGHghpsA8LZIT67Xl4GgPaJjqOWFy8iIvfXXRtSP2QOtipc+WC7JwfaL+8LmNsujPAOoX13eDDC0DQmUfTXTVwMKUsfFVuelHBytgQaQQUGI55+PEahQulXmwvrYR91HazfAXlctRzqxsQHkhlUNNPfnJYqwzP4wsxHBigVtUFeFln4XOkiDSQMI60Tw== 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-SenderADCheck; bh=eivpFd7q324BIcoVJIxPDRs+x1Gb3cUDLCtcbnI9c/Q=; b=fNThPTvmcF1QN+i+t/LnXYPEOrSwWXW/mFzto4s3DlABB5bVz+/L/SKJgytkHfEicKQENA526vVY4aLDOPYbdpVhyxHZs1S/Z+Nc4E3sn59owJVELKIUIksTvD1d+b3qavIQB7tTC6FrcaGWgAPDhf7kPkqhT6IXVYcl4opLDv0hRisJdA+olvq66ZbEN6+RhZcPdqla5NJrkC47rVDXtkjxhb4mu6NTalk5uk3wcu52kRE0TupwaeMpuIraZYCfC4VxqbbOohXBd1vNijHFHHCgS9vPIFDVqsGSjub6xWiHNsLVpI2vWXD2DWRji76kv/vrg1M6PK7hhcK1yyKE2Q== 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=eivpFd7q324BIcoVJIxPDRs+x1Gb3cUDLCtcbnI9c/Q=; b=WK2/nrTXQmD3BrXJt3Jxq7c7Ixet8o+QCyqgDaduLhH5r+9SLYMSyyASVptpPxdjsuOPJWWGwY4QoF/4X0YkVJLSqJ8jfkucn4FjESCtJ4E6DdFyEoMXkAQ9qReLHjJrSPLW76REY8zg28c18CjMGdXDHzh1zDuhcG6N5380mwbdLcaKrguNNfTFYeCGoWVbRhAnNi///mWkCnoOQnaayBVPviqOn1/L6FPinCs9q09zU4SUhDGUsCr1XAtitBH6JNzc6b6y/V/jG+W0ChAImaD7jfivwLVZIrJeIFR1nPnaZNMI2Nv8ILxIjDTwKlw0MINPHU6KqUwRYgdxKDBhjA== Original-Received: from DB8EUR06FT058.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::45) by DB8EUR06HT203.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17; Thu, 8 Apr 2021 16:11:25 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc35::53) by DB8EUR06FT058.mail.protection.outlook.com (2a01:111:e400:fc35::431) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Thu, 8 Apr 2021 16:11:25 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3F4AB23A74C67CC10DABD65141D73393436CB3A565E19C38EC5E696CD8C9CC15; UpperCasedChecksum:5D7B22950342A8B22CCD22DB924108E9807AD7B6ADD37C67BB6C54E221109F2F; SizeAsReceived:7709; Count:47 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::2103:e705:bc0c:5a8b]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::2103:e705:bc0c:5a8b%6]) with mapi id 15.20.4020.017; Thu, 8 Apr 2021 16:11:25 +0000 In-Reply-To: (Stefan Monnier's message of "Thu, 08 Apr 2021 10:56:31 -0400") X-TMN: [cAuGFCO0ZevOeIHU6Ey1AOtrcqSI7Km4] X-ClientProxiedBy: AM6PR0202CA0053.eurprd02.prod.outlook.com (2603:10a6:20b:3a::30) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <82wntc69jo.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from HP-Laptop.homepc (81.232.177.30) by AM6PR0202CA0053.eurprd02.prod.outlook.com (2603:10a6:20b:3a::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Thu, 8 Apr 2021 16:11:24 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: a293216d-f9e7-4849-0b13-08d8faa8f523 X-MS-TrafficTypeDiagnostic: DB8EUR06HT203: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zz92HHk+U7+J5UJjSHL7DR75pLlb1vkh1RDModARRuZ/hjzr9ODA5JI4w1n8u/Vcxw9CTgXqTuttQuGLNG1ctBgeLiPwqcjdudWqAiVLwrMPzguw5fOEAMqFoUVjO1IpCt1ouOK6LSnnxX56ZFSs0o7ROGs81rK6zo1AWt+JuqzmK7O8WsKbFQ3k1PCjm/VTpxirWNJDImjNpuGZsj79Lul6OmSvFQtOe95vV0mVIpo5fcm3/cccJX+rNU//MEcT4Oo33wwdHQ56OLWEwrY1F7GoOrJZGPMBpT6wiA6/NBYx5pY0Lv3OT3aaM2KQNrYw99eV+Kq4E+gB5uH66Dl1WhhU3fXeAktNlkIXUksUN1XUp4wbptcHV/5u3Lm2C1RJiG2Lp3b81JVyuIeEBh3KHA== X-MS-Exchange-AntiSpam-MessageData: nyLNFMosECH+9jTEHigs5EEcA18y4YICkBi3wK5JKS9KsmVAp+PtwXpNsFcHOyHiZJfnpmE+fRWcpPshlZs4Oz4Yq5OWqGFz66VfOyLE3xykn99xar+o4cuAYIxc7bcTnWr8sAyXv8FLHhvMlIyoeg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: a293216d-f9e7-4849-0b13-08d8faa8f523 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 16:11:25.0056 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR06FT058.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR06HT203 Received-SPF: pass client-ip=40.92.51.71; envelope-from=arthur.miller@live.com; helo=EUR06-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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:267629 Archived-At: Stefan Monnier writes: >> What I would like is to have all the cursor motion stuff, expression >> evals etc, work on in other window so I don't need to switch back and >> forth two buffers (I like to work with two buffers side-by-side). I >> wonder if there is already something I could use; prefix >> command/universal prefix whatever, to autmoatically modify behaviour of >> interactive commands involved or do I have to write my own (if it's >> possible :))? > > OT1H you mention universal-prefix (which only affects the very next > command) but OTOH you say "all the cursor motion stuff ...". > > For the "all the cursor ..." case, it seems you're saying all the > commands should operate on the other window, which is exactly what you > get after `C-x o`, so your description needs more details to know what > you really mean. Haha, yes, I think I myself need more details to know what I mean :). I don't know myself what I really want. I find myself switching a lot between two windows, which sometimes feels redundant. Maybe it is just the shortcut, C-x o, or in my case C-v o. After playing with Gregory's example, I am thinking of just binding the other-window to the `=A7` key. Maybe that itself will be enough for somewhat "smoother" experience. > I don't think there's already what you want. > Gregory's code is a workable starting point for the "just the next > command" case. Another direction might be the `vcursor.el` approach. Indeed, Gregory's code seems to be very nice tool for some quick fixes. I'll take a look at vcursor.el too. Thanks.