Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

emacs paste password, only pastes one character

8 views
Skip to first unread message

John Owens

unread,
Oct 11, 2012, 10:29:52 PM10/11/12
to help-gn...@gnu.org
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 .

Happy to get any thoughts on how to trick emacs into accepting the
entire password!

JDO



B. T. Raven

unread,
Oct 12, 2012, 6:29:03 PM10/12/12
to
Die Thu Oct 11 2012 21:29:52 GMT-0500 (Central Daylight Time) John Owens
<john_...@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.

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

B. T. Raven

unread,
Oct 12, 2012, 6:43:06 PM10/12/12
to
Die Fri Oct 12 2012 17:29:03 GMT-0500 (Central Daylight Time) B. T.
Raven <btr...@nihilo.net> scripsit:

> Die Thu Oct 11 2012 21:29:52 GMT-0500 (Central Daylight Time) John Owens
> <john_...@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).
0 new messages