branch: elpa/dirvish
commit b1476bc94734589c90aefbebb586bd4adc1694d5
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: GitHub <nore...@github.com>

    chore: fix typos (#227)
    
    * fix(yank): silence byte-compiler
    
    * fix(core): fix typo in custom type declaration
    
    * chore: fix typo in name of let-bound variable
    
    * chore: fix typos URLs
    
    * chore: fix typos in documentation
    
    ---------
    
    Co-authored-by: Alex Lu <hellosimon1...@hotmail.com>
---
 dirvish.el                    | 10 +++++-----
 docs/CHANGELOG.org            | 22 +++++++++++-----------
 docs/COMPARISON.org           |  6 +++---
 docs/CUSTOMIZING.org          |  4 ++--
 docs/EXTENSIONS.org           |  2 +-
 extensions/dirvish-emerge.el  |  4 ++--
 extensions/dirvish-ls.el      |  2 +-
 extensions/dirvish-subtree.el |  2 +-
 extensions/dirvish-yank.el    |  1 -
 9 files changed, 26 insertions(+), 27 deletions(-)

diff --git a/dirvish.el b/dirvish.el
index b827d0a539..64a4f85b7b 100644
--- a/dirvish.el
+++ b/dirvish.el
@@ -121,11 +121,11 @@ and H-FRAME represent the height of mode line in single 
window
 state and fullframe state respectively.  If this value is a
 integer INT, it is seen as a shorthand for (INT . INT)."
   :group 'dirvish
-  :type '(choice interger (cons integer integer)))
+  :type '(choice integer (cons integer integer)))
 
 (defcustom dirvish-header-line-height 30
   "Like `dirvish-mode-line-height', but for header line."
-  :type '(choice interger (cons integer integer)))
+  :type '(choice integer (cons integer integer)))
 
 (defcustom dirvish-mode-line-format
   '(:left (sort omit symlink) :right (index))
@@ -262,7 +262,7 @@ input for `dirvish-redisplay-debounce' seconds."
 ;;;; Macros
 
 (defmacro dirvish-prop (prop &rest body)
-  "Retrive PROP from `dirvish--props'.
+  "Retrieve PROP from `dirvish--props'.
 Set the PROP with BODY if given."
   (declare (indent defun))
   `(let* ((pair (assq ,prop dirvish--props)) (val (cdr pair)))
@@ -940,10 +940,10 @@ If HEADER, set the `dirvish--header-line-fmt' instead."
                            `(:eval (,(intern (format "dirvish-%s-ml" s)) 
(dirvish-curr))))))
               (get-font-scale ()
                 (let* ((face (if header 'header-line 'mode-line-inactive))
-                       (defualt (face-attribute 'default :height))
+                       (default (face-attribute 'default :height))
                        (ml-height (face-attribute face :height)))
                   (cond ((floatp ml-height) ml-height)
-                        ((integerp ml-height) (/ (float ml-height) defualt))
+                        ((integerp ml-height) (/ (float ml-height) default))
                         (t 1)))))
     `((:eval
        (let* ((dv (dirvish-curr))
diff --git a/docs/CHANGELOG.org b/docs/CHANGELOG.org
index c6b2e61d51..a72eaa6b04 100644
--- a/docs/CHANGELOG.org
+++ b/docs/CHANGELOG.org
@@ -89,7 +89,7 @@
 
 ** Changes since 1.8.14
 
-+ =ls=: apply switches to current session on M-RET 
([[https://github.com/alexluigit/dirvish/issus/63][#63]])
++ =ls=: apply switches to current session on M-RET 
([[https://github.com/alexluigit/dirvish/issues/63][#63]])
 + =narrow=: C-g to cancel the narrowing / custom regex builder
 + =emerge=:
   - Add ~dirvish-emerge-toggle-current-group~ command to to toggle the 
visibility of the group
@@ -101,23 +101,23 @@
 
 + =core=:
   - revert to `dirvish-mode` after quit `wdired-mode`
-  - guard `dired-current-directory` in dwim target 
([[https://github.com/alexluigit/dirvish/issus/78][#78]])
+  - guard `dired-current-directory` in dwim target 
([[https://github.com/alexluigit/dirvish/issues/78][#78]])
   - scroll preview util buffer with `scroll-other-window`
   - set buffer-modified-p to nil at startup
   - kill session util buffers on dirvish-kill-buffer-h
   - rename obsolete command in `dirvish-dispatch`
   - highlight current line in any case
-  - reuse fullscreen sessions unconditionally 
([[https://github.com/alexluigit/dirvish/issus/64][#64]])
-  - kill overlapping session correctly 
([[https://github.com/alexluigit/dirvish/issus/64][#64]])
+  - reuse fullscreen sessions unconditionally 
([[https://github.com/alexluigit/dirvish/issues/64][#64]])
+  - kill overlapping session correctly 
([[https://github.com/alexluigit/dirvish/issues/64][#64]])
 + =emerge=:
   - apply changes in transient menu to buffer
   - infinite while loop
   - expunge invisible overlay property
 + =subtree=: revert subtrees after emerging groups
-+ =extras=: increase file size string length to 8 
([[https://github.com/alexluigit/dirvish/issus/77][#77]])
-+ =peek=: get candidate retriever at runtime 
([[https://github.com/alexluigit/dirvish/issus/70][#70]])
-+ =bookmark=: void variable error 
([[https://github.com/alexluigit/dirvish/issus/75][#75]])
-+ =narrow=: drop the overlay approach, accommodate subtree 
([[https://github.com/alexluigit/dirvish/issus/67][#67]])
++ =extras=: increase file size string length to 8 
([[https://github.com/alexluigit/dirvish/issues/77][#77]])
++ =peek=: get candidate retriever at runtime 
([[https://github.com/alexluigit/dirvish/issues/70][#70]])
++ =bookmark=: void variable error 
([[https://github.com/alexluigit/dirvish/issues/75][#75]])
++ =narrow=: drop the overlay approach, accommodate subtree 
([[https://github.com/alexluigit/dirvish/issues/67][#67]])
 
 * 1.8.14
 ** Breaking changes
@@ -173,7 +173,7 @@ even outperforms Dired in terms of opening big directories.
 + =extras=: add ~dirvish-switch-layout~ command 
([[https://github.com/alexluigit/dirvish/issues/33][#33]])
 + =core=: add symlink mode line 
([[https://github.com/alexluigit/dirvish/issues/41][#41]])
 + =extras=: make ~file-size~ files count in directories 
([[https://github.com/alexluigit/dirvish/issues/40][#40]])
-+ =core=: add ~dirvish-dwim~ commmand
++ =core=: add ~dirvish-dwim~ command
 + =core=: add auto cache facility 
([[https://github.com/alexluigit/dirvish/issues/28][#28]])
 + =extras=: add ~dirvish-go-forward/backward-history~ cmds 
([[https://github.com/alexluigit/dirvish/issues/32][#32]])
 + =yank=: add ~dirvish-yank-overwrite-existing-files~ option 
([[https://github.com/alexluigit/dirvish/issues/38][#38]])
@@ -195,7 +195,7 @@ even outperforms Dired in terms of opening big directories.
 + =core=: remove builtin attributes from dirvish--available-attrs
 + =core=: remove redundant session initialization
 + =core=: find-dired mode-line segment
-+ =core=: retrive path for auto cache correctly
++ =core=: retrieve path for auto cache correctly
 + =extras=: file permission error
 + =yank=: remote-to-remote handler
 + =core=: preserve size of header window when showing transient
@@ -245,7 +245,7 @@ even outperforms Dired in terms of opening big directories.
 + =side=: keep the side window alive on =delete-other-windows=
 + =core=: avoid void session error on window quit
 + =core=: error at initialization when ~dired-hide-details-mode~ is turned off
-+ =core=: ensure retriving dwim-target from live window
++ =core=: ensure retrieving dwim-target from live window
 + =core=: hide cursor in utility buffers
 
 * 1.0.0
diff --git a/docs/COMPARISON.org b/docs/COMPARISON.org
index ca2a4287b3..adb68f64b1 100644
--- a/docs/COMPARISON.org
+++ b/docs/COMPARISON.org
@@ -38,7 +38,7 @@ See this 
[[https://github.com/alexluigit/dirvish/issues/10][discussion]].
 * all-the-icons-dired
 
 I'd advise *against* using this package 
([[https://github.com/jtbm37/all-the-icons-dired][all-the-icons-dired]]) along 
with
-Dirvish. The reason is that it trys to retrive icons for all the files in a
+Dirvish. The reason is that it tries to retrieve icons for all the files in a
 directory /eagerly/, which hangs up Emacs on large directories. Dirvish, on the
 contrary, renders UI elements (including icons of course) *lazily* whenever
 applicable.
@@ -53,7 +53,7 @@ columns in Dirvish on =spacemacs=. A workaround can be found 
[[https://github.co
 ** dired-ranger
 
 The ~dirvish-yank/move~ command can do similar things as 
~dired-ranger-move/paste~,
-meanwhile, it has serveral benefits over ~dired-do-copy~ or ~dired-ranger~:
+meanwhile, it has several benefits over ~dired-do-copy~ or ~dired-ranger~:
 
 - It paste/move files using external processes, hence heavy I/O tasks won't
   block the main process of Emacs.
@@ -78,7 +78,7 @@ Comparing with =dired-subtree=, =dirvish-subtree= has several 
advantages:
    Dirvish has no plan on implementing the =ibuffer= like "filter-stack" 
because
    IMO the Dired marking system plus different ~dired-listing-switches~ covers
    almost all the possible file filtering needs.  In terms of filtering files
-   matching multiple criterias, you can always mark files using various
+   matching multiple criteria, you can always mark files using various
    ~dired-mark-*~ commands and kill the rest lines.  This also makes
    ~dirvish-emerge.el~ a relatively small codebase.
 
diff --git a/docs/CUSTOMIZING.org b/docs/CUSTOMIZING.org
index a052be1b50..fd6aeec3f0 100644
--- a/docs/CUSTOMIZING.org
+++ b/docs/CUSTOMIZING.org
@@ -189,7 +189,7 @@ want to display preview for epub files via packages like 
=nov=, just remove the
 #+end_src
 
 Some of preview dispatchers, such as ~image~, generate cache images to improve 
the
-preview experience.  Everytime you enter a directory, Dirvish scans the the
+preview experience.  Every time you enter a directory, Dirvish scans the the
 content of that directory and computes the fileset of the directory that
 requires cache image generation, the corresponding caches are generated later
 when Emacs is idle.
@@ -353,7 +353,7 @@ These packages are only listed here for discoverability.
     (setq dired-omit-files
           (concat dired-omit-files "\\|^\\..*$")))
 
-  ;; Addtional syntax highlighting for dired
+  ;; Additional syntax highlighting for dired
   (use-package diredfl
     :hook
     ((dired-mode . diredfl-mode)
diff --git a/docs/EXTENSIONS.org b/docs/EXTENSIONS.org
index 0e821b31fe..8e53efc111 100644
--- a/docs/EXTENSIONS.org
+++ b/docs/EXTENSIONS.org
@@ -50,7 +50,7 @@ This extension lets you split the file list into different 
groups by various
 criteria.  These groups are then displayed in the same manner as ~ibuffer~.
 
 The variable ~dirvish-emerge-groups~ contains filter criteria of groups.
-Althought you can set this variable globally, a more appropriate way would be
+Although you can set this variable globally, a more appropriate way would be
 set it directory locally.  In that case, it is recommended to compose and save
 this variable to .dir-locals.el by the help of ~dirvish-emerge-menu~, which 
saves
 the manual editing.
diff --git a/extensions/dirvish-emerge.el b/extensions/dirvish-emerge.el
index b7c58d4d22..531af4ddff 100644
--- a/extensions/dirvish-emerge.el
+++ b/extensions/dirvish-emerge.el
@@ -51,7 +51,7 @@ in the buffer are separated and rearranged by the following 
groups:
 4. files whose extension is \"tex\" or \"bib\"
 5. other files
 
-Althought you can set this variable globally, a more appropriate
+Although you can set this variable globally, a more appropriate
 way would be set it directory locally.  In that case, it is
 recommended to compose and save this variable to .dir-locals.el
 by the help of `dirvish-emerge-menu'."
@@ -117,7 +117,7 @@ turned on in the buffer."
 
 (defmacro dirvish-emerge-define-predicate (name docstring &rest body)
   "Define a group predicate NAME with BODY.
-DOCSTRING is the documention of the predicate.
+DOCSTRING is the documentation of the predicate.
 The predicate takes the following arguments:
 
 - `local-name': output from (file-name-nondirectory FILE)
diff --git a/extensions/dirvish-ls.el b/extensions/dirvish-ls.el
index 1e0e2131ad..65a37fcd46 100644
--- a/extensions/dirvish-ls.el
+++ b/extensions/dirvish-ls.el
@@ -159,7 +159,7 @@ invoke the sort function, SWITCHES is the the sort flags for
     ""
     "toggles"
     ("r" "Reverse order while sorting" "--reverse")
-    ("d" "List directories ontop" "--group-directories-first")
+    ("d" "List directories on top" "--group-directories-first")
     ("~" "Hide backups files (eg. foo~)" "--ignore-backups")
     ("A" "Show the author" "--author")
     ("C" "Show security context" "--context")
diff --git a/extensions/dirvish-subtree.el b/extensions/dirvish-subtree.el
index b0287e12e6..669bfcae8d 100644
--- a/extensions/dirvish-subtree.el
+++ b/extensions/dirvish-subtree.el
@@ -388,7 +388,7 @@ See `dirvish-subtree-file-viewer' for details"
 
 (defun dirvish-subtree-toggle-or-open (ev)
   "Toggle the subtree if in a dirline, otherwise open the file.
-This command takes a mouse event EV as its argment."
+This command takes a mouse event EV as its argument."
   (interactive "e")
   (let ((win (posn-window (event-end ev)))
         (pos (posn-point (event-end ev))))
diff --git a/extensions/dirvish-yank.el b/extensions/dirvish-yank.el
index ec9f591aaa..6e9e88f26b 100644
--- a/extensions/dirvish-yank.el
+++ b/extensions/dirvish-yank.el
@@ -737,6 +737,5 @@ unexpected errors."
   (dirvish-prop :rsync-switches args)
   (call-interactively #'dirvish-rsync))
 
-
 (provide 'dirvish-yank)
 ;;; dirvish-yank.el ends here

Reply via email to