From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64531: [PATCH] Add new command vc-dir-copy-filename-as-kill Date: Sat, 08 Jul 2023 12:25:13 +0300 Message-ID: <83jzvadabq.fsf@gnu.org> References: <87bkgmq1ra.fsf@ya.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37128"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64531@debbugs.gnu.org To: Ivan Sokolov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 08 11:27:18 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 1qI4Dl-0009SQ-UP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Jul 2023 11:27:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qI4Cc-0002QE-0C; Sat, 08 Jul 2023 05:26:06 -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 1qI4CZ-0002NS-7r for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 05:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qI4CY-0001AQ-W4 for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 05:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qI4CY-0000cb-5v for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2023 05:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jul 2023 09:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64531 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 64531-submit@debbugs.gnu.org id=B64531.16888083262347 (code B ref 64531); Sat, 08 Jul 2023 09:26:02 +0000 Original-Received: (at 64531) by debbugs.gnu.org; 8 Jul 2023 09:25:26 +0000 Original-Received: from localhost ([127.0.0.1]:44290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qI4By-0000bn-H1 for submit@debbugs.gnu.org; Sat, 08 Jul 2023 05:25:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qI4Bv-0000bX-8u for 64531@debbugs.gnu.org; Sat, 08 Jul 2023 05:25:25 -0400 Original-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 ) id 1qI4Bp-0000tb-Co; Sat, 08 Jul 2023 05:25:17 -0400 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=cdVPtK+l5baK0S7C3TiSqRA3OHv8Vic5hA7385tF7eQ=; b=EiVhkh3KYSp8 GMEMAuztPzSWr9Je3e6ZdUbD2Arlgc8iwDakHhSYQtspBScjii74f/bAWpyA1vEhrVbi7m8TbrUhr AJp3V5zT8VKAHmoub6UFQmgxCP0aKNf/3OLAqj2sD2jY51ieES0VHEBU0F+4doK06zn7n6icTpMWQ cA023YJC3j39jTmajgzXjYGbtnG6HaDmuhHyM7i+FWPK/apa7B3FIsjbeAjLVFOaT7mq1UnxAaTJu zM4TzLN7E9//aA2yN6WUrErnJW/ITSBUXiz8pGwt3tQ7J3ZNzb39649/o6x6faPGZHfhjJiVXl9Fe coAvIafkk+jqg3llMyd5oA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qI4Bi-0004el-Ht; Sat, 08 Jul 2023 05:25:11 -0400 In-Reply-To: <87bkgmq1ra.fsf@ya.ru> (message from Ivan Sokolov on Sat, 08 Jul 2023 10:51:53 +0300) 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:264764 Archived-At: > From: Ivan Sokolov > Date: Sat, 08 Jul 2023 10:51:53 +0300 > > This new command is inspired by `dired-copy-filename-as-kill', but has a > few differences, that can be easily reversed if there is such need. > > Changes: > 1. even single filename is quoted; > 2. filenames are relative by default, prefix makes them absolute; > 3. value of prefix argument does not matter, in dired it has to be 0. > > I bound it to the `w' key because `w' is currently unbound in > vc-dir-mode-map and it is what is used in dired. Thanks. However, new commands should be called out in NEWS, and commands that are important enough should also be mentioned in the user manual. > +(defun vc-dir-copy-filename-as-kill (&optional absolutep) > + "Copy names of marked files (or file under cursor) into the kill ring. This sentence is too general: it doesn't mention VC Dir, although AFAIU it is specific to vc-dir.