Skip to content

Commit

Permalink
Change internal name and add docstring
Browse files Browse the repository at this point in the history
This one kind of confused me

Signed-off-by: Psionik K <[email protected]>
  • Loading branch information
psionic-k committed Nov 22, 2023
1 parent 39947fd commit 591a86a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions keypression.el
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ and show the value of `this-command' logged in the
(and keypression-concat-digit-argument
(memq command '(digit-argument universal-argument universal-argument-more))))

(defun keypression--same-command-p (command)
(defun keypression--digit-prefix-p (command)
"Should we fold digit arguments and commands for COMMAND."
(cond
((keypression--digit-argument-p keypression--last-command))
((keypression--digit-argument-p command)
Expand Down Expand Up @@ -436,7 +437,7 @@ Command filtering logic is in the `keypression-post--command'."
(digit-arg (keypression--digit-argument-p command))
(before-digit-arg (keypression--digit-argument-p keypression--last-command)))
(cond
((and (keypression--same-command-p command)
((and (keypression--digit-prefix-p command)
(or self-insert same-key digit-arg before-digit-arg))
;; Just rewrite the bottom line.
(let ((str (cond
Expand Down

0 comments on commit 591a86a

Please sign in to comment.