]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix typos in 'which-key-mode' (bug#72093)
authorjohn muhl <jm@pub.pink>
Wed, 10 Jul 2024 22:13:58 +0000 (17:13 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 17 Jul 2024 17:38:56 +0000 (19:38 +0200)
* lisp/which-key.el (which-key-preserve-window-configuration):
Correct spelling of "taken".
(which-key--create-pages): Correct spelling of "widths".
(which-key--start-paging-timer): Correct spelling of
"secondary".

(cherry picked from commit e6f78485aa66ff762376702fc97a14a4dfe9b258)

lisp/which-key.el

index 677a84b328db1f2d7cf11d8707148b7ac3e88adb..37b42a009f736e99614991fb1b7afcd982a3ef74 100644 (file)
@@ -444,7 +444,7 @@ Note that `which-key-idle-delay' should be set before turning on
 If non-nil, save window configuration before which-key buffer is
 shown and restore it after which-key buffer is hidden.  It
 prevents which-key from changing window position of visible
-buffers.  Only takken into account when popup type is
+buffers.  Only taken into account when popup type is
 side-window."
   :type 'boolean
   :package-version "1.0" :version "30.1")
@@ -2113,7 +2113,7 @@ should be minimized."
 (defun which-key--create-pages (keys &optional prefix-keys prefix-title)
   "Create page strings using `which-key--list-to-pages'.
 Will try to find the best number of rows and columns using the
-given dimensions and the length and wdiths of KEYS.  SEL-WIN-WIDTH
+given dimensions and the length and widths of KEYS.  SEL-WIN-WIDTH
 is the width of the live window."
   (let* ((max-dims (which-key--popup-max-dimensions))
          (max-lines (car max-dims))
@@ -2825,7 +2825,7 @@ Finally, show the buffer."
                                             (funcall which-key-this-command-keys-function)))))
                    (cancel-timer which-key--paging-timer)
                    (if which-key-idle-secondary-delay
-                       ;; we haven't executed a command yet so the secandary
+                       ;; we haven't executed a command yet so the secondary
                        ;; timer is more relevant here
                        (which-key--start-timer which-key-idle-secondary-delay t)
                      (which-key--start-timer)))))))