mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
Copy just non-empty strings to kill-ring
* lisp/dired.el (dired-copy-filename-as-kill): Do not change the kill ring when the string is empty (Bug#24103).
This commit is contained in:
parent
9c542a23a8
commit
d81dc05258
@ -2467,10 +2467,11 @@ You can then feed the file name(s) to other commands with \\[yank]."
|
||||
'no-dir (prefix-numeric-value arg))))
|
||||
(dired-get-marked-files 'no-dir))
|
||||
" "))))
|
||||
(if (eq last-command 'kill-region)
|
||||
(kill-append string nil)
|
||||
(kill-new string))
|
||||
(message "%s" string)))
|
||||
(unless (string= string "")
|
||||
(if (eq last-command 'kill-region)
|
||||
(kill-append string nil)
|
||||
(kill-new string))
|
||||
(message "%s" string))))
|
||||
|
||||
|
||||
;; Keeping Dired buffers in sync with the filesystem and with each other
|
||||
|
Loading…
Reference in New Issue
Block a user