From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs paste password, only pastes one character
Date: Fri, 12 Oct 2012 17:43:06 -0500 [thread overview]
Message-ID: <k5a6dh01gci@news3.newsguy.com> (raw)
In-Reply-To: <k5a5j701g0b@news3.newsguy.com>
Die Fri Oct 12 2012 17:29:03 GMT-0500 (Central Daylight Time) B. T.
Raven <btraven@nihilo.net> scripsit:
> Die Thu Oct 11 2012 21:29:52 GMT-0500 (Central Daylight Time) John Owens
> <john_owens@yahoo.com> scripsit:
>
>> OS X 10.8.2, GNU Emacs 24.2.1.
>>
>> I read my email in Emacs using the "wanderlust" mailer. I store
>> passwords in 1Password, and would like to use the "copy" button in
>> 1Password to put the (~20-character) stored password into the
>> clipboard, then paste it into the request for a password in Emacs. I
>> have confirmed the clipboard is doing the right thing. However, when I
>> C-y yank the password from the clipboard into Emacs, it only pastes a
>> single character. This is annoying; I'd like it to paste the entire
>> clipboard.
>>
>> The function that accepts the password is elmo-read-passwd,
>> http://pastebin.com/3xYGQU5L .
>
> Does the password ever get longer than one character? The end of the
> (while ....) form always truncates the rightmost character.
Oops! That's in the (cond ...) form, just stripping off final control
char (\r \n \e or \b).
>
> If that's not the answer, then look at
> "
> (set-clipboard-coding-system CODING-SYSTEM)
>
> Make CODING-SYSTEM used for communicating with other X clients.
> When sending or receiving text via cut_buffer, selection
> "
>
> I learned here that that variable should not be utf-8 in w32. I don't
> know what it should be under OS-X.
>
> Ed
>>
>> Happy to get any thoughts on how to trick emacs into accepting the
>> entire password!
>>
>> JDO
>>
>>
>>
>
next prev parent reply other threads:[~2012-10-12 22:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.10794.1350009010.855.help-gnu-emacs@gnu.org>
2012-10-12 22:29 ` emacs paste password, only pastes one character B. T. Raven
2012-10-12 22:43 ` B. T. Raven [this message]
2012-10-13 2:33 John Owens
2012-10-13 7:17 ` Andreas Schwab
-- strict thread matches above, loose matches on Subject: below --
2012-10-12 2:29 John Owens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=k5a6dh01gci@news3.newsguy.com \
--to=btraven@nihilo.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.