diff options
| author | Michael Albinus | 2024-02-25 15:37:06 +0100 |
|---|---|---|
| committer | Michael Albinus | 2024-02-25 15:37:06 +0100 |
| commit | e02c4a864f02787f0e194c9e8a6d4ab0b18ca39f (patch) | |
| tree | cc468dd5d0018eaa04a340845c863dfb12c3aa55 | |
| parent | 39e3fce0d5e0f5db00e44905bcd2590170098d63 (diff) | |
| download | emacs-e02c4a864f02787f0e194c9e8a6d4ab0b18ca39f.tar.gz emacs-e02c4a864f02787f0e194c9e8a6d4ab0b18ca39f.zip | |
Modify last change acc to comments
* lisp/simple.el (read-passwd-mode): Change `text' entry of icons.
(read-passwd-toggle-visibility): Rename.
(read-passwd-mode):
* lisp/subr.el (read-passwd-map): Adapt callees.
| -rw-r--r-- | lisp/simple.el | 10 | ||||
| -rw-r--r-- | lisp/subr.el | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 5992afec255..f127290231b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -10866,7 +10866,7 @@ and setting it to nil." | |||
| 10866 | (defvar read-passwd--mode-line-icon nil | 10866 | (defvar read-passwd--mode-line-icon nil |
| 10867 | "Propertized mode line icon for showing/hiding passwords.") | 10867 | "Propertized mode line icon for showing/hiding passwords.") |
| 10868 | 10868 | ||
| 10869 | (defun read-passwd--toggle-visibility () | 10869 | (defun read-passwd-toggle-visibility () |
| 10870 | "Toggle minibuffer contents visibility. | 10870 | "Toggle minibuffer contents visibility. |
| 10871 | Adapt also mode line." | 10871 | Adapt also mode line." |
| 10872 | (interactive) | 10872 | (interactive) |
| @@ -10883,7 +10883,7 @@ Adapt also mode line." | |||
| 10883 | mouse-face mode-line-highlight | 10883 | mouse-face mode-line-highlight |
| 10884 | local-map | 10884 | local-map |
| 10885 | (keymap | 10885 | (keymap |
| 10886 | (mode-line keymap (mouse-1 . read-passwd--toggle-visibility))))) | 10886 | (mode-line keymap (mouse-1 . read-passwd-toggle-visibility))))) |
| 10887 | (force-mode-line-update)) | 10887 | (force-mode-line-update)) |
| 10888 | (read-passwd--hide-password)) | 10888 | (read-passwd--hide-password)) |
| 10889 | 10889 | ||
| @@ -10902,7 +10902,7 @@ Adapt also mode line." | |||
| 10902 | (define-icon read-passwd--show-password-icon nil | 10902 | (define-icon read-passwd--show-password-icon nil |
| 10903 | '((image "reveal.svg" "reveal.pbm" :height (0.8 . em)) | 10903 | '((image "reveal.svg" "reveal.pbm" :height (0.8 . em)) |
| 10904 | (symbol "👁") | 10904 | (symbol "👁") |
| 10905 | (text "o")) | 10905 | (text "<o>")) |
| 10906 | "Mode line icon to show a hidden password." | 10906 | "Mode line icon to show a hidden password." |
| 10907 | :group mode-line-faces | 10907 | :group mode-line-faces |
| 10908 | :version "30.1" | 10908 | :version "30.1" |
| @@ -10910,7 +10910,7 @@ Adapt also mode line." | |||
| 10910 | (define-icon read-passwd--hide-password-icon nil | 10910 | (define-icon read-passwd--hide-password-icon nil |
| 10911 | '((image "conceal.svg" "conceal.pbm" :height (0.8 . em)) | 10911 | '((image "conceal.svg" "conceal.pbm" :height (0.8 . em)) |
| 10912 | (symbol "⦵") | 10912 | (symbol "⦵") |
| 10913 | (text "x")) | 10913 | (text "<\\>")) |
| 10914 | "Mode line icon to hide a visible password." | 10914 | "Mode line icon to hide a visible password." |
| 10915 | :group mode-line-faces | 10915 | :group mode-line-faces |
| 10916 | :version "30.1" | 10916 | :version "30.1" |
| @@ -10937,7 +10937,7 @@ Adapt also mode line." | |||
| 10937 | (setq mode-line-format (cdr mode-line-format))))) | 10937 | (setq mode-line-format (cdr mode-line-format))))) |
| 10938 | 10938 | ||
| 10939 | (when read-passwd-mode | 10939 | (when read-passwd-mode |
| 10940 | (read-passwd--toggle-visibility))) | 10940 | (read-passwd-toggle-visibility))) |
| 10941 | 10941 | ||
| 10942 | 10942 | ||
| 10943 | (defvar messages-buffer-mode-map | 10943 | (defvar messages-buffer-mode-map |
diff --git a/lisp/subr.el b/lisp/subr.el index d89c69976e4..d58f8ba3b27 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -3378,7 +3378,7 @@ with Emacs. Do not call it directly in your own packages." | |||
| 3378 | (let ((map (make-sparse-keymap))) | 3378 | (let ((map (make-sparse-keymap))) |
| 3379 | (set-keymap-parent map minibuffer-local-map) | 3379 | (set-keymap-parent map minibuffer-local-map) |
| 3380 | (define-key map "\C-u" #'delete-minibuffer-contents) ;bug#12570 | 3380 | (define-key map "\C-u" #'delete-minibuffer-contents) ;bug#12570 |
| 3381 | (define-key map "\t" #'read-passwd--toggle-visibility) | 3381 | (define-key map "\t" #'read-passwd-toggle-visibility) |
| 3382 | map) | 3382 | map) |
| 3383 | "Keymap used while reading passwords.") | 3383 | "Keymap used while reading passwords.") |
| 3384 | 3384 | ||