[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/keycast ab41be43b6 09/31: Suppress output while reading pa
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/keycast ab41be43b6 09/31: Suppress output while reading password |
Date: |
Sun, 9 Jan 2022 05:58:37 -0500 (EST) |
branch: elpa/keycast
commit ab41be43b6d9efd5eff5ad7f22a997cc41e8daf0
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Suppress output while reading password
Closes #8.
---
keycast.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/keycast.el b/keycast.el
index 368a94265a..23aca2f59c 100644
--- a/keycast.el
+++ b/keycast.el
@@ -148,6 +148,7 @@ instead."
(defvar keycast--this-command nil)
(defvar keycast--this-command-keys nil)
(defvar keycast--command-repetitions 0)
+(defvar keycast--reading-passwd nil)
(defun keycast-mode-line-update ()
"Update mode line with current `this-command' and `this-command-keys'."
@@ -209,6 +210,7 @@ instead."
(defvar mode-line-keycast
'(:eval
(and (funcall keycast-window-predicate)
+ (not keycast--reading-passwd)
(let* ((key (ignore-errors
(key-description keycast--this-command-keys)))
(cmd keycast--this-command)
@@ -232,6 +234,12 @@ instead."
(put 'mode-line-keycast 'risky-local-variable t)
(make-variable-buffer-local 'mode-line-keycast)
+(defun keycast--read-passwd (fn prompt &optional confirm default)
+ (let ((keycast--reading-passwd t))
+ (funcall fn prompt confirm default)))
+
+(advice-add 'read-passwd :around #'keycast--read-passwd)
+
;;; _
(provide 'keycast)
;; Local Variables:
- [nongnu] elpa/keycast cf475dcb5a 18/31: keycast--format: New function, (continued)
- [nongnu] elpa/keycast cf475dcb5a 18/31: keycast--format: New function, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 7bbebe6442 08/31: Add .github/FUNDING.yml, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 44f53d7cc6 10/31: Limit updating of mode-line, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast b02892ec77 24/31: Show only type for non-symbol bindings, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 3beccc4789 26/31: Load compile-time dependencies for older Emacsen, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast a5257bca3d 31/31: Release version 1.1.2, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast d54a8ebc08 27/31: Restore updating while in minibuffer, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 0d28c26b07 02/31: Fix typo, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 46370b8a72 03/31: Change screenshot url, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast adb55497c0 13/31: Bump copyright years, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast ab41be43b6 09/31: Suppress output while reading password,
ELPA Syncer <=
- [nongnu] elpa/keycast a912c4db1b 14/31: Locate keycast-insert-after anywhere in mode-line-format, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 032a51c3c4 17/31: Fix two doc-string typos, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 08c0e999ac 22/31: keycast--read-passwd: Move definition, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast a3a0798349 25/31: Explicitly support compact mode line, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 038475c178 15/31: mode-line-keycast-format: New variable, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast eecef23534 23/31: Use this-single-command-keys, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast a12ef1fb48 28/31: Add SPDX-License-Identifier library header, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast c855511785 04/31: Insert `mode-line-keycast` into `mode-line-format` before `(cdr cons)`, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast fe416461b1 07/31: keycast-mode: Add usage hint to error message, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast e635c7fbe4 19/31: keycast--format: Don't pad %K, ELPA Syncer, 2022/01/09