diff options
author | Richard M. Stallman <[email protected]> | 2002-01-07 05:31:29 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 2002-01-07 05:31:29 +0000 |
commit | 4de547e4a7344c26c0bc04915b27371b335ceb14 (patch) | |
tree | bd47030b92cdb95f1222a4b2ce595db5e7908ef0 /lisp/dired.el | |
parent | ea127bf417eb745c9444a97441112a9c33893266 (diff) |
(dired-copy-filename-as-kill): Call kill-append if following a kill command.
Diffstat (limited to 'lisp/dired.el')
-rw-r--r-- | lisp/dired.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 48296ba26a..0ad019a321 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1615,7 +1615,9 @@ You can then feed the file name(s) to other commands with \\[yank]." (dired-get-marked-files t))) (dired-get-marked-files 'no-dir)) " ")))) - (kill-new string) + (if (eq last-command 'kill-region) + (kill-append string nil) + (kill-new string)) (message "%s" string))) |