emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/projectile 4d6da873ae: Fix several typos and spelling erro


From: ELPA Syncer
Subject: [nongnu] elpa/projectile 4d6da873ae: Fix several typos and spelling errors
Date: Sun, 12 Jun 2022 17:58:45 -0400 (EDT)

branch: elpa/projectile
commit 4d6da873ae54dbf6043b015efd9b737e2ce152c6
Author: Jon Dufresne <jon.dufresne@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    Fix several typos and spelling errors
    
    Discovered using codespell:
    https://github.com/codespell-project/codespell
---
 CHANGELOG.md                         |  2 +-
 doc/modules/ROOT/pages/projects.adoc |  2 +-
 projectile.el                        |  6 +++---
 test/projectile-test.el              | 18 +++++++++---------
 4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 34a0cc7853..c6f5b55e7a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,7 +5,7 @@
 ### New features
 
 * [#1757](https://github.com/bbatsov/projectile/pull/1757): Add support for 
the Pijul VCS.
-* [#1745](https://github.com/bbatsov/projectile/pull/1745): Allow 
`projectile-update-project-type` to change project type precendence and remove 
project options.
+* [#1745](https://github.com/bbatsov/projectile/pull/1745): Allow 
`projectile-update-project-type` to change project type precedence and remove 
project options.
 * [#1699](https://github.com/bbatsov/projectile/pull/1699): 
`projectile-ripgrep` now supports [rg.el](https://github.com/dajva/rg.el).
 * [#1712](https://github.com/bbatsov/projectile/issues/1712): Make it possible 
to hide Projectile's menu. See `projectile-show-menu`.
 * [#1718](https://github.com/bbatsov/projectile/issues/1718): Add a project 
type definition for `GNUMakefile`.
diff --git a/doc/modules/ROOT/pages/projects.adoc 
b/doc/modules/ROOT/pages/projects.adoc
index d5745a93a6..280dc8aff1 100644
--- a/doc/modules/ROOT/pages/projects.adoc
+++ b/doc/modules/ROOT/pages/projects.adoc
@@ -210,7 +210,7 @@ Let's see a couple of more complex examples.
 
 All those projects are using `Gemfile` (``bundler``'s project file), but they 
have different directory structures.
 
-Bellow is a listing of all the available options for 
`projectile-register-project-type`:
+Below is a listing of all the available options for 
`projectile-register-project-type`:
 
 |===
 | Option | Documentation
diff --git a/projectile.el b/projectile.el
index bb66f1e372..d1a71bf251 100644
--- a/projectile.el
+++ b/projectile.el
@@ -2866,7 +2866,7 @@ files such as test/impl/other files as below:
                            (cons project-type-elt filtered-types))
                           ((eq precedence 'low)
                            (append filtered-types (list project-type-elt)))
-                          (t (error "Precendence must be one of '(high 
low)"))))
+                          (t (error "Precedence must be one of '(high low)"))))
                 (mapcar #'project-map projectile-project-types))))))
 
 (defun projectile-cabal-project-p ()
@@ -3778,7 +3778,7 @@ anaphora.el."
 (defun projectile--find-matching-test (impl-file)
   "Return a list of test files for IMPL-FILE.
 
-The precendence for determining test files to return is:
+The precedence for determining test files to return is:
 
 1. Use the project type's test-dir property if it's set to a function
 2. Use the project type's related-files-fn property if set
@@ -3812,7 +3812,7 @@ The precendence for determining test files to return is:
 (defun projectile--find-matching-file (test-file)
   "Return a list of impl files tested by TEST-FILE.
 
-The precendence for determining implementation files to return is:
+The precedence for determining implementation files to return is:
 
 1. Use the project type's src-dir property if it's set to a function
 2. Use the project type's related-files-fn property if set
diff --git a/test/projectile-test.el b/test/projectile-test.el
index 55570bf2ce..a83268ccfa 100644
--- a/test/projectile-test.el
+++ b/test/projectile-test.el
@@ -262,14 +262,14 @@ Just delegates OPERATION and ARGS for all operations 
except for`shell-command`'.
                      src-dir ,dummy-val
                      test-dir ,dummy-val
                      related-files-fn ,dummy-val)))))
-  (it "Error when attempt to update nonexistant project type"
+  (it "Error when attempt to update nonexistent project type"
     (let ((projectile-project-types mock-projectile-project-types))
       (expect (projectile-update-project-type
                'bar
                :marker-files '("marker-file")
                :test-suffix "suffix")
               :to-throw)))
-  (it "changes project type precendence"
+  (it "changes project type precedence"
     (let ((projectile-project-types
            '((foo marker-files ("foo"))
              (bar marker-files ("foo")))))
@@ -284,7 +284,7 @@ Just delegates OPERATION and ARGS for all operations except 
for`shell-command`'.
           (expect (projectile-project-type) :to-equal 'bar)
           (projectile-update-project-type 'bar :precedence 'low)
           (expect (projectile-project-type) :to-equal 'foo)))))
-  (it "errors if :precendence not valid"
+  (it "errors if :precedence not valid"
     (let ((projectile-project-types '((bar marker-files ("foo")))))
       (expect
        (projectile-update-project-type 'bar :precedence 'invalid-symbol)
@@ -1945,15 +1945,15 @@ projectile-process-current-project-buffers-current to 
have similar behaviour"
 (describe "projectile-run-shell-command-in-root"
   (describe "when called directly in elisp"
     (before-each (spy-on 'shell-command))
-    (describe "when called with all three paramters"
+    (describe "when called with all three parameters"
       (it "expects to call shell-command with the same parameters"
         (projectile-run-shell-command-in-root "cmd" "output-buffer" 
"error-buffer")
         (expect 'shell-command :to-have-been-called-with "cmd" "output-buffer" 
"error-buffer")))
-    (describe "when called with only one optional paramter"
+    (describe "when called with only one optional parameter"
       (it "expects to call shell-command with the same parameters"
         (projectile-run-shell-command-in-root "cmd" "output-buffer")
         (expect 'shell-command :to-have-been-called-with "cmd" "output-buffer" 
nil)))
-    (describe "when called with no optional paramters"
+    (describe "when called with no optional parameters"
       (it "expects to call shell-command with the same parameters"
         (projectile-run-shell-command-in-root "cmd")
         (expect 'shell-command :to-have-been-called-with "cmd" nil nil))))
@@ -1968,15 +1968,15 @@ projectile-process-current-project-buffers-current to 
have similar behaviour"
 (describe "projectile-run-async-shell-command-in-root"
   (describe "when called directly in elisp"
     (before-each (spy-on 'async-shell-command))
-    (describe "when called with all three paramters"
+    (describe "when called with all three parameters"
       (it "expects to call async-shell-command with the same parameters"
         (projectile-run-async-shell-command-in-root "cmd" "output-buffer" 
"error-buffer")
         (expect 'async-shell-command :to-have-been-called-with "cmd" 
"output-buffer" "error-buffer")))
-    (describe "when called with only one optional paramter"
+    (describe "when called with only one optional parameter"
       (it "expects to call async-shell-command with the same parameters"
         (projectile-run-async-shell-command-in-root "cmd" "output-buffer")
         (expect 'async-shell-command :to-have-been-called-with "cmd" 
"output-buffer" nil)))
-    (describe "when called with no optional paramters"
+    (describe "when called with no optional parameters"
       (it "expects to call async-shell-command with the same parameters"
         (projectile-run-async-shell-command-in-root "cmd")
         (expect 'async-shell-command :to-have-been-called-with "cmd" nil 
nil))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]