[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: a bug of read-passwd]
From: |
Chong Yidong |
Subject: |
Re: address@hidden: a bug of read-passwd] |
Date: |
Sat, 15 Jul 2006 23:54:42 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> Recent changes of Emacs introduces a new bug to read-passwd. If
> read-passwd is called a filter of an asynchronous process and the
> parent code executes sit-for, the cursor goes away from the minibuffer
> and we cannot input our password.
>
> The following code can reproduce this:
>
> (defvar my-check nil)
>
> (defun my-filter (process string)
> (set-buffer (process-buffer process))
> (read-passwd "Password: ")
> (setq my-check nil))
>
> (let ((pro (start-process "*sh*" (current-buffer) "/bin/sh")))
> (setq my-check t)
> (set-process-filter pro 'my-filter)
> (while my-check
> (sit-for 0.1)
> (discard-input)))
Does the code work if you remove the (discard-input)?
- address@hidden: a bug of read-passwd], Richard Stallman, 2006/07/15
- Re: address@hidden: a bug of read-passwd],
Chong Yidong <=
- Re: address@hidden: a bug of read-passwd], 山本和彦, 2006/07/18
- Re: a bug of read-passwd, Richard Stallman, 2006/07/22
- Re: a bug of read-passwd, Chong Yidong, 2006/07/24
- Re: a bug of read-passwd, Chong Yidong, 2006/07/24
- Re: a bug of read-passwd, Stefan Monnier, 2006/07/24
- Re: a bug of read-passwd, Chong Yidong, 2006/07/24