aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2020-05-18 15:42:18 -0700
committerPaul Eggert2020-05-18 15:47:25 -0700
commitb1cd1f0b5aaf8030a7a4c6111cc8b18645f294e2 (patch)
tree94b376105f9417c1e276b6f69f59f42de1a2d003
parent3d1bcfba5e21b29be8669aa2a8f27b344c9e02fd (diff)
downloademacs-b1cd1f0b5aaf8030a7a4c6111cc8b18645f294e2.tar.gz
emacs-b1cd1f0b5aaf8030a7a4c6111cc8b18645f294e2.zip
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
-rw-r--r--lisp/password-cache.el3
1 files changed, 2 insertions, 1 deletions
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 @@
31;; ;; Minibuffer prompt for password. 31;; ;; Minibuffer prompt for password.
32;; => "foo" 32;; => "foo"
33;; 33;;
34;; (password-cache-add "test" (copy-sequence "foo")) 34;; (password-cache-add "test" (read-passwd "Password? "))
35;; ;; Minibuffer prompt from read-passwd, which returns "foo".
35;; => nil 36;; => nil
36 37
37;; (password-read "Password? " "test") 38;; (password-read "Password? " "test")