Subject: Re: bug#17127: `call-process' circumvents password concealment w/ `read-passwd'

From: Nathan Trapuzzano <[email-masked]>
Date: Thu, 27 Mar 2014 22:39:41 -0400

Stefan Monnier <[email-masked]> writes:

> This looks fairly contrived.  How did you stumble upon this problem?

Copy/pasting passwords from console password manager to emacs running on
terminal emulator in X.  The built-in copy/paste functionaly for the X
clipboard only works (AFAIK) with graphical emacs, so I use my own
commands to make it work on a terminal.  Here's the one that made me
catch it:

(defun paste-from-X-clipboard ()
  "Insert the X clipboard contents at point."
  (interactive)
  (call-process "xclip" nil t nil "-selection" "clipboard" "-o"))

I use that to paste passwords when, e.g., finding remote files via
ssh/TRAMP.