GNU bug report logs - #70577
[PATCH] New command other-project-prefix

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Dmitry Gutov <dmitry@HIDDEN>; Keywords: patch; dated Fri, 26 Apr 2024 03:03:21 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 70577 <at> debbugs.gnu.org:


Received: (at 70577) by debbugs.gnu.org; 26 Apr 2024 06:12:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 26 02:12:15 2024
Received: from localhost ([127.0.0.1]:33632 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0Eod-0006cz-1a
	for submit <at> debbugs.gnu.org; Fri, 26 Apr 2024 02:12:14 -0400
Received: from relay2-d.mail.gandi.net ([217.70.183.194]:43029)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1s0EoP-0006ZP-Hy
 for 70577 <at> debbugs.gnu.org; Fri, 26 Apr 2024 02:12:02 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 2C58740003;
 Fri, 26 Apr 2024 06:11:31 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#70577: [PATCH] New command other-project-prefix
In-Reply-To: <d29607f5-11e3-4a3a-a29b-d74967234a35@HIDDEN> (Dmitry Gutov's
 message of "Fri, 26 Apr 2024 06:01:35 +0300")
Organization: LINKOV.NET
References: <d29607f5-11e3-4a3a-a29b-d74967234a35@HIDDEN>
Date: Fri, 26 Apr 2024 09:09:35 +0300
Message-ID: <86le501ykg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 70577
Cc: 70577 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> This is based on Juri's patch in
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63648#161, but the idea is
> more focused: to switch the order of events, and first read the full key
> sequence, and then prompt for the project and the command arguments. Like
> we also discussed in the past.

I'm not a fan of reading the full key sequence bypassing the event loop.

> And to try to reuse the even loop in the more natural way. Unfortunately,
> 'C-h' doesn't work here (when called in the middle of the sequence) - I'm
> not sure why. The rest of the behavior seems to work as expected.

'C-h' can't work since 'C-x p p' is bound to a command.

> So this can be a new alternative for the 'C-x p p' binding as well.

I guess there could be 2 new alternative options for 'project-switch-commands':

1. read the full key sequence
2. use the event loop with set-transient-map

Although I'm already completely content with the existing option
'project-prefix-or-any-command' of 'project-switch-commands'.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70577; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Apr 2024 03:02:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 25 23:02:30 2024
Received: from localhost ([127.0.0.1]:33526 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s0Bqt-0004yd-Ah
	for submit <at> debbugs.gnu.org; Thu, 25 Apr 2024 23:02:29 -0400
Received: from lists.gnu.org ([2001:470:142::17]:56156)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1s0Bqj-0004v7-50
 for submit <at> debbugs.gnu.org; Thu, 25 Apr 2024 23:02:14 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dmitry@HIDDEN>) id 1s0BqK-0005yM-8m
 for bug-gnu-emacs@HIDDEN; Thu, 25 Apr 2024 23:01:44 -0400
Received: from wfhigh3-smtp.messagingengine.com ([64.147.123.154])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dmitry@HIDDEN>) id 1s0BqH-0000gO-T2
 for bug-gnu-emacs@HIDDEN; Thu, 25 Apr 2024 23:01:44 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailfhigh.west.internal (Postfix) with ESMTP id 084C9180008C
 for <bug-gnu-emacs@HIDDEN>; Thu, 25 Apr 2024 23:01:38 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Thu, 25 Apr 2024 23:01:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :content-transfer-encoding:content-type:content-type:date:date
 :from:from:in-reply-to:message-id:mime-version:reply-to:subject
 :subject:to:to; s=fm2; t=1714100498; x=1714186898; bh=YwGfFOxNUi
 WdBhDvSUIvvpjAHXVtZCPdfXQjcKY/BCQ=; b=r2Ond3LAroRsR/GQcseSg0xRsP
 G7VAzsmTCZ4uY9fWEEC2uwGiyTsBfkohaiDahNmd8Qg70C3NI70juGcsD9G30QWT
 tjzFvz0VEbB7ay+WYJoxfzWH7JAZTcei3GjkHA/2h0uFjnqIMwqk19b4U+DNomxZ
 +Vp5RZGHnBER27VS+br+xNaiXIgMnwa5i+RCZB1WI1G+rMAk84eWS+pE0YUTyn5q
 tI2pDDJutnCRGdjA11H28AXPZCcwFj9Ggy0bTqW6oR78n6kUeatYdN8XYIsVjFzZ
 4SPnptfyO06BXIUCv9GV4x4KFw07Fcjd35a/mLtLaglVPkNaZ8KREIFvuqgg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:message-id:mime-version:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; t=1714100498; x=1714186898; bh=YwGfFOxNUiWdBhDvSUIvvpjAHXVt
 ZCPdfXQjcKY/BCQ=; b=I5t9TvTPvCU4dpurBfHyt/q/ACdEfM4W6DKScDG3EK8N
 j6MpPg3zLncCtz2NsN7F54e4ts+6aPghiDzLNR+EYJIZu70G/4YbSTj2FlH+7r2W
 Vq4P/3Pv6PtmCDtoTRx5bGUnEkwS9F29pzIWsaLSC2xV+ykJsVifxreLxUBqDGvX
 awaxrhvvHWaAltpSFjjDVeWIDfCAialVZWtz1FmCcsgAoqgTRQNzFKtKM0GjDdCB
 yqXJbuvx7z2C86KvlIi8LP8Fl9ZZTba80wQFfKRoAiXCGvYUKxDWu6boilMRRdb1
 SOmLZW6zi6Soix+sQQGeBXClqnIhtH4w+9Un3Pp22g==
