[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible emacs bug when type password fields

From: Stefan Monnier
Subject: Re: Possible emacs bug when type password fields
Date: Tue, 05 May 2009 21:21:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux)

> Sorry for late reply. I patched using your diffs, and it works, however
> i seen new issues, e.g. when I press C-g in this input password is
> not cancelling this command and writes some additional characters
> to the password field.

Thanks.  The additional patch below should fix this (and another
potential problem as well if you hit keys like down/up/...).


=== modified file 'lisp/subr.el'
--- lisp/subr.el        2009-05-02 00:32:01 +0000
+++ lisp/subr.el        2009-05-06 01:21:02 +0000
@@ -1997,10 +1997,11 @@
                     (and (arrayp pass) (clear-string pass))
                     (setq pass new-pass))))
                ((not (numberp c)))
-               ((= c ?\C-u) ; kill line
+               ((eq c ?\C-u) ; kill line
                 (and (arrayp pass) (clear-string pass))
                 (setq pass ""))
-               ((= c ?\C-y) ; yank
+                ((eq c ?\C-g) (signal 'quit nil))
+               ((eq c ?\C-y) ; yank
                 (let* ((str (condition-case nil
                                 (current-kill 0)
                               (error nil)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]