]> git.eshelyaron.com Git - emacs.git/commit
'read-passwd' can toggle the visibility of passwords
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 25 Feb 2024 09:06:09 +0000 (10:06 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:52:49 +0000 (18:52 +0100)
commit1bd6db833177f450e200c074e8ce58bf7784857a
tree11f57c19512b893ca778f005feff9ef698504c2e
parent4998162e6ec19bda17f11068b17666853fbfa844
'read-passwd' can toggle the visibility of passwords

* doc/lispref/minibuf.texi (Reading a Password):
* etc/NEWS: 'read-passwd' can toggle the visibility of passwords.

* etc/images/README: Mention the new images below.
* etc/images/conceal.pbm:
* etc/images/conceal.svg:
* etc/images/reveal.pbm:
* etc/images/reveal.svg: New images.

* lisp/simple.el (read-passwd--mode-line-buffer)
(read-passwd--mode-line-icon): New defvars.
(read-passwd--toggle-visibility, read-passwd-mode): New defuns.

* lisp/subr.el (read-passwd-map): Add 'TAB' binding.
(read-passwd--hide-password): New defvar.
(read-passwd--hide-password): Rename function from
`read-password--hide-password'.  Adapt callees.  Implement both
hiding and showing the password.  (Bug#69237)
(read-passwd): Call `read-passwd-mode'.

(cherry picked from commit 39e3fce0d5e0f5db00e44905bcd2590170098d63)
doc/lispref/minibuf.texi
etc/NEWS
etc/images/README
etc/images/conceal.pbm [new file with mode: 0644]
etc/images/conceal.svg [new file with mode: 0644]
etc/images/reveal.pbm [new file with mode: 0644]
etc/images/reveal.svg [new file with mode: 0644]
lisp/simple.el
lisp/subr.el