X-ME-Sender: <xms:EhkrZuzQyr2D-vIAzo6Tt3Tjgu1bz6t8XdZPzMnWvmdvgrgdhWQi5w>
 <xme:EhkrZqQYlZBFK9JRhJJHlbz3VqkHR-4pZ-lJAxD-nnYjTrOBxywPkhmY0ly4JEMlr
 8sA2RcQVIFVK7UNH3c>
X-ME-Received: <xmr:EhkrZgUuL2pt_9Xa-2PjfhT8mP8Z4m3F4-dZM3vwNnec9jA5s0ig4IWehXy1Z8lzKPke>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudelkedgiedvucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtjeertd
 dtvdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthho
 vhdruggvvheqnecuggftrfgrthhtvghrnhepgefgjedvueekkeduffekgedutefhkeevgf
 egkeehgeduffdulefhfefhteetledvnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehl
 uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihse
 hguhhtohhvrdguvghv
X-ME-Proxy: <xmx:EhkrZkiC7qBNuFSAuOMotS7oIG2utqJmLxkxKAGdqoy0NC7RXZGqMA>
 <xmx:EhkrZgDtPZVw6msMAxdGNs4OdFbZ07kH4HAmUBrtomJu59Ir86sFew>
 <xmx:EhkrZlKFMisLgj9_rHtYQom3-M7LoU7qAktf2ntPyrGCdHco1sh1jA>
 <xmx:EhkrZnABgD4RLLHOqphV_wtka1LKN_AlWyqZpmfHrOgN-oARRQSBSQ>
 <xmx:EhkrZp6OaIk5L57SoSoATWR936LXkkAuozj9OPFLSg1S95IJ60QKEsgR>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Thu, 25 Apr 2024 23:01:37 -0400 (EDT)
Message-ID: <d29607f5-11e3-4a3a-a29b-d74967234a35@HIDDEN>
Date: Fri, 26 Apr 2024 06:01:35 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: bug-gnu-emacs@HIDDEN
From: Dmitry Gutov <dmitry@HIDDEN>
Subject: [PATCH] New command other-project-prefix
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=64.147.123.154; envelope-from=dmitry@HIDDEN;
 helo=wfhigh3-smtp.messagingengine.com
X-Spam_score_int: -26
X-Spam_score: -2.7
X-Spam_bar: --
X-Spam_report: (-2.7 / 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,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.4 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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
 the administrator of that system for details.
 Content preview:  X-Debbugs-Cc: Juri Linkov <juri@HIDDEN> This is based
 on Juri's patch in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63648#161,
 but the idea is more focused: to switch the order of events, and first read
 the full key sequence, and then pr [...] 
 Content analysis details:   (1.4 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL
 blocklist [URIs: gutov.dev]
 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL
 blocklist [URIs: gutov.dev]
 0.7 SPF_NEUTRAL            SPF: sender does not match SPF record (neutral)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.4 (/)

X-Debbugs-Cc: Juri Linkov <juri@HIDDEN>

This is based on Juri's patch in 
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63648#161, but the idea is 
more focused: to switch the order of events, and first read the full key 
sequence, and then prompt for the project and the command arguments. 
Like we also discussed in the past.

And to try to reuse the even loop in the more natural way. 
Unfortunately, 'C-h' doesn't work here (when called in the middle of the 
sequence) - I'm not sure why. The rest of the behavior seems to work as 
expected.

So this can be a new alternative for the 'C-x p p' binding as well.

Regarding the the use of advice, I didn't find a better way to plug 
(funcall project-prompter) this late. Too complex for pre-command-hook.

Thoughts welcome.




Acknowledgement sent to Dmitry Gutov <dmitry@HIDDEN>:
New bug report received and forwarded. Copy sent to juri@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to juri@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#70577; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 26 Apr 2024 06:15:11 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.