]> git.cworth.org Git - notmuch/commitdiff
fix typos
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 2 Jan 2018 15:32:38 +0000 (10:32 -0500)
committerDavid Bremner <david@tethera.net>
Fri, 5 Jan 2018 00:35:58 +0000 (20:35 -0400)
19 files changed:
Makefile.local
NEWS
bindings/python/notmuch/database.py
bindings/python/notmuch/filenames.py
bindings/python/notmuch/message.py
bindings/python/notmuch/messages.py
bindings/python/notmuch/tag.py
bindings/python/notmuch/thread.py
bindings/python/notmuch/threads.py
contrib/go/src/notmuch/notmuch.go
devel/release-checks.sh
doc/man1/notmuch-config.rst
emacs/notmuch-hello.el
lib/notmuch.h
notmuch.c
parse-time-string/parse-time-string.h
tag-util.h
test/T080-search.sh
util/util.h

index 1535c2ae8a7bcbe53ccfaa38efcdf2721ca28267..df95f5fcdbf0a802fb5f437b9abf27f6a5d9518d 100644 (file)
@@ -176,7 +176,7 @@ verify-newer:
             echo "Refusing to replace an existing release."; \
             echo "Don't forget to update \"version\" as described in RELEASING before release." ; \
             false ;; \
-         *) echo "An unexpected error occured"; \
+         *) echo "An unexpected error occurred"; \
             false;; esac
 
 # The user has not set any verbosity, default to quiet mode and inform the
diff --git a/NEWS b/NEWS
index 47b62d73be25cda64b710a356f8e090a28a72d2b..efd9043d8ef523e896ac879267b00c52ca74f93f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -636,7 +636,7 @@ Fixed constant values so they are not all zero anymore
   Previously, it was impossible to open writable database handles,
   because `DATABASE_MODE_READ_ONLY` and `DATABASE_MODE_READ_WRITE` were
   both set to zero.
-  The same issue occured with sort modes.
+  The same issue occurred with sort modes.
 
 Notmuch 0.22.2 (2016-09-08)
 ===========================
@@ -2661,7 +2661,7 @@ mailing list.
 nmbug - share tags with a given prefix
 
   nmbug helps maintain a git repo containing all tags with a given
-  prefix (by default "notmuch::"). Tags can be shared by commiting
+  prefix (by default "notmuch::"). Tags can be shared by committing
   them to git in one location and restoring in another.
 
 Notmuch 0.9 (2011-10-01)
index a1ae14fc40ccbc11608034b874ca7a3cd94436f0..342d665a224761a2557ea00233f7d99c7dbae321 100644 (file)
@@ -566,7 +566,7 @@ class Database(object):
         :returns: :class:`Message` or `None` if no message is found.
         :raises:
             :exc:`OutOfMemoryError`
-                  If an Out-of-memory occured while constructing the message.
+                  If an Out-of-memory occurred while constructing the message.
             :exc:`XapianError`
                   In case of a Xapian Exception. These exceptions
                   include "Database modified" situations, e.g. when the
@@ -591,7 +591,7 @@ class Database(object):
             function returns None if no message is found with the given
             filename.
 
-        :raises: :exc:`OutOfMemoryError` if an Out-of-memory occured while
+        :raises: :exc:`OutOfMemoryError` if an Out-of-memory occurred while
                  constructing the message.
         :raises: :exc:`XapianError` in case of a Xapian Exception.
                  These exceptions include "Database modified"
index 29f4fdf60d4b63650f00e16d22c0349c508618de..3bbc22b9f124767f25381ece8acca7a5f24f8aba 100644 (file)
@@ -67,7 +67,7 @@ class Filenames(Python3StringMixIn):
     def __init__(self, files_p, parent):
         """
         :param files_p: A pointer to an underlying *notmuch_tags_t*
-             structure. These are not publically exposed, so a user
+             structure. These are not publicly exposed, so a user
              will almost never instantiate a :class:`Tags` object
              herself. They are usually handed back as a result,
              e.g. in :meth:`Database.get_all_tags`.  *tags_p* must be
index d5b98e4fdfdf5ab19e41fcda61ce0fc57d7b301f..1b1f2174f4fcbeb2c6925becd41cabbceeba9b56 100644 (file)
@@ -223,7 +223,7 @@ class Message(Python3StringMixIn):
         :returns: The header value as string
         :raises: :exc:`NotInitializedError` if the message is not
                  initialized
-        :raises: :exc:`NullPointerError` if any error occured
+        :raises: :exc:`NullPointerError` if any error occurred
         """
         if not self._msg:
             raise NotInitializedError()
