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: On the adoption of transient.el Date: Sat, 14 Aug 2021 22:45:17 +0200 Message-ID: References: <877di4on3d.fsf@posteo.net> <87im1oy6mw.fsf@posteo.net> <87czquisme.fsf@bernoul.li> <87wnoofapr.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18646"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: =?utf-8?Q?=C3=93scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 14 22:46:27 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 1mF0Xy-0004dE-Uq for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Aug 2021 22:46:27 +0200 Original-Received: from localhost ([::1]:47260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mF0Xx-0007mi-UR for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Aug 2021 16:46:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mF0Wx-00076P-OQ for emacs-devel@gnu.org; Sat, 14 Aug 2021 16:45:24 -0400 Original-Received: from mail-db8eur05olkn2070.outbound.protection.outlook.com ([40.92.89.70]:40864 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 1mF0Wu-0005lr-TY for emacs-devel@gnu.org; Sat, 14 Aug 2021 16:45:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oeSNze5r2fZsS3LM4wp/fQY5lPogxUhIet9c8sJV801iL0YuzPRr6GcRzUFkFOifO7chNIdlqFxtmKOWpaIxnek00BUNgIbblkO5QNlqtcm70atLaFls4dmtsLx3k44f/sWT+nHBfY4WkQzDOS8obJT4zBEgKRvCtTwpE2pStEuXRrTdne2ZpsWdupY9XtE+ldYECgC+Xey8U6ULcWdmEe0EObaqTivSPmE+Wv97pDdsKywwOWY9RI/XEZ6bfPcw+DGZlOCN9UnjjefUjTfWjhvE+tdONlJR3uqxIcMQ6llnG5qKo0yRVkOZeNnoop4fb45RKkgfncjoIxCUQXKrPg== 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=POfBvOqmxDwNL6ApSHlgZyS6AP8NI4R5LxHeJtEEMmc=; b=AVxg5NpmZWfuPqy0gitjFfNvnn/XfhpTAk9am5z3L12Xz7PBdtkc5/vT4kxmj5qvdMCHfDW00T2fJS7A+OnrUfgTd+Odc5ui6N7sxxAgUIBlgo8RvCJvYBk6+jq2lfSwA5Cce6J/tiR0siyWW5vcA5LD9LmYWzbTcR6i+Ue16s0EcXJy58cV8Va6cW7nOE+DT7mjmvD7bxCP7cSFw2e3/a7KukLhRsxOxql9JbmxL90p72ANN7oRcADiWMIc2PgQx+qkepzvpfrG+JO+ll1h/aPTh1uC1X6fdnwVwarhUq20Pa16583KNhY0N6oGJEhAaVoKkAESfxk/GSz1kEnW7A== 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=POfBvOqmxDwNL6ApSHlgZyS6AP8NI4R5LxHeJtEEMmc=; b=Lx9nRRXn5OOxV6TcS/IzcdFYlxahHYup92aIME3PvKArscChlUYswXLVrneW2YeTUCnm8YYnurPAQYPBdomrX1jvhbnhn1sgUHPQQZc+hZeE1oizY0drWOPiBJ7Aexq2dFKGGnVr1SFvU/AILFj7i4av8JQTW+rgCJL+sETBVP8sNJNGV3C14Oys/m0LrO7gr66l9XQ5n7FO3ujecS2cR8u73CfEipfEtKxABQh9D+E+04maYxRqyBdh2GWq3iFOA7NPf1Uw43yhUgqRcM9tAyEAFAt1lj6hppqJ1RlKdXgbrn/cgFLlAiIkXpwAqABcgUe2w9vKyOqsp6j2LZTTEw== Original-Received: from DB8EUR05FT047.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::49) by DB8EUR05HT133.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::255) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16; Sat, 14 Aug 2021 20:45:18 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc0f::41) by DB8EUR05FT047.mail.protection.outlook.com (2a01:111:e400:fc0f::452) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16 via Frontend Transport; Sat, 14 Aug 2021 20:45:18 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1F728C66EB1D9DD57E25185B7DAA01ABED9F67ADE0C09F49326E14419354A20C; UpperCasedChecksum:BA91917E86C62B22DBF5BDE5BE4032CABC78C55BF3F450D81BE28E6C63A67017; SizeAsReceived:9042; Count:47 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39%2]) with mapi id 15.20.4415.022; Sat, 14 Aug 2021 20:45:18 +0000 In-Reply-To: <87wnoofapr.fsf@telefonica.net> (=?utf-8?Q?=22=C3=93scar?= Fuentes"'s message of "Sat, 14 Aug 2021 14:54:24 +0200") X-TMN: [2nB/dJgMjI4DiGMcWQpbiTI7mXuVmV/N] X-ClientProxiedBy: AM5PR0601CA0041.eurprd06.prod.outlook.com (2603:10a6:203:68::27) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87k0knycv6.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM5PR0601CA0041.eurprd06.prod.outlook.com (2603:10a6:203:68::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.13 via Frontend Transport; Sat, 14 Aug 2021 20:45:17 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: e6cabb4b-2f42-4dca-80e0-08d95f646cea X-MS-TrafficTypeDiagnostic: DB8EUR05HT133: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /kIxFVxpGBZWaISDhfgWIwAHvTGxO7zWAEontL+5S5NS2pGWDil+DarNcWbV9bFRygCMJtE1hfoS37XgUfQyuPs15wEb7PO4daKjUff3M0sLcH4/8E8OV+qXYRbnSf3SskY30EL1agyWUGt+cXX8o0Zy+4DbDF4vQKDHUpqcONUMa2zesH6cBvPo24xrXA+8e608JG6UWYfamCEHzlfW/BUoi76CZov3NC9psCUeoMONP2OOvke7//bD/xxAxtOjkEDgipCx7xhamJW7vSPLqYd8vh077B168zm/ZVDOnRF9EAXYeeelZ63muQw9MBRspbT4TbYePP+Gjfgj4HQQ+Pw34Mh/Awnl9+nV0NafG8nTEtzQI+8cQsByl0+VVv91N2QNGa/rem0XoG/ykFI3gR21dKiSbgW2c/rInQaNAlISl75ZH68ElemhuJ2jZfDk X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +E7SbSyQkKXfECT9jZ6C6TAn1Za7llrgZCmZ8tVPyNHdtZMQIbbseaMVaEKFuKKd3s66hJBM5ALxew+zbiG7XataFmdJ9zVFFYrBbyWoh10advT616lywa6JOOv0QBRS7qQWUHK86rojORsWC3RY8A== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6cabb4b-2f42-4dca-80e0-08d95f646cea X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2021 20:45:18.2374 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT047.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: DB8EUR05HT133 Received-SPF: pass client-ip=40.92.89.70; 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:272395 Archived-At: =C3=93scar Fuentes writes: > Arthur Miller writes: > >> Jonas Bernoulli writes: >> >>>> I have to run Magit than bb and than Magit will offer a completing >>>> read which will pop the asked Helm interface. To me this is not a >>>> straightforward enough >>> >>> (global-set-key [f1] 'magit-checkout) >>> >>> Also you generally don't have to "run Magit" and can just use "C-x M-g" >>> and in file-visiting buffers also "C-c M-g". >> >> Hi Jonas, I have tried your magit-checkout now. It does not really do >> what I had in mind. It seems to just be a wrapper around git checkout, >> and similar to git checkout gives error if there are unstaged changes. >> >> What I wanted was a fast straightforward branch switcher, no questions >> asked. >> >> The strategy is to stash save all buffers belonging to the project, >> stash everything, inclusive untracked files, and than checkout to the >> other branch. When checked back, the stash is applied back. I don't know >> if you have something like that in magit or if it is something generally >> desirable, but I always wanted something simple and dirty to be able to >> switch fast when I need it. > > How would Magit know that when you "return back" to a branch it must > apply a certain stash? Stash can take a name. > Work-In-Progress management system, which use branches instead of > apply a certain stash? No, Stashes are exactly for that (stash create a branch under the hood I think, but it is not important). > It seems to me that you are asking for some > Work-In-Progress management system, which use branches instead of > stashes. IIRC there are some Magit extensions for this and even creating I don't ask for anything. I was in a discussion and wanted a fast switcher, was told to use Magit and didn't found it fitting my needs. Jonas said I should try magit-checkout, and I just explained why it does not fit my particular need. Just as act of politness to Jonas kind advice on magit, nothing more. > your own doesn't seem difficult, but IMHO your use case, in the way you > describe it, has dubious applications in general. It is not a "general" solution. I want it to quickly switch branches and be able to quickly come back. If you work on something bigger, and than need to checkout another branch for a small fix or lookup and switching back, I want to save myself of manual work. That is the use case. Dubious or not :). > For starters, the part about automatically stashing untracked files, I > have seem cases where it would stash gigabytes of build products. Well, if you have case where you have gigabytes of files in git repo, than you don't want to use this one?