unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52926: dired-copy-filename-as-kill should beep if not on a file line
@ 2022-01-01  3:24 積丹尼 Dan Jacobson
  2022-01-01  7:17 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: 積丹尼 Dan Jacobson @ 2022-01-01  3:24 UTC (permalink / raw)
  To: 52926

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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#52926: dired-copy-filename-as-kill should beep if not on a file line
  2022-01-01  3:24 bug#52926: dired-copy-filename-as-kill should beep if not on a file line 積丹尼 Dan Jacobson
@ 2022-01-01  7:17 ` Eli Zaretskii
  2022-01-01 18:57   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2022-01-01  7:17 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 52926-done

> From: 積丹尼 Dan Jacobson
>  <jidanni@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#52926: dired-copy-filename-as-kill should beep if not on a file line
  2022-01-01  7:17 ` Eli Zaretskii
@ 2022-01-01 18:57   ` 積丹尼 Dan Jacobson
  2022-01-01 19:13     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: 積丹尼 Dan Jacobson @ 2022-01-01 18:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 52926-done

>>>>> "EZ" == Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#52926: dired-copy-filename-as-kill should beep if not on a file line
  2022-01-01 18:57   ` 積丹尼 Dan Jacobson
@ 2022-01-01 19:13     ` Eli Zaretskii
  2022-01-01 19:48       ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2022-01-01 19:13 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 52926

> From: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
> Cc: 52926-done@debbugs.gnu.org
> Date: Sun, 02 Jan 2022 02:57:51 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#52926: dired-copy-filename-as-kill should beep if not on a file line
  2022-01-01 19:13     ` Eli Zaretskii
@ 2022-01-01 19:48       ` 積丹尼 Dan Jacobson
  2022-01-01 19:58         ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: 積丹尼 Dan Jacobson @ 2022-01-01 19:48 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 52926

 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"





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#52926: dired-copy-filename-as-kill should beep if not on a file line
  2022-01-01 19:48       ` 積丹尼 Dan Jacobson
@ 2022-01-01 19:58         ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2022-01-01 19:58 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 52926

> From: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
> Cc: 52926@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-01 19:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-01  3:24 bug#52926: dired-copy-filename-as-kill should beep if not on a file line 積丹尼 Dan Jacobson
2022-01-01  7:17 ` Eli Zaretskii
2022-01-01 18:57   ` 積丹尼 Dan Jacobson
2022-01-01 19:13     ` Eli Zaretskii
2022-01-01 19:48       ` 積丹尼 Dan Jacobson
2022-01-01 19:58         ` Eli Zaretskii

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).