From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 64531@debbugs.gnu.org, ivan-p-sokolov@ya.ru
Subject: bug#64531: [PATCH v2] Add new command vc-dir-copy-filename-as-kill
Date: Sun, 20 Aug 2023 09:26:12 +0300 [thread overview]
Message-ID: <838ra6xm9n.fsf@gnu.org> (raw)
In-Reply-To: <21b04273-e7e5-cbe5-cd95-9484a89a4b64@yandex.ru> (message from Dmitry Gutov on Sun, 20 Aug 2023 02:33:59 +0300)
> Date: Sun, 20 Aug 2023 02:33:59 +0300
> Cc: 64531@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
>
> The difference from dired-copy-filename-as-kill in handing of the prefix
> argument looks unfortunate (as a principle), but I'd rather leave it for
> you to judge. Perhaps changing the latter command's interface would be a
> better choice; I'm not sure why it works that way.
What difference is that? I must be missing something, since it sounds
like both commands use the argument to select absolute or relative
file names?
> Implementation difference: instead of going through (format "%S"), this
> one uses shell-quote-argument. Is that good enough for Windows systems?
It depends on how the result will be used. But maybe we should do the
same as dired-copy-filename-as-kill, just for consistency of the UX?
> And one more difference which we might want to see fixed:
>
> (When there's a single file, no quoting is done.)
>
> It seems like, at least, in some usage scenarios users would prefer to
> have copied filename not quoted. E.g. for subsequent use with find-file
> or... something similar. I don't really use this command all that much,
> so maybe I'm mistaken here, though.
There will always be cases when quoting gets in the way, but hopefully
they are rare. The important thing, IMO, is that quoting is useful
for many/most uses of the file names in VC commands. Is it?
next prev parent reply other threads:[~2023-08-20 6:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-08 7:51 bug#64531: [PATCH] Add new command vc-dir-copy-filename-as-kill Ivan Sokolov
2023-07-08 9:25 ` Eli Zaretskii
2023-08-08 13:44 ` bug#64531: [PATCH v2] " Ivan Sokolov
2023-08-08 13:56 ` Eli Zaretskii
2023-08-19 8:06 ` Eli Zaretskii
2023-08-19 23:12 ` Ivan Sokolov
2023-08-20 6:20 ` Eli Zaretskii
2023-08-19 23:33 ` Dmitry Gutov
2023-08-20 6:26 ` Eli Zaretskii [this message]
2023-08-20 10:26 ` Dmitry Gutov
2023-09-04 20:08 ` bug#64531: [PATCH v3] Add new commands for copying VC filenames Ivan Sokolov
2023-09-05 11:01 ` Eli Zaretskii
2023-10-19 23:39 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=838ra6xm9n.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64531@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=ivan-p-sokolov@ya.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).