GNU bug report logs - #9563
dired-copy-filename-as-kill doesn't copy file names to PRIMARY selection

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Tue, 20 Sep 2011 16:46:01 UTC

Severity: normal

Tags: wontfix

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> jurta.org>
To: bug-gnu-emacs <at> gnu.org
Subject: dired-copy-filename-as-kill doesn't copy file names to PRIMARY
	selection
Date: Tue, 20 Sep 2011 19:20:30 +0300
The default behavior is dangerous now on GNU/Linux,
it may delete random files.

Steps to reproduce the problem:

1. emacs -Q
2. Open a shell script, mark a multi-line region with a few commands
   and copy it with `M-w'.
3. Forget it.
4. Open a Dired buffer.
5. Copy a file name with `M-0 w'.
6. Open xterm.
7. Paste the copied file name with `S-Insert'.

Instead of pasting the copied file name
it starts executing random commands,
i.e. if text copied at step 2 contains newlines,
it's submitted for execution to the shell.

The problem is that `M-w' puts copied text to the primary selection
while `M-0 w' in Dired does not.

I think `dired-copy-filename-as-kill' should do the same
as `deactivate-mark' does with (x-set-selection 'PRIMARY ...)




This bug report was last modified 7 years and 175 days ago.

Previous Next


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