From: Paul Eggert Date: Mon, 18 May 2020 22:42:18 +0000 (-0700) Subject: Improve password-cache-add example in comment X-Git-Tag: emacs-28.0.90~7323 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b1cd1f0b5aaf8030a7a4c6111cc8b18645f294e2;p=emacs.git Improve password-cache-add example in comment * lisp/password-cache.el: Improve comment. See Andreas Schwab in: https://lists.gnu.org/r/emacs-devel/2020-05/msg02422.html --- diff --git a/lisp/password-cache.el b/lisp/password-cache.el index 86d802f283c..f5007579a8a 100644 --- a/lisp/password-cache.el +++ b/lisp/password-cache.el @@ -31,7 +31,8 @@ ;; ;; Minibuffer prompt for password. ;; => "foo" ;; -;; (password-cache-add "test" (copy-sequence "foo")) +;; (password-cache-add "test" (read-passwd "Password? ")) +;; ;; Minibuffer prompt from read-passwd, which returns "foo". ;; => nil ;; (password-read "Password? " "test")