[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/keycast 6d75f149a7 20/31: keycast--update: New name for ke
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/keycast 6d75f149a7 20/31: keycast--update: New name for keycast-mode-line-update |
Date: |
Sun, 9 Jan 2022 05:58:46 -0500 (EST) |
branch: elpa/keycast
commit 6d75f149a767779d8ac44bc2a13186e9dd61aff6
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
keycast--update: New name for keycast-mode-line-update
Preparing for use by a second minor-mode.
---
keycast.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/keycast.el b/keycast.el
index 5f869a56f1..7e76e78122 100644
--- a/keycast.el
+++ b/keycast.el
@@ -166,8 +166,7 @@ instead."
(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'."
+(defun keycast--update ()
(if (eq last-command this-command)
(cl-incf keycast--command-repetitions)
(setq keycast--command-repetitions 0))
@@ -224,7 +223,7 @@ instead."
(setcdr cons (list 'mode-line-keycast)))
(t
(setcdr cons (cons 'mode-line-keycast (cdr cons)))))
- (add-hook 'pre-command-hook 'keycast-mode-line-update t))
+ (add-hook 'pre-command-hook 'keycast--update t))
(let ((cons (memq 'mode-line-keycast mode-line-format)))
(cond (keycast--removed-tail
(setcar cons (car keycast--removed-tail))
@@ -233,7 +232,7 @@ instead."
(setcar cons (cadr cons))
(setcdr cons (cddr cons)))))
(setq keycast--removed-tail nil)
- (remove-hook 'pre-command-hook 'keycast-mode-line-update)))
+ (remove-hook 'pre-command-hook 'keycast--update)))
(defun keycast--tree-member (elt tree)
(or (member elt tree)
- [nongnu] elpa/keycast a912c4db1b 14/31: Locate keycast-insert-after anywhere in mode-line-format, (continued)
- [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
- [nongnu] elpa/keycast 6d75f149a7 20/31: keycast--update: New name for keycast-mode-line-update,
ELPA Syncer <=
- [nongnu] elpa/keycast 3a8c4db51a 21/31: keycast-log-mode: New mode, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 04ba7519f3 29/31: Use keycast--tree-member when disabling keycast-mode as well, ELPA Syncer, 2022/01/09
- [nongnu] elpa/keycast 2c94648442 30/31: Fix keycast-log-mode breakage when reading a password, ELPA Syncer, 2022/01/09