diff --git a/lisp/auth-source.el b/lisp/auth-source.el index 557d360bc6a..1e0cde75583 100644 --- a/lisp/auth-source.el +++ b/lisp/auth-source.el @@ -2599,7 +2599,7 @@ by doing (clear-string STRING)." ;; Not sure why but it seems that there might be cases where the ;; minibuffer is not always properly reset later on, so undo ;; whatever we've done here (bug#11392). - (remove-hook 'after-change-functions + (remove-hook 'post-command-hook #'read-passwd--hide-password 'local) (kill-local-variable 'post-self-insert-hook) ;; And of course, don't keep the sensitive data around.