unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* two more bugs of read-passwd
@ 2006-05-24  3:44 Kazu Yamamoto
  2006-05-25  0:37 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Kazu Yamamoto @ 2006-05-24  3:44 UTC (permalink / raw)


Hello,

Two more bugs of read-paswd of CVS Emacs:

1) The following code should return "quit case" if a user type C-g.
   But it just quits.

(condition-case nil
    (read-passwd "password: ")
  (quit "quit case"))

2) The following code should return nil if a user type C-g.
   But it just quits.

(let ((inhibit-quit t))
  (read-passwd "password: "))

--Kazu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: two more bugs of read-passwd
  2006-05-24  3:44 two more bugs of read-passwd Kazu Yamamoto
@ 2006-05-25  0:37 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2006-05-25  0:37 UTC (permalink / raw)
  Cc: emacs-devel

    (condition-case nil
	(read-passwd "password: ")
      (quit "quit case"))

I fixed that.

    (let ((inhibit-quit t))
      (read-passwd "password: "))

You need to set quit-flag to nil
after read-passwd returns, or it will cause a quit later.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-25  0:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-24  3:44 two more bugs of read-passwd Kazu Yamamoto
2006-05-25  0:37 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).