summaryrefslogtreecommitdiff
path: root/itches/emacs/read-passwd-reveal.patch
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2024-02-25 18:15:57 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2024-02-25 18:15:57 +0100
commit5e452997c5d46520ab7c5bb54dd5ffeecfe39005 (patch)
tree061ff481b6fe9eb98575a6ca8bdf85e3c618f11c /itches/emacs/read-passwd-reveal.patch
parent3295c03de62fc53fa5b426f5352ac3dc8d908564 (diff)
downloadmemory-leaks-5e452997c5d46520ab7c5bb54dd5ffeecfe39005.tar.xz
Remove itch scratched by someone else
Diffstat (limited to 'itches/emacs/read-passwd-reveal.patch')
-rw-r--r--itches/emacs/read-passwd-reveal.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/itches/emacs/read-passwd-reveal.patch b/itches/emacs/read-passwd-reveal.patch
deleted file mode 100644
index 09eba80..0000000
--- a/itches/emacs/read-passwd-reveal.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff --git a/lisp/subr.el b/lisp/subr.el
-index 06ea503da6..da9253cedd 100644
---- a/lisp/subr.el
-+++ b/lisp/subr.el
-@@ -2820,6 +2820,7 @@ read-passwd-map
- ;; minibuffer-local-map along the way!
- (let ((map (make-sparse-keymap)))
- (set-keymap-parent map minibuffer-local-map)
-+ (define-key map "\C-c\C-c" #'read-passwd-toggle-visibility)
- (define-key map "\C-u" #'delete-minibuffer-contents) ;bug#12570
- map)
- "Keymap used while reading passwords.")
-@@ -2830,6 +2831,14 @@ read-password--hide-password
- (put-text-property (+ i beg) (+ 1 i beg)
- 'display (string (or read-hide-char ?*))))))
-
-+(defun read-passwd-toggle-visibility ()
-+ (interactive)
-+ (if (member #'read-password--hide-password post-command-hook)
-+ (progn
-+ (remove-hook 'post-command-hook #'read-password--hide-password t)
-+ (remove-text-properties (minibuffer-prompt-end) (point-max) '(display)))
-+ (add-hook 'post-command-hook #'read-password--hide-password nil t)))
-+
- (defun read-passwd (prompt &optional confirm default)
- "Read a password, prompting with PROMPT, and return it.
- If optional CONFIRM is non-nil, read the password twice to make sure.
-