From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41890: 28.0.50; [PATCH]: Add bindings for project.el Date: Mon, 13 Jul 2020 02:48:12 +0300 Organization: LINKOV.NET Message-ID: <875zasthvn.fsf@mail.linkov.net> References: <87mu50b43d.fsf@warpmail.net> <87pn92t1ye.fsf@iris.silentflame.com> <874kqcsnu5.fsf@iris.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32468"; 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: "Basil L. Contovounesios" , "Philip K." , 41890@debbugs.gnu.org, Dmitry Gutov To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 13 01:51:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1julkW-0008Kj-1e for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jul 2020 01:51:12 +0200 Original-Received: from localhost ([::1]:39638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1julkU-0006Ux-TS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jul 2020 19:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1julkM-0006Ue-KD for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2020 19:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1julkL-000880-OL for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2020 19:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1julkL-0005ny-N3 for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2020 19:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jul 2020 23:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41890-submit@debbugs.gnu.org id=B41890.159459780922243 (code B ref 41890); Sun, 12 Jul 2020 23:51:01 +0000 Original-Received: (at 41890) by debbugs.gnu.org; 12 Jul 2020 23:50:09 +0000 Original-Received: from localhost ([127.0.0.1]:47141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juljO-0005mU-Tl for submit@debbugs.gnu.org; Sun, 12 Jul 2020 19:50:09 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:35855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juljM-0005lt-Ut for 41890@debbugs.gnu.org; Sun, 12 Jul 2020 19:50:01 -0400 X-Originating-IP: 91.129.103.18 Original-Received: from mail.gandi.net (m91-129-103-18.cust.tele2.ee [91.129.103.18]) (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 8BE081C0002; Sun, 12 Jul 2020 23:49:52 +0000 (UTC) In-Reply-To: <874kqcsnu5.fsf@iris.silentflame.com> (Sean Whitton's message of "Sun, 12 Jul 2020 09:24:50 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182956 Archived-At: >> But why project--keymap-prompt, though? I thought you were going to do >> something that would look like a "normal" prefix keymap. They don't prompt. > > Over in the other bug I received feedback from Juri which I understood > as saying that only a patch using the prompting approach would be likely > to be merged, so I've been working on that. Sounds like things are more > undecided than I thought? Sorry for the confusion. Actually I referred to the patch that sets the transient map. The fact that it also displays a prompt is a minor detail, not needed for your patch. The patch that I referred to was posted by Philip in https://debbugs.gnu.org/41890#50 This patch uses set-transient-map to set project-prefix-map, and the prompt is displayed by ‘message’. But later Philip sent another patch in https://debbugs.gnu.org/41890#100 that doesn't use set-transient-map for the reasons that I don't understand. Providing the explanation Philip said: It turned out that the transient map approach didn't work, as it ignored the value in default-directory, thus running all commands in whatever the current project was. Maybe the same function can set default-directory to solve the problem to be able to use set-transient-map?