Subject: bug#52926: dired-copy-filename-as-kill should beep if not on a file line

From: Eli Zaretskii <[email-masked]>
Date: Sat, 01 Jan 2022 21:13:45 +0200

> From: 積丹尼 Dan Jacobson <[email-masked]>
> Cc: [email-masked]
> Date: Sun, 02 Jan 2022 02:57:51 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <[email-masked]> writes:
> 
> EZ> Why beep?  It does a useful job in that case as well.
> 
> EZ> Closing.
> 
> But whatever it does in that case, it doesn't put it on the kill ring,
> so one cannot yank it.

Of course, it does.  Try "C-y" after that in some other (writable)
buffer, and you will see.

> One just ends up yanking what was already in the kill ring.

Not here.