From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: New feature in project.el: Remembering the previously used projects Date: Mon, 08 Jun 2020 01:38:44 +0300 Organization: LINKOV.NET Message-ID: <878sgy1oy3.fsf@mail.linkov.net> References: <87eeqtvrmq.fsf@bulbul> <87ftb7dbun.fsf@mail.linkov.net> <48862f99-c174-71c1-877f-bcf35fc4363d@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="3133"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: simenheg@runbox.com, contovob@tcd.ie, "Philip K." , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 08 00:58:19 2020 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 1ji4F8-0000i5-Uk for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jun 2020 00:58:18 +0200 Original-Received: from localhost ([::1]:50960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ji4F7-0003WA-Tg for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jun 2020 18:58:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ji4EM-0002J3-Sx for emacs-devel@gnu.org; Sun, 07 Jun 2020 18:57:30 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:42959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ji4EL-00064S-Sw for emacs-devel@gnu.org; Sun, 07 Jun 2020 18:57:30 -0400 X-Originating-IP: 91.129.108.6 Original-Received: from mail.gandi.net (m91-129-108-6.cust.tele2.ee [91.129.108.6]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id D325CFF802; Sun, 7 Jun 2020 22:57:25 +0000 (UTC) In-Reply-To: <48862f99-c174-71c1-877f-bcf35fc4363d@yandex.ru> (Dmitry Gutov's message of "Sun, 7 Jun 2020 03:40:51 +0300") Received-SPF: pass client-ip=217.70.183.199; envelope-from=juri@linkov.net; helo=relay9-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/07 18:57:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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:252031 Archived-At: >>> I was thinking that a "x" key could be added, which would invoke >>> execute-extended-command, but in the project root. >> Or as a more general solution a prefix key sequence could be added >> like recently was added a prefix key sequence 'C-x t t' to run the >> next command in a new tab, a similar key like 'C-x p p' could be used >> to run the next command in the project root. > > It's a good idea, and we really should have a command like that. > > But, for commands that are present in the switch menu, it would still be > more economical to use project-switch-project, right? I mean, as far as > the total number of keypresses goes. Indeed, these shortcuts make key sequences much shorter. Perhaps 'project-switch-project' even could use 'set-transient-map' with a normal keymap? > BTW, I thought 'C-x p p' would be for 'project-switch-project'. But maybe > people have a different idea, it's not a strong preference. Maybe, it seems the prefix 'C-x p' is free to use for project commands.