@@ -295,7 +295,7 @@ class Message(Python3StringMixIn):
         :returns: A :class:`Tags` iterator.
         :raises: :exc:`NotInitializedError` if the message is not
                  initialized
-        :raises: :exc:`NullPointerError` if any error occured
+        :raises: :exc:`NullPointerError` if any error occurred
         """
         if not self._msg:
             raise NotInitializedError()
index e17f1507ec9032299535e47222c706d55688e271..cae5da508f353f12cca585cb056c0b9ed92e29b3 100644 (file)
@@ -100,7 +100,7 @@ class Messages(object):
     def __init__(self, msgs_p, parent=None):
         """
         :param msgs_p:  A pointer to an underlying *notmuch_messages_t*
-             structure. These are not publically exposed, so a user
+             structure. These are not publicly exposed, so a user
              will almost never instantiate a :class:`Messages` object
              herself. They are usually handed back as a result,
              e.g. in :meth:`Query.search_messages`.  *msgs_p* must be
index 3b4a56accb1a2c7c7d3fb2351d078d1109f02ae1..fbb18ce47f004fe137a59ef13893f72481b276a9 100644 (file)
@@ -64,7 +64,7 @@ class Tags(Python3StringMixIn):
     def __init__(self, tags_p, parent=None):
         """
         :param tags_p: A pointer to an underlying *notmuch_tags_t*
-             structure. These are not publically exposed, so a user
+             structure. These are not publicly exposed, so a user
              will almost never instantiate a :class:`Tags` object
              herself. They are usually handed back as a result,
              e.g. in :meth:`Database.get_all_tags`.  *tags_p* must be
index ed96188541ae1606c1537f0b48c667139cd50eca..9aa0e08cec90ba212fa481bfc0aac1e26c293509 100644 (file)
@@ -71,7 +71,7 @@ class Thread(object):
     def __init__(self, thread_p, parent=None):
         """
         :param thread_p: A pointer to an internal notmuch_thread_t
-            Structure.  These are not publically exposed, so a user
+            Structure.  These are not publicly exposed, so a user
             will almost never instantiate a :class:`Thread` object
             herself. They are usually handed back as a result,
             e.g. when iterating through :class:`Threads`. *thread_p*
