From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#70577: [PATCH] New command other-project-prefix Date: Fri, 26 Apr 2024 06:01:35 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36684"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: juri linkov To: 70577@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 26 05:03:38 2024 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 1s0Bs9-0009HK-Ld for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Apr 2024 05:03:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0Brl-000665-RL; Thu, 25 Apr 2024 23:03:13 -0400 Original-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 ) id 1s0Brk-00065q-N0 for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2024 23:03:12 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0Brk-0000pj-FH for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2024 23:03:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s0Brz-0005E5-OV; Thu, 25 Apr 2024 23:03:27 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: juri@linkov.net, bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Apr 2024 03:03:21 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: juri linkov Original-Received: via spool by submit@debbugs.gnu.org id=B.171410055319290 (code B ref -1); Fri, 26 Apr 2024 03:03:21 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Apr 2024 03:02:33 +0000 Original-Received: from localhost ([127.0.0.1]:33526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0Bqt-0004yd-Ah for submit@debbugs.gnu.org; Thu, 25 Apr 2024 23:02:29 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:56156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0Bqj-0004v7-50 for submit@debbugs.gnu.org; Thu, 25 Apr 2024 23:02:14 -0400 Original-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 ) id 1s0BqK-0005yM-8m for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2024 23:01:44 -0400 Original-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 ) id 1s0BqH-0000gO-T2 for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2024 23:01:44 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 084C9180008C for ; Thu, 25 Apr 2024 23:01:38 -0400 (EDT) Original-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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudelkedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtjeertd dtvdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthho vhdruggvvheqnecuggftrfgrthhtvghrnhepgefgjedvueekkeduffekgedutefhkeevgf egkeehgeduffdulefhfefhteetledvnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihse hguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 25 Apr 2024 23:01:37 -0400 (EDT) Content-Language: en-US Received-SPF: pass client-ip=64.147.123.154; envelope-from=dmitry@gutov.dev; 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-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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283962 Archived-At: X-Debbugs-Cc: Juri Linkov 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.