From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: sbaugh@catern.com Newsgroups: gmane.emacs.bugs Subject: bug#66260: 29.0.92; project.el should support copying a file path relative to the project root Date: Tue, 03 Oct 2023 20:49:33 +0000 (UTC) Message-ID: <87jzs3zb1f.fsf@catern.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28481"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 66260@debbugs.gnu.org, Juri Linkov To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 03 22:49:55 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 1qnmL3-000746-9p for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Oct 2023 22:49:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qnmKx-0005tt-JB; Tue, 03 Oct 2023 16:49:47 -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 1qnmKv-0005tc-IV for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 16:49: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 1qnmKv-00058x-18 for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 16:49:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qnmLC-0005c4-Bo for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 16:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: sbaugh@catern.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Oct 2023 20:50:02 +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.169636620021562 (code B ref 66260); Tue, 03 Oct 2023 20:50:02 +0000 Original-Received: (at 66260) by debbugs.gnu.org; 3 Oct 2023 20:50:00 +0000 Original-Received: from localhost ([127.0.0.1]:40797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnmL9-0005bh-J8 for submit@debbugs.gnu.org; Tue, 03 Oct 2023 16:49:59 -0400 Original-Received: from s.wfbtzhsw.outbound-mail.sendgrid.net ([159.183.224.105]:22492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnmL7-0005bS-JC for 66260@debbugs.gnu.org; Tue, 03 Oct 2023 16:49:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=Jd8iT4soTEL+SEB91KfVIzopd5r+/6adVuWPtpVi4YA=; b=ekH53e0INgJqYlK/SW+TGVIA1GhJuZLt4Du+Kw46qMf+Jr6xCU7w8sAgJlhTvj5FQWrJ diNyziGwYpKpvLN0STHwPR0OgWbAO4wg8pEj3yg6i5fQpiHASZL87xkjWHM6P0boG/BzsO 7Dfat1OYhRE+rrEZluGSCqE5KVbg4WvieVc7AeB250TyklKb5p29o6XLDPzpIN2VA4DtPF /jDqVPI/T7tMZM9HonJYF/9/b0steoVg0Z4/7nTyWdCmKY6v0MHKYnKmfgbdDlbPiNZKjN jgQK6XQtHXF6N9dGOv82G/KYbKD0qCViopur3hNdzMrEc174c0fa63OfM8yXsBrQ== Original-Received: by filterdrecv-84b96456cb-b9h64 with SMTP id filterdrecv-84b96456cb-b9h64-1-651C7E5D-7 2023-10-03 20:49:33.155215738 +0000 UTC m=+5541998.491284502 Original-Received: from earth.catern.com (unknown) by geopod-ismtpd-33 (SG) with ESMTP id LoUPmdJRRVi80YiOHxzJcA Tue, 03 Oct 2023 20:49:32.873 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=::1; helo=localhost; envelope-from=sbaugh@catern.com; receiver=gutov.dev Original-Received: from localhost (localhost [IPv6:::1]) by earth.catern.com (Postfix) with ESMTPSA id 4D32862ED2; Tue, 3 Oct 2023 16:49:32 -0400 (EDT) In-Reply-To: <6a454175-c709-3473-fdb4-e4be39e2d8fe@gutov.dev> (Dmitry Gutov's message of "Mon, 2 Oct 2023 14:46:43 +0300") X-SG-EID: ZgbRq7gjGrt0q/Pjvxk7wM0yQFRdOkTJAtEbkjCkHbJiOgWFv+kkAT2s0poKXS1pkDbpz7/uEtPLcXezycBZamV2vX01PVAY7zsEk8+lZ0m5C8O1QYSXDXaKEvpciGeFxO9H7z/n12dUwMBsdEhsYlRravL1SJe0/sOUdOB8hMCFTZnuKwjnLf9w+MWpnVXu3z1myfJSyoIqYzRsTa/dKw== X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== 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:271738 Archived-At: 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. 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. 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.