From unknown Wed Jun 18 23:15:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#47501 <47501@debbugs.gnu.org> To: bug#47501 <47501@debbugs.gnu.org> Subject: Status: [PATCH] Do not search the global keymap in project--keymap-prompt Reply-To: bug#47501 <47501@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:15:01 +0000 retitle 47501 [PATCH] Do not search the global keymap in project--keymap-pr= ompt reassign 47501 emacs submitter 47501 Dario Gjorgjevski severity 47501 normal tag 47501 patch fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 30 13:02:46 2021 Received: (at submit) by debbugs.gnu.org; 30 Mar 2021 17:02:46 +0000 Received: from localhost ([127.0.0.1]:52749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRHlO-0007NZ-6H for submit@debbugs.gnu.org; Tue, 30 Mar 2021 13:02:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:34386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRHlI-0007NN-AR for submit@debbugs.gnu.org; Tue, 30 Mar 2021 13:02:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRHlI-0001mM-2o for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2021 13:02:40 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:43635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRHlG-0005CH-DM for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2021 13:02:39 -0400 Received: by mail-wm1-x32a.google.com with SMTP id u5-20020a7bcb050000b029010e9316b9d5so8809787wmj.2 for ; Tue, 30 Mar 2021 10:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=WTexbsaQUmwHmFUTbiBKGoaEf4nJ/F2LOU2SkItRSw8=; b=Ywx3DpBcyBMLMQd5ERmaij0ha9pyXa1fmTgdyIaTAcsn/TyL6SoUyYaNDIghQToo7s e0qCC1a2q2nHrGd0upf3cV+LJxTW4EUThbk6vOJXIe/oOON3Pse58eVQ7YEba/Dg9hzT mPBT+V7+p/LGwQ20vBfMGMO4JJQnCLjjiZUfnmSSbWGMPZ9/ANR6Swqmt5/nFnBePSxV 8MCLGUl/Ssf6Y37RxJeQnzV2JskcOClvi5uARMmUpgUe8a5BIczWIpySywAne7Q8jZ5/ coS3+hZqnrLFklYFQZlZEL2NfYXDypxujwOyRWBf//oQyWcw9CyEu5gu5pr/PaNJO6de H2/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=WTexbsaQUmwHmFUTbiBKGoaEf4nJ/F2LOU2SkItRSw8=; b=VchvTuB0YRSDxZKcl2/YP9qu7Rtcb8wZ3fIvv1Xs+ldFOwerYPX9jq965Jh2CB6zfv inbSsWXfECCAzNfA516haLTspXrDv+sG7Q54+eq196GU90lk5I4S0sKukPnMsexhwmO1 WY37+xBBapVndsCcvr/xxanh/JhAhvnvQoWStNO3oK/aDFny6tmd/5pBRpdCwqds6FY5 PZQc7f8KhiSqiv9zz0uoLi2hDvcHuBLFM7vpEjMrbMIDo7CnWzN1C7tKR4Ag97CjIHUD 4ICtbzYLyO1iDIlwf2WWDtqY+FgXYboQCP70OBGIroi6frGNAMTDDGhjMFOKKMU/9UW9 mIzg== X-Gm-Message-State: AOAM533LVz7SHjSceKy+u8CDkxwhAbxPSBU40ndk5uU9PIIFhOgMda7J ln88H8IaTxCCWSoqQUIoJiToxwg747c= X-Google-Smtp-Source: ABdhPJyO4Bxf83g95/kKBzjQBtoOGkH0s81/xrG7VNFoXuDxfpHp/f1AduwQyzNe6ROL1ri/C/cCrQ== X-Received: by 2002:a1c:ddc6:: with SMTP id u189mr5099702wmg.171.1617123756080; Tue, 30 Mar 2021 10:02:36 -0700 (PDT) Received: from ZALANDO-31298 (p200300e9772701655d2ddb1e554abc2b.dip0.t-ipconnect.de. [2003:e9:7727:165:5d2d:db1e:554a:bc2b]) by smtp.gmail.com with ESMTPSA id m132sm4623890wmf.45.2021.03.30.10.02.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Mar 2021 10:02:35 -0700 (PDT) From: Dario Gjorgjevski To: bug-gnu-emacs@gnu.org Subject: [PATCH] Do not search the global keymap in project--keymap-prompt Date: Tue, 30 Mar 2021 19:02:34 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=dario.gjorgjevski@gmail.com; helo=mail-wm1-x32a.google.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Hi, project--keymap-prompt searches project-prefix-map *plus* the global keymap when constructing the prompt for project-switch-command. This can result in weird behavior; for example, (global-set-key (kbd "M-s r") 'rgrep) (require 'project) (define-key project-prefix-map (kbd "") 'rgrep) (push '(rgrep "rgrep") project-switch-commands) might (or will?) cause project-switch-project to display "[M-s r] rgrep" instead of the expected "[] rgrep". The attached patch fixes the issue as per the documentation of `where-is-internal'. Best regards, Dario --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Do-not-search-the-global-keymap-in-project-keymap-pr.patch Content-Description: Do not search the global keymap in project--keymap-prompt >From 6e63d66b85d702abc72a32bcbb4d4f00fd6e2a21 Mon Sep 17 00:00:00 2001 From: Dario Gjorgjevski Date: Tue, 30 Mar 2021 18:50:23 +0200 Subject: [PATCH] Do not search the global keymap in project--keymap-prompt * lisp/progmodes/project.el: (project--keymap-prompt) Pass project--keymap-prompt as a list to where-is-internal so that the global keymap is not searched at all. --- lisp/progmodes/project.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 4101962..e0d5412 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1321,7 +1321,7 @@ are legal even if they aren't listed in the dispatch menu." key tmp))) (let ((key (if key (vector key) - (where-is-internal cmd project-prefix-map t)))) + (where-is-internal cmd (list project-prefix-map) t)))) (format "[%s] %s" (propertize (key-description key) 'face 'bold) label))) -- 2.31.0 --=-=-= Content-Type: text/plain -- $ keyserver=hkps://hkps.pool.sks-keyservers.net $ keyid=744A4F0B4F1C9371 $ gpg --keyserver $keyserver --search-keys $keyid --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 05 12:15:46 2021 Received: (at 47501) by debbugs.gnu.org; 5 Apr 2021 16:15:47 +0000 Received: from localhost ([127.0.0.1]:38456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTRtC-00013q-HJ for submit@debbugs.gnu.org; Mon, 05 Apr 2021 12:15:46 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTRtA-0000x0-QT for 47501@debbugs.gnu.org; Mon, 05 Apr 2021 12:15:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=26Cqd04NEGJ5zMxa0Llc8WZOWcBY1c/1HC1mfzA55VA=; b=L5i2AIXi5OmZz7wXG/J+slHaRG tPDZR+Vc6V8Q53JEqb+wd0NC7tUikiszZ85vV0Cypc2Rf29/NJVo5OweA53DcvOTDqzNlRbr+vNKX mlIMZF2cbO1bMVVCCUiM4/NytZLV+23lrL2wJ8rP/geLtP8CKIgu/4NiinouLGOktsC8=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTRt2-0006rL-Ty; Mon, 05 Apr 2021 18:15:39 +0200 From: Lars Ingebrigtsen To: Dario Gjorgjevski Subject: Re: bug#47501: [PATCH] Do not search the global keymap in project--keymap-prompt References: X-Now-Playing: Yukihiro Takahashi's _What Me Worry?_: "All You've Got To Do" Date: Mon, 05 Apr 2021 18:15:36 +0200 In-Reply-To: (Dario Gjorgjevski's message of "Tue, 30 Mar 2021 19:02:34 +0200") Message-ID: <87eefod7x3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dario Gjorgjevski writes: > The attached patch fixes the issue as per the documentation of > `where-is-internal'. Makes sense to me; applied to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47501 Cc: 47501@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dario Gjorgjevski writes: > The attached patch fixes the issue as per the documentation of > `where-is-internal'. Makes sense to me; applied to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 05 12:15:51 2021 Received: (at control) by debbugs.gnu.org; 5 Apr 2021 16:15:51 +0000 Received: from localhost ([127.0.0.1]:38459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTRtG-00018D-TX for submit@debbugs.gnu.org; Mon, 05 Apr 2021 12:15:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTRtF-00011A-4y for control@debbugs.gnu.org; Mon, 05 Apr 2021 12:15:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=t5C8ePkWgaVnADq5ehhXyNEm5dXxBytGcn9i88ieWPM=; b=JuJRZe1MEFIXA3yKYlCDJFCQT+ hlg8/PXTcykz+lIh+4k2eSU6aClkyyiZ9lsQIHLnLKbbEEZAgQcAry+WK2d3PCZhJF3zhQTamCKME scl8NIvY11/gUtq92rjxYHRqz7oyOivrw5RwV4VPyn6wsnlsnBGEpkuOKx0jPq0I3/8w=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTRt7-0006rU-N7 for control@debbugs.gnu.org; Mon, 05 Apr 2021 18:15:43 +0200 Date: Mon, 05 Apr 2021 18:15:41 +0200 Message-Id: <87czv8d7wy.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #47501 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 47501 fixed close 47501 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 47501 fixed close 47501 28.1 quit From unknown Wed Jun 18 23:15:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 04 May 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator