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: Fri, 09 Apr 2021 09:58:46 +0200 Message-ID: References: <87pmz4jdke.fsf@ericabrahamsen.net> 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="37989"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Cc: Stefan Monnier , emacs-devel@gnu.org To: Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 09 09:59:51 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 1lUm3S-0009kh-H9 for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 09:59:50 +0200 Original-Received: from localhost ([::1]:32874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUm3R-0006me-I4 for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 03:59:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUm2Y-00062N-CB for emacs-devel@gnu.org; Fri, 09 Apr 2021 03:58:54 -0400 Original-Received: from mail-db8eur05olkn2054.outbound.protection.outlook.com ([40.92.89.54]:43904 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 1lUm2U-0000n9-US for emacs-devel@gnu.org; Fri, 09 Apr 2021 03:58:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MmM57n3Hoq+hMJAG6SI/N2HBkT0kfJEdZ4F7yxA8AA9D1Q82xDUMXy3dGiW9sBKz61YegrNLqCXY3clBNjIL3zmeq5obW98WL4rEwhpKWxgwSzoi+N8RUS01Wvd0DxvEYdzsuZSW+rq4vKym3f7Kd+vE90G2PtwSxJrw/d2Ruz0nxFZ2/JXcsiu7C8wy+X37BYQsxQDdfWOf/onyzRFjXOlv+zhGI3nxW3GpYZLUbeRt4XNw2MW2XijkBhQ7NHvwZozeNtP2PrGoDTKl53qJ3M7rR0pjlnmpNLxYeHpxsT7r8aTyhvU4/49CudM2dkEiE6Xl8aAv7zJ5PJu50wD6/A== 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=kQvZn2dTtj9TvetNw9KKZAbbjb61SOXYrDMqNkt/6PY=; b=kohTrmEPmFzF+6GADIPl8FYnH/2KIfgpTHEvmjss2L4oG4QIlPcNbmVeK/euKWiDFKnXVp8d1TVqIPKBvgKV4SmeMGHAzuQIRhdAT9rXcffV6+NqSgwAqbr+rE2JxqEGX8RtZX0bdHfXHl3i/E84KawFhZYtN/LVLoe8dBVPXP2v8A9UXC7D7OQUcbkRzJSe0MCpIjyDYtC9dmJgmnpuMfJDkzbKSF9jsKstKKAM+YO2a/J0RrSGGm38MNksYNsuTgwC1Y4/kR+LjjapxzF5DgmHzSZCJHRyWN9jZvy1m5HamDG5A0ZxOkAMRxVrfLbWkLS9KrlLqemBbDUMS8p4dA== 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=kQvZn2dTtj9TvetNw9KKZAbbjb61SOXYrDMqNkt/6PY=; b=mdfBnHer9GSDtOQ8dVNcisX09bWXCGJiCI3oOOd0U74kTLDnzrveeq3jcGTpmiDRpyPIzN86/UIvQZOplzyUHf/tBGew8mbR8ytc9wwRn3wwSfo5d4MDlhTCBKsn71KCOyQDSqHtbWOozIV/7rDXWnaDDpJc/GI3lqbxHj+xoFkvzRukjb72lkM5lM40uCVdMq9fzoDhUSnnlyLst2p4ZKTytwH60fcvS5jHcBiGLMCgJxe5fe0CFBI63v8dvblIBEoT7ypQPE52G/gFgjWlimPsNw+/UNcfUX7anQXi1ShiSnkxz96L/3qGd8tLKyemI3hwwELNWoGaYZi557oJ0Q== Original-Received: from VI1EUR05FT048.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::47) by VI1EUR05HT243.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::430) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17; Fri, 9 Apr 2021 07:58:48 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc12::43) by VI1EUR05FT048.mail.protection.outlook.com (2a01:111:e400:fc12::444) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Fri, 9 Apr 2021 07:58:48 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:2E252BEEB459D59E90AF89B965D358986D245F0E8692C157C32A0C32CAF6A527; UpperCasedChecksum:DC40811AFE2E4410615FEB25C4E705212DAC3C2C02656208911761CE1BC503C5; SizeAsReceived:7870; 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; Fri, 9 Apr 2021 07:58:48 +0000 In-Reply-To: <87pmz4jdke.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 08 Apr 2021 21:18:25 -0700") X-TMN: [K4cp6yvmzxvs5fWj2uYRj3hqcQHsgpSX] X-ClientProxiedBy: AM5PR0101CA0016.eurprd01.prod.exchangelabs.com (2603:10a6:206:16::29) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <82a6q7nb2h.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from HP-Laptop.homepc (81.232.177.30) by AM5PR0101CA0016.eurprd01.prod.exchangelabs.com (2603:10a6:206:16::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Fri, 9 Apr 2021 07:58:47 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 2dbe5f28-465a-44e1-ebab-08d8fb2d4e3c X-MS-TrafficTypeDiagnostic: VI1EUR05HT243: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m+4PC4SsW3IDh8E7v3zDBFPw6YCzouBVsXHqUQDQMSSWosuTsYedW9uEyPT1lxBoX1Of5yu1E0wd/bytllZcMfOpbh6o1SXm/YEMchRdb6Fvp3LCj+tsQ8SPfNRT8FArCgLvFUrwllFfXo6b/JhyTOd8o+hVV/KfnuzJUkchv58zhHPGMlNLZf/Q1+L8qdQMZ04pHvSQnjVLVkUw4Bzt3ZKQKVzckKEFL6BpGFbrzoWdoefxVd7b8qgrDhUPkbcKm8mqqwaKuslkDautHm+tNaWepeK1WUH18eVszCJ+EKZm0pxgeQigUxfiDWBfivYcny3Z/XI0Qi6sZwjayAXAQyoSQyCnjHTcS6OJ+RaYZ8Rdvgd7KskzfBH5Y6wUxT5Ahpjerz2l4IqOq55JE2DoP+KpuWWBCDBe/JfjiZYSmtdIYQX4a8aeY3kbl9NBuBjI X-MS-Exchange-AntiSpam-MessageData: 9HKRQAJ4f5aW3UZCi9D6VnDqnqXlpptmSJPfW/qXtbkFfK89xaZDbGZR4BjK/Bgs5Oda/PXM76R63bAO/T7Tw5wUW/8UqEmjWZit++bq4ckwUUzcm4PwDlZ88/iTdIwm2dKmGkUIlxnFd/KOACmY0A== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2dbe5f28-465a-44e1-ebab-08d8fb2d4e3c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2021 07:58:48.2260 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT048.eop-eur05.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: VI1EUR05HT243 Received-SPF: pass client-ip=40.92.89.54; 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, 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:267695 Archived-At: Eric Abrahamsen writes: > Arthur Miller writes: > >> 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 o= f >>>> 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 wrote a command that sends the cursor to another buffer window, and > lets you do whatever you want in that window, until you hit "q" (this is > a special-mode buffer so insertion isn't an issue), whereupon it pops > you back to the original window. It uses a transient keymap to do that, > which is yet another approach you could consider. > > https://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/ebdb-mua.el?h=3Dext= ernals/ebdb#n1244 Interesting; thanks! Cool to see so many different ways to solve a problem in Emacs. Thanks! At this time I think I'll write a blog post as a summary instead of bothering you all here.