index 86f1f2ccc6da235bc389e050d9fb9619a3ffe726..0c382d5b8f187213b26fabd45c2c76486b7f5a01 100644 (file)
@@ -85,7 +85,7 @@ class Threads(Python3StringMixIn):
     def __init__(self, threads_p, parent=None):
         """
         :param threads_p:  A pointer to an underlying *notmuch_threads_t*
-             structure. These are not publically exposed, so a user
+             structure. These are not publicly exposed, so a user
              will almost never instantiate a :class:`Threads` object
              herself. They are usually handed back as a result,
              e.g. in :meth:`Query.search_threads`.  *threads_p* must be
index 89093b2da34dab037e4ccba6f4f7f767fe8564d3..750ebb5bc1f51b4144f0d470de6f351d31cc334c 100644 (file)
@@ -937,7 +937,7 @@ func (self *Message) GetMessageId() string {
                return ""
        }
        id := C.notmuch_message_get_message_id(self.message)
-       // we dont own id
+       // we don't own id
        // defer C.free(unsafe.Pointer(id))
        if id == nil {
                return ""
@@ -962,7 +962,7 @@ func (self *Message) GetThreadId() string {
                return ""
        }
        id := C.notmuch_message_get_thread_id(self.message)
-       // we dont own id
+       // we don't own id
        // defer C.free(unsafe.Pointer(id))
 
        if id == nil {
@@ -1019,7 +1019,7 @@ func (self *Message) GetFileName() string {
                return ""
        }
        fname := C.notmuch_message_get_filename(self.message)
-       // we dont own fname
+       // we don't own fname
        // defer C.free(unsafe.Pointer(fname))
 
        if fname == nil {
@@ -1096,7 +1096,7 @@ func (self *Message) GetHeader(header string) string {
        var c_header *C.char = C.CString(header)
        defer C.free(unsafe.Pointer(c_header))
 
-       /* we dont own value */
+       /* we don't own value */
        value := C.notmuch_message_get_header(self.message, c_header)
        if value == nil {
                return ""
@@ -1335,7 +1335,7 @@ func (self *Tags) Get() string {
                return ""
        }
        s := C.notmuch_tags_get(self.tags)
-       // we dont own 's'
+       // we don't own 's'
 
        return C.GoString(s)
 }
index 5a7578b863aad83adeccb0abd9ce619662f71056..7ba948224bc732d807b80f7c3886ceb925af2426 100755 (executable)
@@ -51,7 +51,7 @@ then
                exit 1
        fi
 else
-       echo "Reading './version' file failed (suprisingly!)"
+       echo "Reading './version' file failed (surprisingly!)"
        exit 1
 fi < ./version
 
index f9fb672a4acc11014cfc70d413f491f3ead818ca..899098084ae2beafea74017b3064de261c0a8917 100644 (file)
@@ -89,7 +89,7 @@ The available configuration items are described below.
     A regular expression delimited with // that will be matched
     against the path of the file or directory relative to the database
     path. Matching files and directories will be ignored. The
-    beginning and end of string must be explictly anchored. For
+    beginning and end of string must be explicitly anchored. For
     example, /.*/foo$/ would match "bar/foo" and "bar/baz/foo", but
     not "foo" or "bar/foobar".
 
index c858a20b6cc751d73d457272b0586da3d20e49db..aff8beb510173fbf74cf8fe704828529ba3f458a 100644 (file)
@@ -864,7 +864,7 @@ Supports the following entries in OPTIONS as a plist:
 :hide-if-empty - hide if no buttons would be shown
    (only makes sense without :show-empty-searches)
 :filter - This can be a function that takes the search query as its argument and
-   returns a filter to be used in conjuction with the query for that search or nil
+   returns a filter to be used in conjunction with the query for that search or nil
    to hide the element. This can also be a string that is used as a combined with
    each query using \"and\".
 :filter-count - Separate filter to generate the count displayed each search. Accepts
index 39759b7ac6d5ba73fe9d3c3636f9dd6ff41e79bc..7275d27000a57224694dfe21afab07a3258d456d 100644 (file)
@@ -869,7 +869,7 @@ notmuch_query_get_sort (const notmuch_query_t *query);
  *
  * NOTMUCH_STATUS_SUCCESS: excluded was added successfully.
  *
- * NOTMUCH_STATUS_XAPIAN_EXCEPTION: a Xapian exception occured.
+ * NOTMUCH_STATUS_XAPIAN_EXCEPTION: a Xapian exception occurred.
  *      Most likely a problem lazily parsing the query string.
  *
  * NOTMUCH_STATUS_IGNORED: tag is explicitly present in the query, so
@@ -1065,7 +1065,7 @@ notmuch_threads_destroy (notmuch_threads_t *threads);
  *
  * NOTMUCH_STATUS_SUCCESS: query completed successfully.
  *
- * NOTMUCH_STATUS_XAPIAN_EXCEPTION: a Xapian exception occured. The
+ * NOTMUCH_STATUS_XAPIAN_EXCEPTION: a Xapian exception occurred. The
  *      value of *count is not defined.
  *
  * @since libnotmuch 5 (notmuch 0.25)
@@ -1101,7 +1101,7 @@ notmuch_query_count_messages_st (notmuch_query_t *query, unsigned int *count);
 
  * NOTMUCH_STATUS_SUCCESS: query completed successfully.
  *
- * NOTMUCH_STATUS_XAPIAN_EXCEPTION: a Xapian exception occured. The
+ * NOTMUCH_STATUS_XAPIAN_EXCEPTION: a Xapian exception occurred. The
  *      value of *count is not defined.
  *
  * @since libnotmuch 5 (notmuch 0.25)
@@ -1778,7 +1778,7 @@ notmuch_message_destroy (notmuch_message_t *message);
  *
  * @returns
  * - NOTMUCH_STATUS_NULL_POINTER: *value* may not be NULL.
- * - NOTMUCH_STATUS_SUCCESS: No error occured.
+ * - NOTMUCH_STATUS_SUCCESS: No error occurred.
  * @since libnotmuch 4.4 (notmuch 0.23)
  */
 notmuch_status_t
@@ -1790,7 +1790,7 @@ notmuch_message_get_property (notmuch_message_t *message, const char *key, const
  * @returns
  * - NOTMUCH_STATUS_ILLEGAL_ARGUMENT: *key* may not contain an '=' character.
  * - NOTMUCH_STATUS_NULL_POINTER: Neither *key* nor *value* may be NULL.
- * - NOTMUCH_STATUS_SUCCESS: No error occured.
+ * - NOTMUCH_STATUS_SUCCESS: No error occurred.
  * @since libnotmuch 4.4 (notmuch 0.23)
  */
 notmuch_status_t
@@ -1804,7 +1804,7 @@ notmuch_message_add_property (notmuch_message_t *message, const char *key, const
  * @returns
  * - NOTMUCH_STATUS_ILLEGAL_ARGUMENT: *key* may not contain an '=' character.
  * - NOTMUCH_STATUS_NULL_POINTER: Neither *key* nor *value* may be NULL.
- * - NOTMUCH_STATUS_SUCCESS: No error occured.
+ * - NOTMUCH_STATUS_SUCCESS: No error occurred.
  * @since libnotmuch 4.4 (notmuch 0.23)
  */
 notmuch_status_t
@@ -1819,7 +1819,7 @@ notmuch_message_remove_property (notmuch_message_t *message, const char *key, co
  * @returns
  * - NOTMUCH_STATUS_READ_ONLY_DATABASE: Database was opened in
  *   read-only mode so message cannot be modified.
- * - NOTMUCH_STATUS_SUCCESS: No error occured.
+ * - NOTMUCH_STATUS_SUCCESS: No error occurred.
  *
  * @since libnotmuch 4.4 (notmuch 0.23)
  */
@@ -1835,7 +1835,7 @@ notmuch_message_remove_all_properties (notmuch_message_t *message, const char *k
  * @returns
  * - NOTMUCH_STATUS_READ_ONLY_DATABASE: Database was opened in
  *   read-only mode so message cannot be modified.
- * - NOTMUCH_STATUS_SUCCESS: No error occured.
+ * - NOTMUCH_STATUS_SUCCESS: No error occurred.
  *
  * @since libnotmuch 5.1 (notmuch 0.26)
  */
index 2d193aa8814aa0cb4aca79977dff2da8dbc59acd..7810b68569f5eb47be8d54bca78aa5206e6cd741 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -26,7 +26,7 @@
  * Notmuch subcommand hook.
  *
  * The return value will be used as notmuch exit status code,
- * preferrably EXIT_SUCCESS or EXIT_FAILURE.
+ * preferably EXIT_SUCCESS or EXIT_FAILURE.
  */
 typedef int (*command_function_t) (notmuch_config_t *config, int argc, char *argv[]);
 
index 2063bcadb3faf8d21cd49787b44ccbec1af88e4c..c394ecde1f5bc22538dd8bc8e9c2ae7d91e878ed 100644 (file)
@@ -90,7 +90,7 @@ enum {
  *   seconds. This is useful for callers that require a value for
  *   inclusive comparison of the result.
  *
- * Return 0 (PARSE_TIME_OK) for succesfully parsed date/time, or one
+ * Return 0 (PARSE_TIME_OK) for successfully parsed date/time, or one
  * of PARSE_TIME_ERR_* on error. 't' is not modified on error.
  */
 int parse_time_string (const char *s, time_t *t, const time_t *ref, int round);
index a2f0ddfaa280b5d3e743efba6976581ac793c1a9..ba0d98c858d52ffd9583a8af0c290bc7dc6e0daa 100644 (file)
@@ -36,7 +36,7 @@ typedef enum {
 typedef enum {
     TAG_PARSE_OUT_OF_MEMORY = -1,
 
-    /* Line parsed successfuly. */
+    /* Line parsed successfully. */
     TAG_PARSE_SUCCESS = 0,
 
     /* Line has a syntax error */
index 70f2854973a9ca29e1cf0c9d483cf1b00564e7f4..a3f0dead1420239fd654c89ea04531d1ee141729 100755 (executable)
@@ -85,11 +85,11 @@ add_message '[subject]="search by to (name)"' '[date]="Sat, 01 Jan 2000 12:00:00
 output=$(notmuch search 'to:"Search By To Name"' | notmuch_search_sanitize)
 test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; search by to (name) (inbox unread)"
 
-test_begin_subtest "Search by to: (name and adress)"
+test_begin_subtest "Search by to: (name and address)"
 output=$(notmuch search 'to:"Search By To Name <test@example.com>"' | notmuch_search_sanitize)
 test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; search by to (name) (inbox unread)"
 
-test_begin_subtest "Search by to: without prefix (name and adress)"
+test_begin_subtest "Search by to: without prefix (name and address)"
 output=$(notmuch search '"Search By To Name <test@example.com>"' | notmuch_search_sanitize)
 test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; search by to (name) (inbox unread)"
 
index d12fadb4fcce762249210858f6f0367103336dba..b24860afa9a67b581354a4dbf0635bb0621dad74 100644 (file)
@@ -15,11 +15,11 @@ typedef enum util_status {
      */
     UTIL_EOF,
     /**
-     * Low level error occured, consult errno.
+     * Low level error occurred, consult errno.
      */
     UTIL_ERRNO,
     /**
-     * Zlib error occured, call gzerror for details.
+     * Zlib error occurred, call gzerror for details.
      */
     UTIL_GZERROR
 } util_status_t;