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 21, 2023
1 parent c2bcac9 commit b073952
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
;; return true if last command or last, last command were digit arguments
((keypression--digit-argument-p keypression--last-command))
Expand Down Expand Up @@ -439,7 +440,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 b073952

Please sign in to comment.