Subject: bug#76792: [PATCH] dired-copy-filename-as-kill to support project relative names

From: Visuwesh <[email-masked]>
Date: Fri, 07 Mar 2025 10:43:22 +0530

[வெள்ளி மார்ச் 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.
>  
> -  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