GNU bug report logs - #52926
dired-copy-filename-as-kill should beep if not on a file line

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sat, 1 Jan 2022 03:25:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52926 in the body.
You can then email your comments to 52926 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#52926; Package emacs. (Sat, 01 Jan 2022 03:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 01 Jan 2022 03:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: dired-copy-filename-as-kill should beep if not on a file line
Date: Sat, 01 Jan 2022 11:24:25 +0800
w runs the command dired-copy-filename-as-kill.
But if it is not on a filename, e.g., on the "total" line,
or on the line at the end of the buffer with no file on it,
it should beep.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 01 Jan 2022 07:18:01 GMT) Full text and rfc822 format available.

Notification sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
bug acknowledged by developer. (Sat, 01 Jan 2022 07:18:01 GMT) Full text and rfc822 format available.

Message #10 received at 52926-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 52926-done <at> debbugs.gnu.org
Subject: Re: bug#52926: dired-copy-filename-as-kill should beep if not on a
 file line
Date: Sat, 01 Jan 2022 09:17:13 +0200
> From: 積丹尼 Dan Jacobson
>  <jidanni <at> jidanni.org>
> Date: Sat, 01 Jan 2022 11:24:25 +0800
> 
> w runs the command dired-copy-filename-as-kill.
> But if it is not on a filename, e.g., on the "total" line,
> or on the line at the end of the buffer with no file on it,
> it should beep.

Why beep?  It does a useful job in that case as well.

Closing.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52926; Package emacs. (Sat, 01 Jan 2022 18:58:01 GMT) Full text and rfc822 format available.

Message #13 received at 52926-done <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 52926-done <at> debbugs.gnu.org
Subject: Re: bug#52926: dired-copy-filename-as-kill should beep if not on a
 file line
Date: Sun, 02 Jan 2022 02:57:51 +0800
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> 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. One just ends up yanking what was already in the
kill ring.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52926; Package emacs. (Sat, 01 Jan 2022 19:14:01 GMT) Full text and rfc822 format available.

Message #16 received at 52926 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 52926 <at> debbugs.gnu.org
Subject: Re: bug#52926: dired-copy-filename-as-kill should beep if not on a
 file line
Date: Sat, 01 Jan 2022 21:13:45 +0200
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 52926-done <at> debbugs.gnu.org
> Date: Sun, 02 Jan 2022 02:57:51 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52926; Package emacs. (Sat, 01 Jan 2022 19:49:01 GMT) Full text and rfc822 format available.

Message #19 received at 52926 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 52926 <at> debbugs.gnu.org
Subject: Re: bug#52926: dired-copy-filename-as-kill should beep if not on a
 file line
Date: Sun, 02 Jan 2022 03:48:38 +0800
 C-x d			      ;; dired-at-point
 <return>		      ;; exit-minibuffer
 <up>			      ;; dired-previous-line
 <up>			      ;; dired-previous-line

Now I am on the line that says
"total used in directory 198228 available 3.5 GiB"

 w			      ;; dired-copy-filename-as-kill
 C-x b			      ;; switch-to-buffer
 b			      ;; self-insert-command
 <return>		      ;; minibuffer-complete-and-exit
 C-y			      ;; yank

There is nothing to yank.

emacs-version "27.1"




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52926; Package emacs. (Sat, 01 Jan 2022 19:59:01 GMT) Full text and rfc822 format available.

Message #22 received at 52926 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 52926 <at> debbugs.gnu.org
Subject: Re: bug#52926: dired-copy-filename-as-kill should beep if not on a
 file line
Date: Sat, 01 Jan 2022 21:58:11 +0200
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 52926 <at> debbugs.gnu.org
> Date: Sun, 02 Jan 2022 03:48:38 +0800
> 
> There is nothing to yank.
> 
> emacs-version "27.1"

This is already fixed in later Emacs versions.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 30 Jan 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 142 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.