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#66260: 29.0.92; project.el should support copying a file path relative to the project root Date: Wed, 4 Oct 2023 00:17:34 +0300 Message-ID: References: <875y3t2827.fsf@catern.com> <15010505-0b2f-5dc3-e16a-228183779d43@gutov.dev> <834jj98t3b.fsf@gnu.org> <865y3pqzoa.fsf@mail.linkov.net> <6a454175-c709-3473-fdb4-e4be39e2d8fe@gutov.dev> <87jzs3zb1f.fsf@catern.com> 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="3129"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Eli Zaretskii , 66260@debbugs.gnu.org, Juri Linkov To: sbaugh@catern.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 03 23:19:00 2023 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 1qnmnD-0000PA-71 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Oct 2023 23:19:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qnmn0-0000Fp-NJ; Tue, 03 Oct 2023 17:18:46 -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 1qnmmy-00009N-SL for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 17:18:45 -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 1qnmmy-0002rD-KA for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 17:18:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qnmnF-0006NS-Jc for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 17:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Oct 2023 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66260 X-GNU-PR-Package: emacs Original-Received: via spool by 66260-submit@debbugs.gnu.org id=B66260.169636788324436 (code B ref 66260); Tue, 03 Oct 2023 21:19:01 +0000 Original-Received: (at 66260) by debbugs.gnu.org; 3 Oct 2023 21:18:03 +0000 Original-Received: from localhost ([127.0.0.1]:40820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnmmI-0006Lu-Cj for submit@debbugs.gnu.org; Tue, 03 Oct 2023 17:18:02 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnmmG-0006LX-51 for 66260@debbugs.gnu.org; Tue, 03 Oct 2023 17:18:01 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 990F75C02E3; Tue, 3 Oct 2023 17:17:37 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 03 Oct 2023 17:17:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1696367857; x=1696454257; bh=QgS+U6qGAKo6nn2AF4zkjQ7WWpUlhPfE5HM wL22mK8g=; b=nRK4F69C2Pqq56kQa+BLW3fULH2VAYAsAAxJrfnn1heHCiC7wYI fb72xk7E8woY+mn10ofj0Wk+0MZ71a33DgUwtEKl2xnXjmWWnQQfc1EggIJERyeT jlpY1wNnuWVmpcLDY3R1AHRHtS9NE3UJJ85np0zURj40x893qsN1y8afUMqBSaBw 36cTMdSC+o40ES29Pd7crtJ8cuhbNFsBMrAvCtDu6Ne73tZ2kC1fG+0HY+vRLj2q rrm1+1kZjUwRY9kw7nioJj5M0sHTJjxJoaiiTX+ZagAYXTlOp8DIaHcm4EoC7TtS L/VnShSWrHhp4VYoV5Z0G4OnaEiC1gt9xhA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1696367857; x=1696454257; bh=QgS+U6qGAKo6nn2AF4zkjQ7WWpUlhPfE5HM wL22mK8g=; b=ShuEhH5ND/GSB/ZgYjZc7xpQ9OpaiUTCyjptjlykGVeGqX6YVja 6xfGTgxix7JyIiMXrjsoOYBF6+VaMHjd+kwFVjVN7krK3QSaawq8VoXX4zhXYafN rd+Xh0cWYW3GfiHn5LhXM9rMvsF+XbjlLMQeMBZiK3aJKsnxfZFeZmZqnlID4CyH sKxb7a0w5aQ1MST8ZmVsxyY6cLPmlMkjJiq8ShIHwp2HFJDaHsXHXzX9CVEM0W+e BMzAg/4OoCyb8LAx/xsAsGJ/5+rWdg5iTwH/6aQRoBoESIHcSNglgJuDQQhrRo7Z yOXLi8zgNRNapBTcD9c7yl+S/S/k6R2Zb7Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeejgdeilecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Oct 2023 17:17:36 -0400 (EDT) Content-Language: en-US In-Reply-To: <87jzs3zb1f.fsf@catern.com> 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:271740 Archived-At: On 03/10/2023 23:49, sbaugh@catern.com wrote: > Dmitry Gutov writes: >> On 02/10/2023 09:53, Juri Linkov wrote: >>>>> 'C-x p w' does make sense as such, but it would be unfortunate if we >>>>> find a more important command later which fits the 'w' mnemonics. Maybe >>>>> 'C-x p W' would be a more conservative choice. >>>> Or even "C-x p C-w". >>> Or 'C-x p C-c' like 'c' in Info-mode-map for Info-copy-current-node-name. >> >> That one was probably made from the CUA user's standpoint. >> >> I sympathize, but even Info-mode-map has a 'w' binding (thanks to you, >> looks like). >> >> So C-w or M-w seem like a better choice for the default bindings. > > I don't think C-x p w is quite necessary. But even if it was, I think > there's a good other candidate for what it should do: copy the project > root. That would also be pretty useful. Not necessary, but if more than one user likes that, I think we can dedicate the C-w binding for it. > For example, I often move a patch between two projects by first > rendering it in one project (with C-x v D), entering M-x cd > other/project/root in the *vc-diff* buffer, and then applying the diff. > If there was a quick way to get other/project/root, it would speed this > up. Depending on how often you do either thing, 'C-x p C-w' could copy the relative file name, and 'c-u C-x p C-w' could copy the root. Or the latter action could be moved to 'C-x p C-S-w', for example (by analogy with C-x v D'. > Sometimes I also run shell commands which need the project root. > > I can always do C-x p D then copy the file name of that buffer, but > that's about as painful as C-x C-j C-u C-u w, so if C-x C-j C-u C-u w is > too cumbersome then it seems to me that so is C-x p D and copy.