X-Loop: help-debbugs@HIDDEN Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names Resent-From: Dmitry Gutov <dmitry@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 06 Mar 2025 22:40:02 +0000 Resent-Message-ID: <handler.76792.B.17413007598020 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 76792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 76792 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.17413007598020 (code B ref -1); Thu, 06 Mar 2025 22:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Mar 2025 22:39:19 +0000 Received: from localhost ([127.0.0.1]:45780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqJs6-00025H-Li for submit <at> debbugs.gnu.org; Thu, 06 Mar 2025 17:39:19 -0500 Received: from lists.gnu.org ([2001:470:142::17]:39720) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1tqJs3-000253-Vy for submit <at> debbugs.gnu.org; Thu, 06 Mar 2025 17:39:16 -0500 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 1tqJry-0001BG-HX for bug-gnu-emacs@HIDDEN; Thu, 06 Mar 2025 17:39:10 -0500 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <dmitry@HIDDEN>) id 1tqJrw-00032F-NB for bug-gnu-emacs@HIDDEN; Thu, 06 Mar 2025 17:39:10 -0500 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id 1529F11400FB for <bug-gnu-emacs@HIDDEN>; Thu, 6 Mar 2025 17:39:06 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Thu, 06 Mar 2025 17:39:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1741300746; x=1741387146; bh=XvyZiTBUONPrjQlu7q8NQz0+SZfzy0TU lUwL1QE6Ks0=; b=ufffXVt/l7RUZT8rW2NWSr/a1amueTqJrt8/P4an+XHBO81k Az0TAK/IPB25zbGWFixRRTqwofV+U2sO1wViwmDBf3vtamBeXeo4kOG+m10m9MMR K9j3zN4V7gsMfekdnkCzY/RrZjohOhNZSZ9+f0Ud5utE6W3CtlrCzulYES15AHeP DLGBnDK2beUhMAQTEdxp3nBoOaHlpU1yeDJH9cr0+fLPsioX5Jo6KK9tYElKR1vF 0PmzthLKDBVL9Abv7ZRyOZ8EToqXOVvjpuMU2uizunIox7ccAAy5WBzmUEY8wMwX BEQciKY7jZPFQEOpGUCvn24LY3f7MK/rb+wH1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741300746; x= 1741387146; bh=XvyZiTBUONPrjQlu7q8NQz0+SZfzy0TUlUwL1QE6Ks0=; b=g 6w1dcK2QmVdMBlk4KcWCUqHuqHQbTP+OrQAGGxOXsc1WxOnUxqb959dK1GHdcfO2 P+bkIAwaBHoPet9/6tjyD69V9KbxL6kq5wiUNNfld2d2eeq/UO0n77aO3f83IuA7 4syAEg/K56Smipqos6wfBR2XxBTfV+d7ILGObN7b4cgRB7cQeNN8a283A1vF5v6N Rl6yCh0I23H9shiAcXoEAeyTE/m27i+NpWBtlBYEAv+Aqg1eiidtVlfvg0Vaba24 UgMQmU4FAYRAxV26uZoqmxD/Sxh1Rj4zRbbNWApe2oRTt7YBofyUd5Yrk1lf0xyP yqijtZcgVR7cvWbXDfAJg== X-ME-Sender: <xms:CSTKZzHhM_ED1W7rXx_-mifRLBF1A1Oe-Ux0m15liXCimrDXF4YYyA> <xme:CSTKZwUEi66W_a5vZyBSisccDLZpdLqLE0IUoZAX1HHNWV5fdDyzivtqEyS_ifcZC zm66snka_BuWd9nOu4> X-ME-Received: <xmr:CSTKZ1KMyTinB_A13eskPpq_KibTqKQo7N6pRCitses3ZizycF_9XiU7zeFnaUuiAz6B> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdekleekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpegtkf ffgggfvffhufesmhdtreertddvjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceo ughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpeehvdffheeige fftdelgfeugfelgfduueehfeeljeduueekieetiefhhefhheeuheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovh druggvvhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-ME-Proxy: <xmx:CSTKZxHXXf6cJtVVIsfsJVLKuK7CsvtjkgxHJS7w9j7aBjC4OCl_rg> <xmx:CSTKZ5WcHdvLdNSFAuU3bWCxzchOAy8lFtBbPTnJG0zLtjKZZ1Nl1A> <xmx:CSTKZ8MljPY4ewDuCLlJwJxG0eV_oVbKjesTLHoYRb1fFHDxLZcYLg> <xmx:CSTKZ43X-j9v-WXAwB5KbqTGtDz8bRwcJm15nZwXJggnK8T0Xq_XWw> <xmx:CiTKZ4dTeNKYUmQycgZJYN_tJsjabH1Ex6Fdbxy5qt3x6YrBV4bz8FFG> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <bug-gnu-emacs@HIDDEN>; Thu, 6 Mar 2025 17:39:05 -0500 (EST) Content-Type: multipart/mixed; boundary="------------ui100Akxi83diI7SKJ0BSCqK" Message-ID: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> Date: Fri, 7 Mar 2025 00:39:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Dmitry Gutov <dmitry@HIDDEN> Received-SPF: pass client-ip=103.168.172.159; envelope-from=dmitry@HIDDEN; helo=fhigh-a8-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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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: Here's an implementation for that idea, together with .texi and NEWS changes. Comments welcome! diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 07142e71713..5fc0c3b4a52 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi @@ -1860,8 +1860,9 @@ Misc Dired [...] 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.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.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: 0.4 (/) This is a multi-part message in MIME format. --------------ui100Akxi83diI7SKJ0BSCqK Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Here's an implementation for that idea, together with .texi and NEWS changes. Comments welcome! --------------ui100Akxi83diI7SKJ0BSCqK Content-Type: text/x-patch; charset=UTF-8; name="dired-copy-filename-as-kill-project-relative.diff" Content-Disposition: attachment; filename="dired-copy-filename-as-kill-project-relative.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2RvYy9lbWFjcy9kaXJlZC50ZXhpIGIvZG9jL2VtYWNzL2RpcmVkLnRl eGkKaW5kZXggMDcxNDJlNzE3MTMuLjVmYzBjM2I0YTUyIDEwMDY0NAotLS0gYS9kb2MvZW1h Y3MvZGlyZWQudGV4aQorKysgYi9kb2MvZW1hY3MvZGlyZWQudGV4aQpAQCAtMTg2MCw4ICsx ODYwLDkgQEAgTWlzYyBEaXJlZCBGZWF0dXJlcwogeW91IGhhZCBraWxsZWQgdGhlbSB3aXRo IEBrYmR7Qy13fS4gIFRoZSBuYW1lcyBhcmUgc2VwYXJhdGVkIGJ5IGEKIHNwYWNlLgogCi0g IFdpdGggYSB6ZXJvIHByZWZpeCBhcmd1bWVudCwgdGhpcyB1c2VzIHRoZSBhYnNvbHV0ZSBm aWxlIG5hbWUgb2YKLWVhY2ggbWFya2VkIGZpbGUuICBXaXRoIGp1c3QgQGtiZHtDLXV9IGFz IHRoZSBwcmVmaXggYXJndW1lbnQsIGl0IHVzZXMKKyAgV2l0aCBhIHplcm8gcHJlZml4IGFy Z3VtZW50LCB0aGlzIHVzZXMgdGhlIGFic29sdXRlIGZpbGUgbmFtZSBvZiBlYWNoCittYXJr ZWQgZmlsZS4gIFdpdGggcHJlZml4IHZhbHVlLCBpdCB1c2VzIG5hbWVzIHJlbGF0aXZlIHRv IHRoZSBjdXJyZW50Citwcm9qZWN0IHJvb3QuICBXaXRoIGp1c3QgQGtiZHtDLXV9IGFzIHRo ZSBwcmVmaXggYXJndW1lbnQsIGl0IHVzZXMKIGZpbGUgbmFtZXMgcmVsYXRpdmUgdG8gdGhl IERpcmVkIGJ1ZmZlcidzIGRlZmF1bHQgZGlyZWN0b3J5LiAgKFRoaXMKIGNhbiBzdGlsbCBj b250YWluIHNsYXNoZXMgaWYgaW4gYSBzdWJkaXJlY3RvcnkuKSAgQXMgYSBzcGVjaWFsIGNh c2UsCiBpZiBwb2ludCBpcyBvbiBhIGRpcmVjdG9yeSBoZWFkZXIgbGluZSwgQGtiZHt3fSBn aXZlcyB5b3UgdGhlIGFic29sdXRlCmRpZmYgLS1naXQgYS9ldGMvTkVXUyBiL2V0Yy9ORVdT CmluZGV4IDc4YTI0MWFiZmQzLi4wYmFlOGY0ZmUzNSAxMDA2NDQKLS0tIGEvZXRjL05FV1MK KysrIGIvZXRjL05FV1MKQEAgLTExMzYsNiArMTEzNiwxMCBAQCBXaXRob3V0ICdkaXJlZC1o aWRlLWRldGFpbHMtaGlkZS1hYnNvbHV0ZS1sb2NhdGlvbic6CiBXaGVuICdkaXJlZC1tYWtl LWRpcmVjdG9yeS1jbGlja2FibGUnIGlzIG5vbi1uaWwsIGNsaWNraW5nIG9uIHRoZSBiYXNl CiBuYW1lIG9mIHRoZSBkaXJlY3Rvcnkgbm93IHJldmVydHMgdGhlIERpcmVkIGJ1ZmZlci4K IAorKioqICdkaXJlZC1jb3B5LWZpbGVuYW1lLWFzLWtpbGwnIHN1cHBvcnRzIHByb2plY3Qt cmVsYXRpdmUgbmFtZXMuCitXaXRoIGEgbmV3IHZhbHVlIG9mIHRoZSBwcmVmaXggYXJndW1l bnQgKDEpLCB0aGlzIGNvbW1hbmQgY29waWVzIGZpbGUKK25hbWVzIHJlbGF0aXZlIHRvIHRo ZSByb290IGRpcmVjdG9yeSBvZiB0aGUgY3VycmVudCBwcm9qZWN0LgorCiAqKiBHcmVwCiAK ICsrKwpkaWZmIC0tZ2l0IGEvbGlzcC9kaXJlZC5lbCBiL2xpc3AvZGlyZWQuZWwKaW5kZXgg YWE3NjZiNjE3MGUuLjlmOTJlMWNiNWY4IDEwMDY0NAotLS0gYS9saXNwL2RpcmVkLmVsCisr KyBiL2xpc3AvZGlyZWQuZWwKQEAgLTM0NzcsNiArMzQ3Nyw3IEBAIGRpcmVkLWNvcHktZmls ZW5hbWUtYXMta2lsbAogcXVvdGluZyBpcyBkb25lLikKIAogV2l0aCBhIHplcm8gcHJlZml4 IGFyZywgdXNlIHRoZSBhYnNvbHV0ZSBmaWxlIG5hbWUgb2YgZWFjaCBtYXJrZWQgZmlsZS4K K1dpdGggYSBwcmVmaXggdmFsdWUgMSwgdXNlIHRoZSBuYW1lcyByZWxhdGl2ZSB0byB0aGUg Y3VycmVudCBwcm9qZWN0IHJvb3QuCiBXaXRoIFxcW3VuaXZlcnNhbC1hcmd1bWVudF0sIHVz ZSB0aGUgZmlsZSBuYW1lIHJlbGF0aXZlIHRvIHRoZSBEaXJlZCBidWZmZXIncwogYGRlZmF1 bHQtZGlyZWN0b3J5Jy4gIChUaGlzIHN0aWxsIG1heSBjb250YWluIHNsYXNoZXMgaWYgaW4g YSBzdWJkaXJlY3RvcnkuKQogCkBAIC0zNDg4LDggKzM0ODksMTMgQEAgZGlyZWQtY29weS1m aWxlbmFtZS1hcy1raWxsCiAgIChsZXQqICgoZmlsZXMKICAgICAgICAgICAob3IgKGVuc3Vy ZS1saXN0IChkaXJlZC1nZXQtc3ViZGlyKSkKICAgICAgICAgICAgICAgKGlmIGFyZwotICAg ICAgICAgICAgICAgICAgKGNvbmQgKCh6ZXJvcCAocHJlZml4LW51bWVyaWMtdmFsdWUgYXJn KSkKKyAgICAgICAgICAgICAgICAgIChjb25kICgoZXFsIDAgYXJnKQogICAgICAgICAgICAg ICAgICAgICAgICAgIChkaXJlZC1nZXQtbWFya2VkLWZpbGVzKSkKKyAgICAgICAgICAgICAg ICAgICAgICAgICgoZXFsIDEgYXJnKQorICAgICAgICAgICAgICAgICAgICAgICAgIChsZXQg KChyb290IChwcm9qZWN0LXJvb3QgKHByb2plY3QtY3VycmVudCB0KSkpKQorICAgICAgICAg ICAgICAgICAgICAgICAgICAgKG1hcGNhcgorICAgICAgICAgICAgICAgICAgICAgICAgICAg IChsYW1iZGEgKGZpbGUpIChmaWxlLXJlbGF0aXZlLW5hbWUgZmlsZSByb290KSkKKyAgICAg ICAgICAgICAgICAgICAgICAgICAgICAoZGlyZWQtZ2V0LW1hcmtlZC1maWxlcykpKSkKICAg ICAgICAgICAgICAgICAgICAgICAgICgoY29uc3AgYXJnKQogICAgICAgICAgICAgICAgICAg ICAgICAgIChkaXJlZC1nZXQtbWFya2VkLWZpbGVzIHQpKQogICAgICAgICAgICAgICAgICAg ICAgICAgKHQK --------------ui100Akxi83diI7SKJ0BSCqK--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Dmitry Gutov <dmitry@HIDDEN> Subject: bug#76792: Acknowledgement ([PATCH] dired-copy-filename-as-kill to support project relative names) Message-ID: <handler.76792.B.17413007598020.ack <at> debbugs.gnu.org> References: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> X-Gnu-PR-Message: ack 76792 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 76792 <at> debbugs.gnu.org Date: Thu, 06 Mar 2025 22:40:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 76792 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 76792: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76792 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names Resent-From: Visuwesh <visuweshm@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 07 Mar 2025 05:14:01 +0000 Resent-Message-ID: <handler.76792.B76792.174132441423717 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov <dmitry@HIDDEN> Cc: 76792 <at> debbugs.gnu.org Received: via spool by 76792-submit <at> debbugs.gnu.org id=B76792.174132441423717 (code B ref 76792); Fri, 07 Mar 2025 05:14:01 +0000 Received: (at 76792) by debbugs.gnu.org; 7 Mar 2025 05:13:34 +0000 Received: from localhost ([127.0.0.1]:46398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqQ1e-0006AT-GI for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 00:13:34 -0500 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:57496) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <visuweshm@HIDDEN>) id 1tqQ1c-0006AE-6J for 76792 <at> debbugs.gnu.org; Fri, 07 Mar 2025 00:13:32 -0500 Received: by mail-pj1-x1044.google.com with SMTP id 98e67ed59e1d1-2ff6e91cff5so1883119a91.2 for <76792 <at> debbugs.gnu.org>; Thu, 06 Mar 2025 21:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741324406; x=1741929206; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Igw21eeHSiofroUyxAkiDoUnT3rfYPbxlepe15ZCScY=; b=YsiMJo++aijbvqj8bDRBNqN3n5prz+NowDcscKds9SRS8QlkaOa/ZdQwTfo8aB0tye yRJcN16MA/4Ce24WsS7JbRAwR31m2T4EXeIB6FGSEelY3F0FH7I7I6Q9EOkTXcvTvHYV oL0oZSDCwd3r4CUDYN6E8DGq13XbSJbFuvsBINhu1oTbmZZVhYLUtZAPr6akG7YCIact 2Gu8lghzX+sS0xEzROW0U9+OjIF7Vbvw1HWCNHo/nKDo9HUnQdao+BnwPLv8+4IUrfjD 6VRL0ztyI6p9Kf1EcbBxbvARX7xzHfspJZoBaO6hVMRmvHBcRMwGuebAg8PL53sjCedE Fl3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741324406; x=1741929206; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Igw21eeHSiofroUyxAkiDoUnT3rfYPbxlepe15ZCScY=; b=WXhpeYxf3Cts9MfrD2ZpQnt/zIconIk1fRW1mL2lGxUSfRJ3ITYFR+QLUGje0AF7Ol Ss0WQyNciFZd1N5kcXcbTeKg30tJql+PW88x+x2gDsM/d0rF7MsS129HgaJRPF91Wzzz cZgiLLw/Pg8VUNubBjAr3Uj6j4oS49T0B5Na8UVbz8+vWx15ueF2ztewuQGaXNt5Yt4a TNGxvgjIZ2l/qZkEfgwtoMbRUX59agxKgKC//xNHTM2A8mg1bKhklu1D8J9ENhhCjzdE xNmK+s0uVy7E7YxjKvI0WiXAZG6pjcSRsdnQD8kf3xlr6LY/ikoCF0dbo4fMvoOmSoyQ lRWA== X-Gm-Message-State: AOJu0Yz0Dy4h6qbAeSYUHpeKxJvQAAiZbDM0lokszB32ptjnoN97siJe dutgz/+ya1HLqbhoz3S3obJGX9EY4GfLrs3+hvOQ+k2aWyoLGIBHK+9Ip6oF X-Gm-Gg: ASbGncu95IuE6iad9S7vtIWNnCWunYmvL16uDWmlB81JWnF1WqJCvkxIwHPClOH2ujR xogeLL5rd3uSiN4kyyFTOcQGcKIqmYDbEVsgrHCqUVEYlmmfU5+Dv9ueJ7WmFgirNE8FzWMONrG njDiJ/fltGgVL3mgIMM0dvRQxb9pYf4TfX0aid3lKlC0dJrxyqJ9eo6dFzXTX0uru1+8YhibfeA xJT1Q0oNEqvSDrWi7ofOVqj2qQ4GiBMcndrtcIjorCjyZ6NwfZRwaWOK5DPSfgzTHh6sg/Wn+VD HYDnnwHnCHHmSVK4aCbLhcR4rM+NXqgXH7edZn9Zsg== X-Google-Smtp-Source: AGHT+IF5jfbfPTszz9eF2Ct4QCt81or5fZPvJ0DmEDeStGeHTI8PCfA7BoXEb/IWgk+vkNPDIurFpg== X-Received: by 2002:a17:90b:3c45:b0:2ff:6608:78d5 with SMTP id 98e67ed59e1d1-2ff7cea4151mr3116679a91.15.1741324405894; Thu, 06 Mar 2025 21:13:25 -0800 (PST) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-2ff6935350bsm2156855a91.20.2025.03.06.21.13.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Mar 2025 21:13:25 -0800 (PST) From: Visuwesh <visuweshm@HIDDEN> In-Reply-To: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> References: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> Date: Fri, 07 Mar 2025 10:43:22 +0530 Message-ID: <87tt85h18t.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) 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.0 (-) [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=AE=E0=AE=BE= =E0=AE=B0=E0=AF=8D=E0=AE=9A=E0=AF=8D 07, 2025] Dmitry Gutov wrote: > Here's an implementation for that idea, together with .texi and NEWS > changes. > > Comments welcome! Maybe there's a typo, see below. > diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi > index 07142e71713..5fc0c3b4a52 100644 > --- a/doc/emacs/dired.texi > +++ b/doc/emacs/dired.texi > @@ -1860,8 +1860,9 @@ Misc Dired Features > you had killed them with @kbd{C-w}. The names are separated by a > space. >=20=20 > - With a zero prefix argument, this uses the absolute file name of > -each marked file. With just @kbd{C-u} as the prefix argument, it uses > + With a zero prefix argument, this uses the absolute file name of each > +marked file. With prefix value, it uses names relative to the current ^^^^^^^^^^^^^^^^^^ Did you mean, "With prefix value 1?" > +project root. With just @kbd{C-u} as the prefix argument, it uses > file names relative to the Dired buffer's default directory. (This > can still contain slashes if in a subdirectory.) As a special case, > if point is on a directory header line, @kbd{w} gives you the absolute
X-Loop: help-debbugs@HIDDEN Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 07 Mar 2025 07:07:02 +0000 Resent-Message-ID: <handler.76792.B76792.174133119623947 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov <dmitry@HIDDEN> Cc: 76792 <at> debbugs.gnu.org Received: via spool by 76792-submit <at> debbugs.gnu.org id=B76792.174133119623947 (code B ref 76792); Fri, 07 Mar 2025 07:07:02 +0000 Received: (at 76792) by debbugs.gnu.org; 7 Mar 2025 07:06:36 +0000 Received: from localhost ([127.0.0.1]:46648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqRn2-0006EB-8N for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 02:06:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52938) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tqRn0-0006Du-MO for 76792 <at> debbugs.gnu.org; Fri, 07 Mar 2025 02:06:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tqRmu-0002Gy-Pl; Fri, 07 Mar 2025 02:06:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ztTDeaIIDiMEoo/nvFK1bzqfVTBDreYeFI+jxDVxjJc=; b=nZ/zk0EW9kLw TNJaEhN5eAib/96QWIPv81WkqgAFsv4Rs+O2WKSGdiYdy9yu7+HX8fwkfaCm4ZpAGA9d+UJZtcpQi fO1klCjpY0G8q69A07Z54/YE4uJWh3z/kab/Mvb//K36uVT1sMGJb2bmZCwC9qg6ni4UswB0XKcWz /3rgWQGVJB0fpv3wkWSe6/pADgw5cGZ/x1BOBwF43vnyLUKazm+iOJvEj2hqQdvES2uiJQ9yHPcDV Bq9Igq5dLGJtZtz4ia7Fd9F4Ct1+DLac9KWi8QHKFeyFd7wlp2oMrZWlOrXAnoWfUovmZYV2PGcr8 LbqRr31OlXXm5H3aocQ9Rg==; Date: Fri, 07 Mar 2025 09:06:24 +0200 Message-Id: <86tt85l3pr.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> (message from Dmitry Gutov on Fri, 7 Mar 2025 00:39:02 +0200) References: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> X-Spam-Score: -1.6 (-) 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: -2.6 (--) > Date: Fri, 7 Mar 2025 00:39:02 +0200 > From: Dmitry Gutov <dmitry@HIDDEN> > > - With a zero prefix argument, this uses the absolute file name of > -each marked file. With just @kbd{C-u} as the prefix argument, it uses > + With a zero prefix argument, this uses the absolute file name of each > +marked file. With prefix value, it uses names relative to the current > +project root. With just @kbd{C-u} as the prefix argument, it uses > file names relative to the Dired buffer's default directory. (This Using 1 as the prefix arg which means files are relative to project root seems inconsistent with the meaning of zero argument. So I would suggest to use "C-u C-u" for the new meaning. It is not harder to type, and it is more mentally similar to "just C-u". > +*** 'dired-copy-filename-as-kill' supports project-relative names. > +With a new value of the prefix argument (1), this command copies file Suggest to reword: When invoked with the prefix argument of 1, this command ... (But if you agree to switch to "C-u C-u", this will need to be phrased differently.) Thanks.
X-Loop: help-debbugs@HIDDEN Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 07 Mar 2025 07:18:02 +0000 Resent-Message-ID: <handler.76792.B76792.17413318765310 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov <dmitry@HIDDEN> Cc: 76792 <at> debbugs.gnu.org Received: via spool by 76792-submit <at> debbugs.gnu.org id=B76792.17413318765310 (code B ref 76792); Fri, 07 Mar 2025 07:18:02 +0000 Received: (at 76792) by debbugs.gnu.org; 7 Mar 2025 07:17:56 +0000 Received: from localhost ([127.0.0.1]:46710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqRy0-0001NZ-2e for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 02:17:56 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:45915) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1tqRxy-0001N9-BT for 76792 <at> debbugs.gnu.org; Fri, 07 Mar 2025 02:17:54 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 2685E204CC; Fri, 7 Mar 2025 07:17:43 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> In-Reply-To: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> Organization: LINKOV.NET References: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> Date: Fri, 07 Mar 2025 09:16:06 +0200 Message-ID: <871pv9cq2n.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduuddttdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejieejledvseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepughmihhtrhihsehguhhtohhvrdguvghv X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) 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 (-) > Here's an implementation for that idea, together with .texi and NEWS > changes. > > Comments welcome! I wanted to suggest 'C-x p f M-n' in Dired to get the default value based on the current Dired file, just to copy it and cancel with 'C-g', and maybe this still could be added as well. But definitely '1 w' or even 'C-u C-u w' is a more convenient way to get a file name relative to the project root, thanks.
X-Loop: help-debbugs@HIDDEN Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names Resent-From: Dmitry Gutov <dmitry@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 07 Mar 2025 15:20:02 +0000 Resent-Message-ID: <handler.76792.B76792.174136077930017 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii <eliz@HIDDEN> Cc: 76792 <at> debbugs.gnu.org Received: via spool by 76792-submit <at> debbugs.gnu.org id=B76792.174136077930017 (code B ref 76792); Fri, 07 Mar 2025 15:20:02 +0000 Received: (at 76792) by debbugs.gnu.org; 7 Mar 2025 15:19:39 +0000 Received: from localhost ([127.0.0.1]:49615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqZUA-0007o4-GN for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 10:19:39 -0500 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]:49049) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1tqZTz-0007nX-Ow for 76792 <at> debbugs.gnu.org; Fri, 07 Mar 2025 10:19:33 -0500 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfhigh.phl.internal (Postfix) with ESMTP id 17B5B11401BD; Fri, 7 Mar 2025 10:19:22 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Fri, 07 Mar 2025 10:19:22 -0500 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:subject:subject:to:to; s=fm3; t=1741360762; x=1741447162; bh=cC/K4x6guYeDZx6OmTq0iuvPBfa6fX+M3BVqrGo8olo=; b= s5ZraqSyze0PckYH3H2EE1iPkXs76Fu8HDl4ckOfWNjam5AVGVcV6fyh4FbJKSIA 2u8RPNWy17gU5D+y3Dcfp2cz4LV0+Y22lTXkfDpyVjW1i1JJrwq2N57AZZAwVl7A VC42ERby+CRwwHCPBxZPLOZqHdPDncsOmcVImfSyXwaUQOWYDA5SczGReG1Ukhs/ Qac7ib1xKHM+tFgdNnKj8/4QkWPmpj3oPIw1MqkWfxAlmLw5vtrTXR+RVVWUKKrF RK9RflkS5+68mmyeR2Yz/C+HHHytN7cHMBmrjvICS0eC2ykd5o1RtD1LuSuJuC5i iVQQL8hZTjD7h/kA5DXkJw== 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:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741360762; x= 1741447162; bh=cC/K4x6guYeDZx6OmTq0iuvPBfa6fX+M3BVqrGo8olo=; b=J 43m9TxcXreMpcl+IZ0IPwgpVW4hdvBNH/POvTbcCBZT+DHEABoo4ofFEYJRRiLTw OUx4o16LoDx0yvFVlZDyCNWfl48htWydTtrcTT/NrCCrb8mCMtCokP3G6FEJYWyo oEM8WjW74JqYNFUSUlV0DVgmQEZavtvNiUl8YRvzp2I6zyOg4wJgM5C4QYesw2OE 2LmxzrLMRf57cCgjBuozA8om7q8wJVf3u2OQejH6VgF797nJJJ0OsGYxUHtHCnN4 iCAW+x5jsPfSxG1ZIbeTtX2CgxKFicKfy4P9jbkUG0a3+5pz8w3tJh/q4py9gZKs 6f7ljv9jcubXxmc1MwL1A== X-ME-Sender: <xms:eQ7LZ7dkI5Gy5DLvt8QRNGuZBW9JlOoymIrfwBg5elnF_NxZl9qwXg> <xme:eQ7LZxNoOGsP0Uv55vzSyzEIvy-Waof56mWHUv67-YwhE_cb_ZmAJpl77m9MYmP4A TZkHbbC42pyiywlPzg> X-ME-Received: <xmr:eQ7LZ0i6abfoG1TFE-gS5hyBcWBB88UzbqIBW9KWM2nqZu8PMvq4LuIalPqyRb0oSsBW> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduuddutddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddt vdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovh druggvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieek ueeftddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphht thhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdroh hrghdprhgtphhtthhopeejieejledvseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: <xmx:eQ7LZ89spIRnQMkC4aO-iVx-jEys8jVtDEjisMloTwZE2P70-aJFEw> <xmx:eQ7LZ3sS3EDMjhnFDgVqqJ_WEDsziA8hP-CyIxJ3g-XOx2BtvCu-3Q> <xmx:eQ7LZ7H8mIr5rtwk__Xl2hnqVIh1o8m8k_54-kRsc122YtT51HCyZA> <xmx:eQ7LZ-Mu9FmJ3lKgFqey813gXW8RWkpOMNvl4astuSRklIyqda36Rg> <xmx:eg7LZw7Uatm0ryQO7gvSLP_PqRdRaLahl95Oxab_CR94JTKZUDylENt0> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 Mar 2025 10:19:20 -0500 (EST) Message-ID: <9d49a6f7-3955-44c7-b047-a2799c425c4b@HIDDEN> Date: Fri, 7 Mar 2025 17:19:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> <86tt85l3pr.fsf@HIDDEN> Content-Language: en-US From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <86tt85l3pr.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) 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.0 (-) On 07/03/2025 09:06, Eli Zaretskii wrote: > Using 1 as the prefix arg which means files are relative to project > root seems inconsistent with the meaning of zero argument. Is it really? We have 0 which means "absolute name" and we have 'C-u' (which often translates to 4) which means "only base name". The project-relative name sits somewhere in the middle (when judging by length, for example) so 1 seems fitting. > So I would > suggest to use "C-u C-u" for the new meaning. It is not harder to > type, and it is more mentally similar to "just C-u". I could agree to 'C-u C-u' as well, but it does seem like a longer sequence requiring two hands (while '1' sits very close to 'w' and would be typed with one hand). Semantically as well the new behavior doesn't seem like an advanced version of the current 'C-u' behavior. But if the majority prefers 'C-u C-u', I won't argue.
X-Loop: help-debbugs@HIDDEN Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names Resent-From: Dmitry Gutov <dmitry@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 07 Mar 2025 15:21:02 +0000 Resent-Message-ID: <handler.76792.B76792.174136081630468 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Visuwesh <visuweshm@HIDDEN> Cc: 76792 <at> debbugs.gnu.org Received: via spool by 76792-submit <at> debbugs.gnu.org id=B76792.174136081630468 (code B ref 76792); Fri, 07 Mar 2025 15:21:02 +0000 Received: (at 76792) by debbugs.gnu.org; 7 Mar 2025 15:20:16 +0000 Received: from localhost ([127.0.0.1]:49623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqZUl-0007vM-F9 for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 10:20:15 -0500 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]:44899) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1tqZUi-0007r0-6T for 76792 <at> debbugs.gnu.org; Fri, 07 Mar 2025 10:20:12 -0500 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id CF3E413826E8; Fri, 7 Mar 2025 10:20:06 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Fri, 07 Mar 2025 10:20:06 -0500 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:subject:subject:to:to; s=fm3; t=1741360806; x=1741447206; bh=w6UTcrsD4RSkcWB6FRVabBddxG/vzW16QUcG7Xrak4I=; b= vpMe9kzVe4jyNa83s8X85vZO3sIKMqFii8I6GyS6uOMj3YLr36rM28pjqfNZLXbu Op4fBq/lGpfHn3Hue/V7ERd4ZFQBqkbPHEJyhIhkVLpD3/sL3rDeDkFmlw6E72RA WxY5QRNIQmJSiyv0WaIu+D9wjcn8nhYvnxwEZ0tvtKtNIDCNAMPQB39GJlTsChLH RqoSSlIsUkTt76AKOkYZ4cQ8u3t4HqyNXPNIQrl2rpr48cKDnxyBRMHkP54qhSfm bTxrvHb3Iu7TPlSWmoeSOVIkgkDraT3mMmJWyhioipW2k1d9ZKbc7jxpkBl5AQEN SCVrwcloIqyxbT4yuUIwuQ== 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:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741360806; x= 1741447206; bh=w6UTcrsD4RSkcWB6FRVabBddxG/vzW16QUcG7Xrak4I=; b=0 8gle06OHhCgqL1AowM+/cY66C3Ej9uGMobjDImHHspAgUc8wXi/exZE6ejW9IiIv XgaIiqA6oeScUERZ/hV25kaDZWEZK+DQESSDKVu1utmjH6+UoQ8NL6Jz8H1QZ+G6 q437+nLRMYyhSE+BT45MScJetFmjfFpGX68mPEUVygGwX2V8SehVJWk2nQ2xUM4K WPcHym3Gz5tiAsU9NV7/zMgTfKnfMWAf9DzjvBAa8j/yApNDM8Sig/7VxJff07Hd bR4JoQ4vFfkibb8/WeOa92gqFSGjDHKMV4xZmC53Q0AItdn2nRurkXDLIQrzQuP4 2bAZff0vYWVYxjNppSF7A== X-ME-Sender: <xms:pg7LZ14uDyCxsI_tGVolmgty-h_6nxw4_qkyPCRXwPOgXQMAkns1tw> <xme:pg7LZy5OvdSXN9xUXu63L8BWzIiwwmDFksOy2-xIquByfXC31v_H3-SoIMUKxgagq iqKRlUVRV1jzCTTcag> X-ME-Received: <xmr:pg7LZ8f1n5b4xY0MRDZIitjxCAqxQxa4KP0ktQNCe3ykC2rLKwKyeZ7nknv9TM3ZBhoY> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduuddutdduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkff ggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhihucfiuhht ohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpeetud eljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudejheenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesgh huthhovhdruggvvhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhr tghpthhtohepvhhishhufigvshhhmhesghhmrghilhdrtghomhdprhgtphhtthhopeejie ejledvseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: <xmx:pg7LZ-LbQ0MIsPBuQx4lGw_Ybdp8qerFje8ypexlvT2JxH54yB3DRA> <xmx:pg7LZ5JvDYit7eb6YGllg0YyxR4xXupaVEvkay19lw779DB4dvwY0w> <xmx:pg7LZ3xJdPesWUjibjsO07KQSbSZ1zva3YgDbljK_h_PlmMa5_48YQ> <xmx:pg7LZ1JDdo-OOvE1Cy8OG8krqI5kypkcakmPmWpKvhUzCpQ3DitdoQ> <xmx:pg7LZwUd7GyAWuFVegVLB4HGmP1KDyqL_vzOTHa1qhZ6-UN7ERvOGoNB> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 Mar 2025 10:20:05 -0500 (EST) Message-ID: <6ff4143c-9b4a-4963-84f7-b9a4906d0033@HIDDEN> Date: Fri, 7 Mar 2025 17:20:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> <87tt85h18t.fsf@HIDDEN> Content-Language: en-US From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <87tt85h18t.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) 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.0 (-) On 07/03/2025 07:13, Visuwesh wrote: > Did you mean, "With prefix value 1?" Yep, thanks!
X-Loop: help-debbugs@HIDDEN Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names Resent-From: Stefan Kangas <stefankangas@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 07 Mar 2025 16:21:02 +0000 Resent-Message-ID: <handler.76792.B76792.174136443721296 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov <dmitry@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Cc: 76792 <at> debbugs.gnu.org Received: via spool by 76792-submit <at> debbugs.gnu.org id=B76792.174136443721296 (code B ref 76792); Fri, 07 Mar 2025 16:21:02 +0000 Received: (at 76792) by debbugs.gnu.org; 7 Mar 2025 16:20:37 +0000 Received: from localhost ([127.0.0.1]:49732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqaRA-0005XO-HZ for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 11:20:36 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:61558) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1tqaR7-0005X6-01 for 76792 <at> debbugs.gnu.org; Fri, 07 Mar 2025 11:20:33 -0500 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5e52c1c3599so3273837a12.2 for <76792 <at> debbugs.gnu.org>; Fri, 07 Mar 2025 08:20:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741364427; x=1741969227; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=LEzKEbKjbkUdpjXAeqj9JblXKHMQUzqtXLK3xFHJyqY=; b=LYdNk4EoEkWm4DfprX1Z9UfMzOqDHCM1kuxRfTrtGHxDJoAFUf3xzFS09k4sBbEewc g8jmWADD3VXPAOV7vsDYzT0Dif3VD7ce3qSeD2DhlQjfHFUcY3MuHZGNJtSahfOQqEOI WQw4dmt8awHW1MLRhpn1nAw9ZqJUxNWOP4t3LrxDo0VaR3NPXnALGDRUd8It3I/hE3n5 4zSR57YtCHi0GutUjZXE5uE32956UmRplNn8TfnVftHdfDkeErz9nE21YT0amteH6qx5 sLnNhXIJbSe0g9UVXxisaM/+gNKBQYcfCDSDa2qZXUBbV3p/LlWHzVXoOcIUYgTgeb4n gnMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741364427; x=1741969227; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LEzKEbKjbkUdpjXAeqj9JblXKHMQUzqtXLK3xFHJyqY=; b=JDpJWRN3VbQF6w5oY7HsmjwkJRm9IeAEn9WXoJhUoygOLBj2rdU/lj4EGE70Dmtz2w g5468PScRrroQhoXKk8vrsYLm9Ux1LlawIshPeGDR1lVyPs4dgoVnagc1Ml0C4y82AG+ D/igzAurX4XLnkIcGa/D3P3vAIZfiRVquuz8kQxMDh9ufPPk1L+0lmWtmdtcfVwUrQdC A6yFsNVRzybSOXcA0xxCaBkF2pWq9hSVuJ6pQPfpQj2Il3lgvWJXxjP+bXkW8qLRbEP3 LoOqA9JktrH967kkkTq4zsnvVpCiNY8D7kfMzEJD4XNwRqbxXS93PR1/PG3eIcQy3SuP 2SVg== X-Gm-Message-State: AOJu0Yy7zDIfStSKITwjAktBq77Cspdvuj+ip/NL4ghMQbpV2nkIWsox nkLfEsUBHZ/gYvl6CGz2xNKxMCI2n1loFshtVcHlAc/IHDS9wh+Ey2Y1z/VZpBOVgSOLbm8i/Qi vfT+949AEyUl9iuz0H1Y+pPTsmz0= X-Gm-Gg: ASbGncsMqQ0pXo9ZH/VFlOSQPIt98ZduY9njRQQgB88n3KNwHmCYmOc4M0c4rGPG83v Bxye0KmUcI3FcHF+Dj4TPZ6wml3UbjsT9NDbQIbHmdif10F2F0MG1Y54s/P8X6UGdr7gCrxu7xe SoFnxOYxLpRP+BBfCYKMKEpfNnbA== X-Google-Smtp-Source: AGHT+IGxYFN+55Yiw7M/tG74v6PC5S7qchTAnWYp5WabVP1yXZgt8q99y4x0yXWAZ37d5xUqratJBTlNghzNOpIN+1A= X-Received: by 2002:a05:6402:2157:b0:5e5:e78a:c501 with SMTP id 4fb4d7f45d1cf-5e5e78ac8f9mr3099836a12.13.1741364426372; Fri, 07 Mar 2025 08:20:26 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 7 Mar 2025 08:20:25 -0800 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <9d49a6f7-3955-44c7-b047-a2799c425c4b@HIDDEN> References: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> <86tt85l3pr.fsf@HIDDEN> <9d49a6f7-3955-44c7-b047-a2799c425c4b@HIDDEN> MIME-Version: 1.0 Date: Fri, 7 Mar 2025 08:20:25 -0800 X-Gm-Features: AQ5f1Jq9LU52QiTteddT4s0XXeL_A9B8wy3W3UAY3ClKjioOPIAixyVvgjXO4VI Message-ID: <CADwFkmmT=iX5fNqp75ne5zRvFCm5=f-v1XGZbZET_Z5Rp5fZqg@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.7 (/) 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.3 (/) Dmitry Gutov <dmitry@HIDDEN> writes: > On 07/03/2025 09:06, Eli Zaretskii wrote: >> Using 1 as the prefix arg which means files are relative to project >> root seems inconsistent with the meaning of zero argument. > > Is it really? We have 0 which means "absolute name" and we have 'C-u' > (which often translates to 4) which means "only base name". > > The project-relative name sits somewhere in the middle (when judging by > length, for example) so 1 seems fitting. > >> So I would >> suggest to use "C-u C-u" for the new meaning. It is not harder to >> type, and it is more mentally similar to "just C-u". > > I could agree to 'C-u C-u' as well, but it does seem like a longer > sequence requiring two hands (while '1' sits very close to 'w' and would > be typed with one hand). FWIW, on some keyboard layouts, e.g. Dvorak which I have here, this doesn't hold. :-) > Semantically as well the new behavior doesn't > seem like an advanced version of the current 'C-u' behavior. > > But if the majority prefers 'C-u C-u', I won't argue. Hmm, `dired-copy-filename-as-kill` with prefix 1 copies one file, with prefix 2 copies two, with 3 copies three, and so on. Do we care to keep this behavior? If so, I think 1 is the only prefix left that makes sense. That gives us: 0 copy absolute file name 1 copy project file name 2 copy 2 files ... 7 copy 7 files 8 copy 8 files 9 copy 9 files With C-u C-u, we get this instead: 0 copy absolute file name 1 copy 1 file [ NB. same as with no prefix ] 2 copy 2 files ... 7 copy 7 files 8 copy project file name 9 copy 9 files That means we have no way of copying 8 file names, I think, and two ways to copy just 1.
X-Loop: help-debbugs@HIDDEN Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names Resent-From: Stefan Kangas <stefankangas@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 07 Mar 2025 16:24:01 +0000 Resent-Message-ID: <handler.76792.B76792.174136461221638 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov <dmitry@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Cc: 76792 <at> debbugs.gnu.org Received: via spool by 76792-submit <at> debbugs.gnu.org id=B76792.174136461221638 (code B ref 76792); Fri, 07 Mar 2025 16:24:01 +0000 Received: (at 76792) by debbugs.gnu.org; 7 Mar 2025 16:23:32 +0000 Received: from localhost ([127.0.0.1]:49737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqaU0-0005cw-Jg for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 11:23:32 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:42320) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1tqaTw-0005cc-Ew for 76792 <at> debbugs.gnu.org; Fri, 07 Mar 2025 11:23:28 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5e614da8615so103688a12.1 for <76792 <at> debbugs.gnu.org>; Fri, 07 Mar 2025 08:23:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741364602; x=1741969402; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=1bBNti9Plx+BRZQEKoV9wSErQqbcZmXx4n94xrqVNwA=; b=OIpppx78LdL/MBF7Ni7d7YJ8FNrL0OJSTh/m6EWyuTzm7a/GjkO3aUkecEX1eTVRRe V82SLT31IgFrmxDsnYL3PZ/uDDRsGvbo4vD2lkHWnl/pNfFUMGbXNZj11vKeFGJEvXlI CV9Y5HyhuhZLoeR3dqMW3lpQjMItzrvXE5K7O3fjAdb9ppHNgpzaGeyKQ4601yjt0tjl ITP542mF/Zjnrz0gumlRE8HCPmDmwlVd5fzWq/BpDBXN2wLfOvU6+bxdcLA7G72HRILB kBMcwwduGOUlLEYXg5fdYsoai9w1TLYH2eqaq7YYx7E+hNHeNHy1ZLqJvdOZgKaiU4/v iHQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741364602; x=1741969402; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1bBNti9Plx+BRZQEKoV9wSErQqbcZmXx4n94xrqVNwA=; b=R92zwvc/tEPVuwwACeSwcIFgH5iJ4CkTSNbb1wtpjbo90WXUqooDkSHgLx7w4HeBQl wijs0jMjgm8QFdhlr8zT/pRiNapplOy7rlBCYu4zG3OjMXEqTWCVhbfh4ckEY7pcdGuj w7SQzVMkWeloPZ7mpNAiOnPFR6aINnGfZE1lXXGlRY+7VkYrkEM4eSbbkemOLWNDI3Wi GxUMUDsG520LZyztV4FhvCLFcyXb2X1V7GOQ9H2NHhLuzsB3HbDk7mkxT7LG1zNw7WBs G4eUbmcslTy0XgKEXsO4yvNVYLDe6QuuA53hAKPSrNd7jNk11dEVSNuG/Dms2YD27/vT V2Yw== X-Gm-Message-State: AOJu0YwpOlr1ARDN7SbogunSa0bbEV6ZEgIYl0TN8qjmPG/QH5gAR47T nZAxcv/Fc+xvR8vcAKNhggl2O9gViTcSUtNstfmTJIsG17bNuBHx1A7XK53FgBQfAsKzM1HSbIk 3s4hx+SYhigvYP198npGE841NglM= X-Gm-Gg: ASbGncuEa3ydN+LGEybfppC8COIQHyIcmSZ4b/aWF1aq9pnixT4OxIQgKCwdBv6Jtug sIyWtNARij/rO2UH2wEIchB3XnsQdJhSAhtajISc/b/Q7k3kd8+BJV3iB3YxyEkkdGnkET0sN9e jJGaDdyTRHeQwJYzS/j/Kwudgy1Q== X-Google-Smtp-Source: AGHT+IHFxgICJ6ozd3ptdya4+OACg4r1QjWLnhUrYBMprDT2a8Z27WIAkeNakqzX+bh/MEclKXnZfquzrbvRTJuB8rs= X-Received: by 2002:a05:6402:34d6:b0:5e0:8a34:3b5c with SMTP id 4fb4d7f45d1cf-5e614d92d51mr268253a12.0.1741364601753; Fri, 07 Mar 2025 08:23:21 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 7 Mar 2025 16:23:21 +0000 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <CADwFkmmT=iX5fNqp75ne5zRvFCm5=f-v1XGZbZET_Z5Rp5fZqg@HIDDEN> References: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> <86tt85l3pr.fsf@HIDDEN> <9d49a6f7-3955-44c7-b047-a2799c425c4b@HIDDEN> <CADwFkmmT=iX5fNqp75ne5zRvFCm5=f-v1XGZbZET_Z5Rp5fZqg@HIDDEN> MIME-Version: 1.0 Date: Fri, 7 Mar 2025 16:23:21 +0000 X-Gm-Features: AQ5f1Jrmhb9JYT1hm2Ppw7EmOiekaCDaLOM1RPhL9f_bYXC-jBTVaYxRmsdj1Zg Message-ID: <CADwFkmkGRxmbPM0FdikOvB1yBGtAeSK5aOnsWyizEsdKUzCdFQ@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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.0 (-) Stefan Kangas <stefankangas@HIDDEN> writes: > That means we have no way of copying 8 file names, I think, and two ways > to copy just 1. Actually, scratch that. The above is wrong, I got confused. Sorry for the noise.
X-Loop: help-debbugs@HIDDEN Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names Resent-From: Dmitry Gutov <dmitry@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 08 Mar 2025 02:49:01 +0000 Resent-Message-ID: <handler.76792.B76792.17414021176850 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 76792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Kangas <stefankangas@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Cc: 76792 <at> debbugs.gnu.org Received: via spool by 76792-submit <at> debbugs.gnu.org id=B76792.17414021176850 (code B ref 76792); Sat, 08 Mar 2025 02:49:01 +0000 Received: (at 76792) by debbugs.gnu.org; 8 Mar 2025 02:48:37 +0000 Received: from localhost ([127.0.0.1]:51300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqkEv-0001mP-FU for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:48:37 -0500 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]:37207) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1tqkEs-0001m9-Pq for 76792 <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:48:35 -0500 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.stl.internal (Postfix) with ESMTP id 3D7AB114014A; Fri, 7 Mar 2025 21:48:29 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Fri, 07 Mar 2025 21:48:29 -0500 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:subject:subject:to:to; s=fm3; t=1741402109; x=1741488509; bh=G4wGncCN5wELwlmq5KEnE5B5EgZCeELMJWFFyaJ6Z+Y=; b= b0O8Mwd/prM2d5sjk97S03pFRujqN09sHUQFlCegxn39r4Ml0TlCjl7qX8ACMtKU lwTt/ZJMA5AvJeXQYP8+Ui2jEfWy0TLIogL40UTBAQ7IcOjwh7LgpkEv5SgeSs9v cj8MrqwUwVdvJ54z4Vv9T64GZgpD2rTVfnQJ89Sk7gpvGW3lXZoD/8vQkN9tENnG VNJ/v4E1V8VdxdDspMKJxVIvWAlVWOOVhCHUMIvR8j13Rog6cjolt5vf5Lhf5CYY 55BXUiHzpTBkGBFoDd2LpAezlyVmvzqbn5+ybNgmC3l3MjnrIsVQKQOvFKp7JPe4 EFmVodtamkHa0VT6RnxYbQ== 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:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741402109; x= 1741488509; bh=G4wGncCN5wELwlmq5KEnE5B5EgZCeELMJWFFyaJ6Z+Y=; b=G G8OL0KhdsDgd2aeVjqF8MZTJAXRz666WLPl3AhujnEG4WNcnUrZgonOIdkvwaK0F PhuFQREGUc/3UZCFcNt4X2ndizcOBW5sIIoyFzCJGHwC676jIb5x5qtWcNhvtb7R WrhcHJH0GmtU7EybbNkOkNBzgDlgEqR8nlRS/1TuBDbyGZoMh/c3sgYzvatpTVAS zBL1+m0rojMIZFlkYBhp5BVNPbKfzHqZMIBTcajpt91XpBdNE+t9MGNazwVds9uU tnrY5+7YFbMHorHZA0t2OsTgOd0R57442IJXqmF8eEmYPdrDD12Z1x6YhRffsK2v O8SKzS0pLLMFySw7DtjBw== X-ME-Sender: <xms:_K_LZ4c-gqCMfGuoMZRBS3L9iio3YgnV5PiqaGp_1Q6nLFP_ITedCQ> <xme:_K_LZ6MFDFrtkSpTVEnv_a7GW2ZOfeQta1G-BPIx1N50k9MUxlrcIcLi_JNBuLOps 9J720pKidO3v3FBZhQ> X-ME-Received: <xmr:_K_LZ5gw06eCkxP6SDAGxiau9QNMPlHptdXhNwePkhSrm3mzboou2mVu__Z1KztW5Y-d> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduuddvfeekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddt vdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovh druggvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieek ueeftddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphht thhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsthgvfhgrnhhkrghngh grshesghhmrghilhdrtghomhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgt phhtthhopeejieejledvseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: <xmx:_K_LZ9-slxMGpumIctABZ4Fsb6WSUIo3SQXInSBN6-I5C5FpIN_UGw> <xmx:_K_LZ0u5vJhExjvv4DXEe8ztqUoBXKmGKgGp5fnrZuDjdPuj3a6zJw> <xmx:_K_LZ0Hj3vJVuhIaJ4LbST7zs8QyhAlz3iYcLOi4-En87W6d-yu1RA> <xmx:_K_LZzO6nPmxktlzeFTlNyg_XQkdRO13bsiQpqMtuagUagE5qNc4ow> <xmx:_a_LZwIQ7tqfuVf9kpfz8zHng2Xuu7OWBwB8cP-iDF7DyUGxydv_eUsm> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 Mar 2025 21:48:27 -0500 (EST) Message-ID: <0696e456-e238-40c4-a773-0a6014f44444@HIDDEN> Date: Sat, 8 Mar 2025 04:48:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <f2db2108-1a67-4122-91b7-7bfe38d27d9f@HIDDEN> <86tt85l3pr.fsf@HIDDEN> <9d49a6f7-3955-44c7-b047-a2799c425c4b@HIDDEN> <CADwFkmmT=iX5fNqp75ne5zRvFCm5=f-v1XGZbZET_Z5Rp5fZqg@HIDDEN> Content-Language: en-US From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <CADwFkmmT=iX5fNqp75ne5zRvFCm5=f-v1XGZbZET_Z5Rp5fZqg@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) 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.0 (-) On 07/03/2025 18:20, Stefan Kangas wrote: > Dmitry Gutov <dmitry@HIDDEN> writes: > >> On 07/03/2025 09:06, Eli Zaretskii wrote: >>> Using 1 as the prefix arg which means files are relative to project >>> root seems inconsistent with the meaning of zero argument. >> >> Is it really? We have 0 which means "absolute name" and we have 'C-u' >> (which often translates to 4) which means "only base name". >> >> The project-relative name sits somewhere in the middle (when judging by >> length, for example) so 1 seems fitting. >> >>> So I would >>> suggest to use "C-u C-u" for the new meaning. It is not harder to >>> type, and it is more mentally similar to "just C-u". >> >> I could agree to 'C-u C-u' as well, but it does seem like a longer >> sequence requiring two hands (while '1' sits very close to 'w' and would >> be typed with one hand). > > FWIW, on some keyboard layouts, e.g. Dvorak which I have here, this > doesn't hold. :-) True, and anyway I think semantic fit is more important. >> Semantically as well the new behavior doesn't >> seem like an advanced version of the current 'C-u' behavior. >> >> But if the majority prefers 'C-u C-u', I won't argue. > > Hmm, `dired-copy-filename-as-kill` with prefix 1 copies one file, with > prefix 2 copies two, with 3 copies three, and so on. > > Do we care to keep this behavior? I actually wasn't aware of this one. Like you concluded, it would still be supported, except for value ARG=1. We have reserved ARG=0 for a different behavior already, so it seems that ARG is not suitable for programmatic calculation anyway.
Received: (at control) by debbugs.gnu.org; 10 Mar 2025 21:07:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 10 17:07:42 2025 Received: from localhost ([127.0.0.1]:40115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1trkLd-0003qr-Mq for submit <at> debbugs.gnu.org; Mon, 10 Mar 2025 17:07:41 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:59845) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1trkLQ-0003q7-OS for control <at> debbugs.gnu.org; Mon, 10 Mar 2025 17:07:29 -0400 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5e5c7d6b96fso7610341a12.3 for <control <at> debbugs.gnu.org>; Mon, 10 Mar 2025 14:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741640843; x=1742245643; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=G/mOa3vgXcX5QKdSn3tPNjeg/U/vUalBevsqayNqqek=; b=U3w3Z8av9kecWLYEelATwT9JDqdM8zPHebwlZVJsip4kpy82I8Nt1QYVVQcCJnrMCa WJi39t17rxTs/EDqkjywIaJwbd0ILYxFEruAKNhB8618UHrDZWKTUBWLw69fFtqjVasj 5NDwpEyXdg9fbYPKyptdh/Ch+WQBtdJkSmGF4nqhzhMNEoYIvKVGfZejGsm1TOQsZSqr vMF8IQMqELzPfqJIk1+2D8aipQx6+jjBTkWk3FSG773mEZlOXYExWOrs82QZuPHmJj8w voKV5fAUfHU/ycIp9eQ7DFjS7ox9q6zPlr1DgPstSbcV3tWrEFw8rGkH+ZcFuoeZXwjK dLqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741640843; x=1742245643; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=G/mOa3vgXcX5QKdSn3tPNjeg/U/vUalBevsqayNqqek=; b=E6QkFm5w1U8i6bZjSbQNkcmbzyWPUuktnAWLHCM1L9ceyBxX9eCM9NlY0br/f3MDQx wUftaQPtm+taadlUBACFbYATf5kKffwBI1w9MUIC/QHrE9UwEGtABhA+CvgK9UoS884m M3iek01Fjge28rvIakglBlQpHj4yOgRn3J+qw82ytl2SSzEAiizMvmjsR0GY2v7jxDbC YHDKlwuatgsmRTvhJsRG0wDlpq2C2gnz9btkDlYtURGAMJTL6JaM13+293VsnfYMTDKn dz6GLhLr++PRb1+1VdSK1RF89MZY3DkP4rfZ7mOXrfiGU1nPvB9hb2rPRe49t1GzlO3k 2+8w== X-Gm-Message-State: AOJu0Yw77yuqZB8dqWOdShZlrBS1+N6FBxtHxvqhzIw2tPDLSaVY4xXG b0NF0LJOYfaLcaaEsajs83OoEx7HazXye55NEP4LvcQyUBfST7nL1Dk0MejoK+Uil6bX6LRGdv5 qo5AAP+WPdJ18JDzvrcA1P9Uwn6O9oS+6 X-Gm-Gg: ASbGncssABFCnZxLqV5A1A4+JK67AASMMwGlfJe/TUp8FM027ObSKzjNqF044M2x8zs DJjqcF3+GThZf/7c/zhm4aAhRMoxxyhGfXsMQVlpidt68/22BpqQtLwnFzn+VB2Pxl+ZNBTS0Zg tZSxknMfrKV8RKm868Wi35xqTImFQ= X-Google-Smtp-Source: AGHT+IE0Ld74Mx1A0j6MoIWHfHwl7+hT8YduHi9nOBfYZQ8NFAivT9TTyp5H01z/yoUk3RpWjePtsfg/0Y3nnz0MgnU= X-Received: by 2002:a05:6402:3547:b0:5db:f423:19c5 with SMTP id 4fb4d7f45d1cf-5e5e22bf15fmr16619877a12.5.1741640842525; Mon, 10 Mar 2025 14:07:22 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 10 Mar 2025 17:07:22 -0400 From: Stefan Kangas <stefankangas@HIDDEN> MIME-Version: 1.0 Date: Mon, 10 Mar 2025 17:07:22 -0400 X-Gm-Features: AQ5f1JrfgwdnaBPBPUsJlT0eYR91f4VnLDO0zC35Cpp345NivfI0xdHHs4SlX2c Message-ID: <CADwFkm=Au6v1xhbp20bYbbr=skMN7cODDPrw7VbB6M4uE0=Zfw@HIDDEN> Subject: control message for bug #76792 To: control <at> debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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.0 (-) severity 76792 wishlist quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.