[PATCH 7/7] go: Bind notmuch_thread_t functions
[notmuch-archives.git] / 7b / 81c63b8970c7b6e117ffbdff0bfdeaafd6b095
1 Return-Path: <pieter@praet.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 092DB431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 20 Jun 2011 13:14:36 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id xob5mgnX--Z4 for <notmuch@notmuchmail.org>;\r
16         Mon, 20 Jun 2011 13:14:33 -0700 (PDT)\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
18         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 7163D431FB6\r
21         for <notmuch@notmuchmail.org>; Mon, 20 Jun 2011 13:14:33 -0700 (PDT)\r
22 Received: by wyb28 with SMTP id 28so2744025wyb.26\r
23         for <notmuch@notmuchmail.org>; Mon, 20 Jun 2011 13:14:32 -0700 (PDT)\r
24 Received: by 10.227.24.8 with SMTP id t8mr5490699wbb.0.1308600872001;\r
25         Mon, 20 Jun 2011 13:14:32 -0700 (PDT)\r
26 Received: from localhost ([109.131.43.100])\r
27         by mx.google.com with ESMTPS id en1sm3455196wbb.35.2011.06.20.13.14.28\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Mon, 20 Jun 2011 13:14:29 -0700 (PDT)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: Notmuch Mail <notmuch@notmuchmail.org>\r
32 Subject: [PATCH] fix sum moar typos\r
33 Date: Mon, 20 Jun 2011 22:14:21 +0200\r
34 Message-Id: <1308600861-22684-1-git-send-email-pieter@praet.org>\r
35 X-Mailer: git-send-email 1.7.4.1\r
36 In-Reply-To: <1307202852-4398-1-git-send-email-pieter@praet.org>\r
37 References: <1307202852-4398-1-git-send-email-pieter@praet.org>\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Mon, 20 Jun 2011 20:14:36 -0000\r
51 \r
52 Various typo fixes in docs, docstrings, comments, etc...\r
53 \r
54 Signed-off-by: Pieter Praet <pieter@praet.org>\r
55 ---\r
56 Rebased to current master (12d6f90e)\r
57 \r
58  NEWS                         |   10 +++++-----\r
59  TODO                         |    4 ++--\r
60  compat/README                |    2 +-\r
61  completion/Makefile          |    2 +-\r
62  configure                    |    4 ++--\r
63  emacs/Makefile               |    2 +-\r
64  emacs/notmuch-hello.el       |    2 +-\r
65  emacs/notmuch-lib.el         |    2 +-\r
66  emacs/notmuch-maildir-fcc.el |    2 +-\r
67  emacs/notmuch-show.el        |    6 +++---\r
68  emacs/notmuch-wash.el        |    2 +-\r
69  emacs/notmuch.el             |    6 +++---\r
70  gmime-filter-headers.h       |    2 +-\r
71  lib/Makefile                 |    2 +-\r
72  lib/Makefile.local           |    2 +-\r
73  lib/database.cc              |   12 ++++++------\r
74  lib/libsha1.c                |    2 +-\r
75  lib/libsha1.h                |    2 +-\r
76  lib/message.cc               |    4 ++--\r
77  lib/notmuch.h                |    4 ++--\r
78  notmuch-config.c             |    2 +-\r
79  notmuch-new.c                |    2 +-\r
80  notmuch-reply.c              |    4 ++--\r
81  notmuch.1                    |    6 +++---\r
82  notmuch.c                    |    2 +-\r
83  packaging/debian             |    4 ++--\r
84  test/Makefile                |    2 +-\r
85  test/README                  |    6 +++---\r
86  test/crypto                  |    2 +-\r
87  test/maildir-sync            |    2 +-\r
88  test/multipart               |    2 +-\r
89  test/test-lib.sh             |    2 +-\r
90  test/uuencode                |    4 ++--\r
91  vim/README                   |    2 +-\r
92  vim/plugin/notmuch.vim       |    4 ++--\r
93  35 files changed, 60 insertions(+), 60 deletions(-)\r
94 \r
95 diff --git a/NEWS b/NEWS\r
96 index 5a1778e..dae7832 100644\r
97 --- a/NEWS\r
98 +++ b/NEWS\r
99 @@ -112,15 +112,15 @@ Allow for notmuch-fcc-dirs to have a value of nil.\r
100    string. Instead it's now a list of cons cells where the car of each\r
101    cell is a regular expression to be matched against the sender\r
102    address, and the cdr is the name of a folder to use for an FCC. So\r
103 -  the old fallback behavior can be achieved by including a fineal cell\r
104 +  the old fallback behavior can be achieved by including a final cell\r
105    of (".*" . "default-fcc-folder").\r
106  \r
107  Vim interface improvements\r
108  --------------------------\r
109  Felipe Contreras provided a number of updates for the vim interface.\r
110  \r
111 -  These include optimiations, support for newer versions of vim, fixed\r
112 -  support for sending mail on modern systmms, new commands, and\r
113 +  These include optimizations, support for newer versions of vim, fixed\r
114 +  support for sending mail on modern systems, new commands, and\r
115    various cleanups.\r
116  \r
117  New bindings\r
118 @@ -606,7 +606,7 @@ Fix to compile against GMime 2.6\r
119  \r
120  Fix configure script to accept (and ignore) various standard options.\r
121  \r
122 -  For example, those that the gentoo build scripts expect configure to\r
123 +  For example, those that the Gentoo build scripts expect configure to\r
124    accept are now all accepted.\r
125  \r
126  Test suite\r
127 @@ -714,7 +714,7 @@ tags by region.\r
128    Selective bulk tagging is now possible by selecting a region of\r
129    threads and then using either the '+' or '-' keybindings. Bulk\r
130    tagging is still available for all threads matching the current\r
131 -  search with th '*' binding.\r
132 +  search with the '*' binding.\r
133  \r
134  More meaningful buffer names for thread-view buffers.\r
135  \r
136 diff --git a/TODO b/TODO\r
137 index 260ffe1..14dfa55 100644\r
138 --- a/TODO\r
139 +++ b/TODO\r
140 @@ -29,7 +29,7 @@ Make 'notmuch-show-pipe-message have a private history.\r
141  \r
142  Add support for a delete keybinding that adds a "deleted" tag to the\r
143  current message/thread and make searches not return deleted messages\r
144 -by default, (unless the user asks explicitly for deleted messags in\r
145 +by default, (unless the user asks explicitly for deleted messages in\r
146  the search query).\r
147  \r
148  Add keybindings for next/previous thread.\r
149 @@ -119,7 +119,7 @@ Allow configuration for filename patterns that should be ignored when\r
150  indexing.\r
151  \r
152  Replace the "notmuch part --part=id" command with "notmuch show\r
153 ---part=id", (David Edmonson wants to rewrite some of "notmuch show" to\r
154 +--part=id", (David Edmondson wants to rewrite some of "notmuch show" to\r
155  provide more MIME-structure information in its output first).\r
156  \r
157  Replace the "notmuch search-tags" command with "notmuch search\r
158 diff --git a/compat/README b/compat/README\r
159 index cd32c56..38e2e14 100644\r
160 --- a/compat/README\r
161 +++ b/compat/README\r
162 @@ -1,4 +1,4 @@\r
163 -notmuch/comapt\r
164 +notmuch/compat\r
165  \r
166  This directory consists of two things:\r
167  \r
168 diff --git a/completion/Makefile b/completion/Makefile\r
169 index b6859ea..de492a7 100644\r
170 --- a/completion/Makefile\r
171 +++ b/completion/Makefile\r
172 @@ -1,4 +1,4 @@\r
173 -# See Makfefile.local for the list of files to be compiled in this\r
174 +# See Makefile.local for the list of files to be compiled in this\r
175  # directory.\r
176  all:\r
177         $(MAKE) -C .. all\r
178 diff --git a/configure b/configure\r
179 index cf525c9..3999ce8 100755\r
180 --- a/configure\r
181 +++ b/configure\r
182 @@ -22,7 +22,7 @@ if [ "$srcdir" != "." ]; then\r
183  fi\r
184  \r
185  # Set several defaults (optionally specified by the user in\r
186 -# environemnt variables)\r
187 +# environment variables)\r
188  CC=${CC:-gcc}\r
189  CXX=${CXX:-g++}\r
190  CFLAGS=${CFLAGS:--O2}\r
191 @@ -608,7 +608,7 @@ includedir = ${INCLUDEDIR:=\$(prefix)/include}\r
192  # The directory to which man pages should be installed\r
193  mandir = ${MANDIR:=\$(prefix)/share/man}\r
194  \r
195 -# The directory to which read-only (configuration) filesshould be installed\r
196 +# The directory to which read-only (configuration) files should be installed\r
197  sysconfdir = ${SYSCONFDIR:=\$(prefix)/etc}\r
198  \r
199  # The directory to which emacs lisp files should be installed\r
200 diff --git a/emacs/Makefile b/emacs/Makefile\r
201 index b6859ea..de492a7 100644\r
202 --- a/emacs/Makefile\r
203 +++ b/emacs/Makefile\r
204 @@ -1,4 +1,4 @@\r
205 -# See Makfefile.local for the list of files to be compiled in this\r
206 +# See Makefile.local for the list of files to be compiled in this\r
207  # directory.\r
208  all:\r
209         $(MAKE) -C .. all\r
210 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
211 index 916cda1..65fde75 100644\r
212 --- a/emacs/notmuch-hello.el\r
213 +++ b/emacs/notmuch-hello.el\r
214 @@ -428,7 +428,7 @@ Complete list of currently available key bindings:\r
215      (let ((found-target-pos nil)\r
216           (final-target-pos nil))\r
217        (let* ((saved-alist\r
218 -             ;; Filter out empty saved seaches if required.\r
219 +             ;; Filter out empty saved searches if required.\r
220               (if notmuch-show-empty-saved-searches\r
221                   notmuch-saved-searches\r
222                 (loop for elem in notmuch-saved-searches\r
223 diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
224 index a21dc14..f93c957 100644\r
225 --- a/emacs/notmuch-lib.el\r
226 +++ b/emacs/notmuch-lib.el\r
227 @@ -88,7 +88,7 @@ the user hasn't set this variable with the old or new value."\r
228    (notmuch-config-get "user.primary_email"))\r
229  \r
230  (defun notmuch-user-other-email ()\r
231 -  "Return the user.primary_email value (as a list) from the notmuch configuration."\r
232 +  "Return the user.other_email value (as a list) from the notmuch configuration."\r
233    (split-string (notmuch-config-get "user.other_email") "\n"))\r
234  \r
235  (defun notmuch-kill-this-buffer ()\r
236 diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el\r
237 index aede753..ef5f9f5 100644\r
238 --- a/emacs/notmuch-maildir-fcc.el\r
239 +++ b/emacs/notmuch-maildir-fcc.el\r
240 @@ -163,7 +163,7 @@ will NOT be removed or replaced."\r
241          (make-directory (concat path "/new/") t)\r
242          (make-directory (concat path "/tmp/") t))\r
243         ((file-regular-p path)\r
244 -        (error "%s is a file. Can't creat maildir." path))\r
245 +        (error "%s is a file. Can't create maildir." path))\r
246         (t\r
247          (error "I don't know how to create a maildir here"))))\r
248  \r
249 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
250 index 0d9b52a..9c63ecb 100644\r
251 --- a/emacs/notmuch-show.el\r
252 +++ b/emacs/notmuch-show.el\r
253 @@ -121,7 +121,7 @@ same as that of the previous message."\r
254    "Use external viewers to view all attachments from the current message."\r
255    (interactive)\r
256    (with-current-notmuch-show-message\r
257 -   ; We ovverride the mm-inline-media-tests to indicate which message\r
258 +   ; We override the mm-inline-media-tests to indicate which message\r
259     ; parts are already sufficiently handled by the original\r
260     ; presentation of the message in notmuch-show mode. These parts\r
261     ; will be inserted directly into the temporary buffer of\r
262 @@ -803,7 +803,7 @@ The optional QUERY-CONTEXT is a notmuch search term. Only\r
263  messages from the thread matching this search term are shown if\r
264  non-nil.\r
265  \r
266 -The optional BUFFER-NAME provides the neame of the buffer in\r
267 +The optional BUFFER-NAME provides the name of the buffer in\r
268  which the message thread is shown. If it is nil (which occurs\r
269  when the command is called interactively) the argument to the\r
270  function is used. "\r
271 @@ -921,7 +921,7 @@ more selectively, (such as '\\[notmuch-show-next-message]' and '\\[notmuch-show-\r
272  without removing any tags, and '\\[notmuch-show-archive-thread]' to archive an entire thread\r
273  without scrolling through with \\[notmuch-show-advance-and-archive]).\r
274  \r
275 -You can add or remove arbitary tags from the current message with\r
276 +You can add or remove arbitrary tags from the current message with\r
277  '\\[notmuch-show-add-tag]' or '\\[notmuch-show-remove-tag]'.\r
278  \r
279  All currently available key bindings:\r
280 diff --git a/emacs/notmuch-wash.el b/emacs/notmuch-wash.el\r
281 index 92f07c5..1f420b2 100644\r
282 --- a/emacs/notmuch-wash.el\r
283 +++ b/emacs/notmuch-wash.el\r
284 @@ -137,7 +137,7 @@ collapse the remaining lines into a button.")\r
285      (format label-format lines-count)))\r
286  \r
287  (defun notmuch-wash-region-to-button (msg beg end type prefix)\r
288 -  "Auxilary function to do the actual making of overlays and buttons\r
289 +  "Auxiliary function to do the actual making of overlays and buttons\r
290  \r
291  BEG and END are buffer locations. TYPE should a string, either\r
292  \"citation\" or \"signature\". PREFIX is some arbitrary text to\r
293 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
294 index 3311fe8..f11ec24 100644\r
295 --- a/emacs/notmuch.el\r
296 +++ b/emacs/notmuch.el\r
297 @@ -64,7 +64,7 @@\r
298      ("authors" . "%-20s ")\r
299      ("subject" . "%s ")\r
300      ("tags" . "(%s)"))\r
301 -  "Search result formating. Supported fields are:\r
302 +  "Search result formatting. Supported fields are:\r
303         date, count, authors, subject, tags\r
304  For example:\r
305         (setq notmuch-search-result-format \(\(\"authors\" . \"%-40s\"\)\r
306 @@ -493,7 +493,7 @@ the messages that are about to be tagged"\r
307    :group 'notmuch)\r
308  \r
309  (defcustom notmuch-after-tag-hook nil\r
310 -  "Hooks that are run before tags of a message are modified.\r
311 +  "Hooks that are run after tags of a message are modified.\r
312  \r
313  'tags' will contain the tags that were added or removed as\r
314  a list of strings of the form \"+TAG\" or \"-TAG\".\r
315 @@ -836,7 +836,7 @@ non-authors is found, assume that all of the authors match."\r
316  (defun notmuch-search-operate-all (action)\r
317    "Add/remove tags from all matching messages.\r
318  \r
319 -Tis command adds or removes tags from all messages matching the\r
320 +This command adds or removes tags from all messages matching the\r
321  current search terms. When called interactively, this command\r
322  will prompt for tags to be added or removed. Tags prefixed with\r
323  '+' will be added and tags prefixed with '-' will be removed.\r
324 diff --git a/gmime-filter-headers.h b/gmime-filter-headers.h\r
325 index 47d1d45..1d1a3eb 100644\r
326 --- a/gmime-filter-headers.h\r
327 +++ b/gmime-filter-headers.h\r
328 @@ -39,7 +39,7 @@ typedef struct _GMimeFilterHeadersClass GMimeFilterHeadersClass;\r
329   * @parent_object: parent #GMimeFilter\r
330   * @saw_nl: previous char was a \n\r
331   * @line: temporary buffer for line unfolding\r
332 - * @line_size: size of currently allocated nemory for @line\r
333 + * @line_size: size of currently allocated memory for @line\r
334   * @lineptr: pointer to the first unused character in @line\r
335   *\r
336   * A filter to decode rfc2047 encoded headers\r
337 diff --git a/lib/Makefile b/lib/Makefile\r
338 index b6859ea..de492a7 100644\r
339 --- a/lib/Makefile\r
340 +++ b/lib/Makefile\r
341 @@ -1,4 +1,4 @@\r
342 -# See Makfefile.local for the list of files to be compiled in this\r
343 +# See Makefile.local for the list of files to be compiled in this\r
344  # directory.\r
345  all:\r
346         $(MAKE) -C .. all\r
347 diff --git a/lib/Makefile.local b/lib/Makefile.local\r
348 index 4319023..d06f268 100644\r
349 --- a/lib/Makefile.local\r
350 +++ b/lib/Makefile.local\r
351 @@ -82,7 +82,7 @@ $(dir)/$(LINKER_NAME): $(dir)/$(SONAME)\r
352  \r
353  install: install-$(dir)\r
354  \r
355 -# The (often-reused) $dir works fine within targets/pre-requisites,\r
356 +# The (often-reused) $dir works fine within targets/prerequisites,\r
357  # but cannot be used reliably within commands, so copy its value to a\r
358  # variable that is not reused.\r
359  lib := $(dir)\r
360 diff --git a/lib/database.cc b/lib/database.cc\r
361 index 7f79cf4..9c2f4ec 100644\r
362 --- a/lib/database.cc\r
363 +++ b/lib/database.cc\r
364 @@ -69,7 +69,7 @@ typedef struct {\r
365   *\r
366   *    Multiple terms of given prefix:\r
367   *\r
368 - *     reference: All message IDs from In-Reply-To and Re ferences\r
369 + *     reference: All message IDs from In-Reply-To and References\r
370   *                headers in the message.\r
371   *\r
372   *     tag:       Any tags associated with this message by the user.\r
373 @@ -137,7 +137,7 @@ typedef struct {\r
374   *                     ASCII integer. The initial database version\r
375   *                     was 1, (though a schema existed before that\r
376   *                     were no "version" database value existed at\r
377 - *                     all). Succesive versions are allocated as\r
378 + *                     all). Successive versions are allocated as\r
379   *                     changes are made to the database (such as by\r
380   *                     indexing new fields).\r
381   *\r
382 @@ -148,7 +148,7 @@ typedef struct {\r
383   *                     incremented for each thread ID.\r
384   *\r
385   *     thread_id_*     A pre-allocated thread ID for a particular\r
386 - *                     message. This is actually an arbitarily large\r
387 + *                     message. This is actually an arbitrarily large\r
388   *                     family of metadata name. Any particular name is\r
389   *                     formed by concatenating "thread_id_" with a message\r
390   *                     ID (or the SHA1 sum of a message ID if it is very\r
391 @@ -422,7 +422,7 @@ skip_space_and_comments (const char **str)\r
392  }\r
393  \r
394  /* Parse an RFC 822 message-id, discarding whitespace, any RFC 822\r
395 - * comments, and the '<' and '>' delimeters.\r
396 + * comments, and the '<' and '>' delimiters.\r
397   *\r
398   * If not NULL, then *next will be made to point to the first character\r
399   * not parsed, (possibly pointing to the final '\0' terminator.\r
400 @@ -1149,7 +1149,7 @@ _notmuch_database_filename_to_direntry (void *ctx,\r
401  \r
402  /* Given a legal 'path' for the database, return the relative path.\r
403   *\r
404 - * The return value will be a pointer to the originl path contents,\r
405 + * The return value will be a pointer to the original path contents,\r
406   * and will be either the original string (if 'path' was relative) or\r
407   * a portion of the string (if path was absolute and begins with the\r
408   * database path).\r
409 @@ -1476,7 +1476,7 @@ _notmuch_database_link_message_to_children (notmuch_database_t *notmuch,\r
410   * In all cases, we assign to the current message the first thread_id\r
411   * found (through either parent or child). We will also merge any\r
412   * existing, distinct threads where this message belongs to both,\r
413 - * (which is not uncommon when mesages are processed out of order).\r
414 + * (which is not uncommon when messages are processed out of order).\r
415   *\r
416   * Finally, if no thread ID has been found through parent or child, we\r
417   * call _notmuch_message_generate_thread_id to generate a new thread\r
418 diff --git a/lib/libsha1.c b/lib/libsha1.c\r
419 index c39a5a1..5d16f6a 100644\r
420 --- a/lib/libsha1.c\r
421 +++ b/lib/libsha1.c\r
422 @@ -174,7 +174,7 @@ void sha1_hash(const unsigned char data[], unsigned long len, sha1_ctx ctx[1])\r
423      if((ctx->count[0] += len) < len)\r
424          ++(ctx->count[1]);\r
425  \r
426 -    while(len >= space)     /* tranfer whole blocks if possible  */\r
427 +    while(len >= space)     /* transfer whole blocks if possible  */\r
428      {\r
429          memcpy(((unsigned char*)ctx->wbuf) + pos, sp, space);\r
430          sp += space; len -= space; space = SHA1_BLOCK_SIZE; pos = 0;\r
431 diff --git a/lib/libsha1.h b/lib/libsha1.h\r
432 index c1c848f..56f445a 100644\r
433 --- a/lib/libsha1.h\r
434 +++ b/lib/libsha1.h\r
435 @@ -38,7 +38,7 @@ extern "C"\r
436  {\r
437  #endif\r
438  #if 0\r
439 -} /* Appleasing Emacs */\r
440 +} /* Appeasing Emacs */\r
441  #endif\r
442  \r
443  #include <stdint.h>\r
444 diff --git a/lib/message.cc b/lib/message.cc\r
445 index 4b59fa9..7ff39ab 100644\r
446 --- a/lib/message.cc\r
447 +++ b/lib/message.cc\r
448 @@ -837,7 +837,7 @@ _notmuch_message_add_term (notmuch_message_t *message,\r
449  \r
450  /* Parse 'text' and add a term to 'message' for each parsed word. Each\r
451   * term will be added both prefixed (if prefix_name is not NULL) and\r
452 - * also unprefixed). */\r
453 + * also non-prefixed). */\r
454  notmuch_private_status_t\r
455  _notmuch_message_gen_terms (notmuch_message_t *message,\r
456                             const char *prefix_name,\r
457 @@ -1022,7 +1022,7 @@ notmuch_message_maildir_flags_to_tags (notmuch_message_t *message)\r
458   *\r
459   * A non-NULL return value is guaranteed to be a valid string pointer\r
460   * pointing to the characters "new/" or "cur/", (but not\r
461 - * NUL-terminated).\r
462 + * NULL-terminated).\r
463   */\r
464  static const char *\r
465  _filename_is_in_maildir (const char *filename)\r
466 diff --git a/lib/notmuch.h b/lib/notmuch.h\r
467 index e508309..974be8d 100644\r
468 --- a/lib/notmuch.h\r
469 +++ b/lib/notmuch.h\r
470 @@ -103,7 +103,7 @@ typedef enum _notmuch_status {\r
471  \r
472  /* Get a string representation of a notmuch_status_t value.\r
473   *\r
474 - * The result is readonly.\r
475 + * The result is read-only.\r
476   */\r
477  const char *\r
478  notmuch_status_to_string (notmuch_status_t status);\r
479 @@ -510,7 +510,7 @@ notmuch_threads_move_to_next (notmuch_threads_t *threads);\r
480   *\r
481   * It's not strictly necessary to call this function. All memory from\r
482   * the notmuch_threads_t object will be reclaimed when the\r
483 - * containg query object is destroyed.\r
484 + * containing query object is destroyed.\r
485   */\r
486  void\r
487  notmuch_threads_destroy (notmuch_threads_t *threads);\r
488 diff --git a/notmuch-config.c b/notmuch-config.c\r
489 index 6e4c5c4..485fa72 100644\r
490 --- a/notmuch-config.c\r
491 +++ b/notmuch-config.c\r
492 @@ -69,7 +69,7 @@ static const char maildir_config_comment[] =\r
493      "\tsynchronize_flags      Valid values are true and false.\n"\r
494      "\n"\r
495      "\tIf true, then the following maildir flags (in message filenames)\n"\r
496 -    "\twill be syncrhonized with the corresponding notmuch tags:\n"\r
497 +    "\twill be synchronized with the corresponding notmuch tags:\n"\r
498      "\n"\r
499      "\t\tFlag  Tag\n"\r
500      "\t\t----  -------\n"\r
501 diff --git a/notmuch-new.c b/notmuch-new.c\r
502 index 744f4ca..0fa2a3c 100644\r
503 --- a/notmuch-new.c\r
504 +++ b/notmuch-new.c\r
505 @@ -373,7 +373,7 @@ add_files_recursive (notmuch_database_t *notmuch,\r
506         /* If we're looking at a symlink, we only want to add it if it\r
507          * links to a regular file, (and not to a directory, say).\r
508          *\r
509 -        * Similarly, if the file is of unknown type (due to filesytem\r
510 +        * Similarly, if the file is of unknown type (due to filesystem\r
511          * limitations), then we also need to look closer.\r
512          *\r
513          * In either case, a stat does the trick.\r
514 diff --git a/notmuch-reply.c b/notmuch-reply.c\r
515 index 27ef37b..362e198 100644\r
516 --- a/notmuch-reply.c\r
517 +++ b/notmuch-reply.c\r
518 @@ -278,7 +278,7 @@ add_recipients_from_message (GMimeMessage *reply,\r
519       * The munging is easy to detect, because it results in a\r
520       * redundant reply-to header, (with an address that already exists\r
521       * in either To or Cc). So in this case, we ignore the Reply-To\r
522 -     * field and use the From header. Thie ensures the original sender\r
523 +     * field and use the From header. This ensures the original sender\r
524       * will get the reply even if not subscribed to the list. Note\r
525       * that the address in the Reply-To header will always appear in\r
526       * the reply.\r
527 @@ -362,7 +362,7 @@ guess_from_received_header (notmuch_config_t *config, notmuch_message_t *message\r
528       * them indications to which email address this message was\r
529       * delivered.\r
530       * The Received: header is special in our get_header function\r
531 -     * and is always concated.\r
532 +     * and is always concatenated.\r
533       */\r
534      received = notmuch_message_get_header (message, "received");\r
535      if (received == NULL)\r
536 diff --git a/notmuch.1 b/notmuch.1\r
537 index c1aa4e3..5a8c83d 100644\r
538 --- a/notmuch.1\r
539 +++ b/notmuch.1\r
540 @@ -484,7 +484,7 @@ sup calls them).\r
541  \r
542  The\r
543  .B part\r
544 -command can used to output a single part of a multi-part MIME message.\r
545 +command can used to output a single part of a multipart MIME message.\r
546  \r
547  .RS 4\r
548  .TP 4\r
549 @@ -641,13 +641,13 @@ expression).\r
550  Finally, results can be restricted to only messages within a\r
551  particular time range, (based on the Date: header) with a syntax of:\r
552  \r
553 -       <intial-timestamp>..<final-timestamp>\r
554 +       <initial-timestamp>..<final-timestamp>\r
555  \r
556  Each timestamp is a number representing the number of seconds since\r
557  1970\-01\-01 00:00:00 UTC. This is not the most convenient means of\r
558  expressing date ranges, but until notmuch is fixed to accept a more\r
559  convenient form, one can use the date program to construct\r
560 -timestamps. For example, with the bash shell the folowing syntax would\r
561 +timestamps. For example, with the bash shell the following syntax would\r
562  specify a date range to return messages from 2009\-10\-01 until the\r
563  current time:\r
564  \r
565 diff --git a/notmuch.c b/notmuch.c\r
566 index 93f3194..f672695 100644\r
567 --- a/notmuch.c\r
568 +++ b/notmuch.c\r
569 @@ -48,7 +48,7 @@ static int\r
570  notmuch_help_command (void *ctx, int argc, char *argv[]);\r
571  \r
572  static const char search_terms_help[] =\r
573 -    "\tSeveral notmuch commands accept a comman syntax for search\n"\r
574 +    "\tSeveral notmuch commands accept a command syntax for search\n"\r
575      "\tterms.\n"\r
576      "\n"\r
577      "\tThe search terms can consist of free-form text (and quoted\n"\r
578 diff --git a/packaging/debian b/packaging/debian\r
579 index a586660..c8e8ddd 100644\r
580 --- a/packaging/debian\r
581 +++ b/packaging/debian\r
582 @@ -1,2 +1,2 @@\r
583 -The debian packaging exists in the top-level "debian" directory within\r
584 -this source-code respository.\r
585 +The Debian packaging exists in the top-level "debian" directory within\r
586 +this source-code repository.\r
587 diff --git a/test/Makefile b/test/Makefile\r
588 index b6859ea..de492a7 100644\r
589 --- a/test/Makefile\r
590 +++ b/test/Makefile\r
591 @@ -1,4 +1,4 @@\r
592 -# See Makfefile.local for the list of files to be compiled in this\r
593 +# See Makefile.local for the list of files to be compiled in this\r
594  # directory.\r
595  all:\r
596         $(MAKE) -C .. all\r
597 diff --git a/test/README b/test/README\r
598 index 07da480..be75e0e 100644\r
599 --- a/test/README\r
600 +++ b/test/README\r
601 @@ -151,7 +151,7 @@ library for your script to use.\r
602  \r
603     This works similar to test_expect_equal (see above) but is used to\r
604     mark a test that demonstrates a known breakage, (that is, the\r
605 -   author of the test expectes "output" and "expected" to differ until\r
606 +   author of the test expects "output" and "expected" to differ until\r
607     the breakage is fixed). See test_expect_failure for details.\r
608  \r
609   test_debug <script>\r
610 @@ -181,7 +181,7 @@ writing tests:\r
611    generate_message\r
612  \r
613      Generates a message with an optional template. Most tests will\r
614 -    actually prefere to call add_message. See below.\r
615 +    actually prefer to call add_message. See below.\r
616  \r
617    add_message\r
618  \r
619 @@ -197,6 +197,6 @@ writing tests:\r
620  \r
621      This function should be called at the beginning of a test file\r
622      when a test needs to operate on a non-empty body of messages. It\r
623 -    will intialize the mail database to a known state of 50 sample\r
624 +    will initialize the mail database to a known state of 50 sample\r
625      messages, (culled from the early history of the notmuch mailing\r
626      list).\r
627 diff --git a/test/crypto b/test/crypto\r
628 index 8e92016..01daffe 100755\r
629 --- a/test/crypto\r
630 +++ b/test/crypto\r
631 @@ -318,7 +318,7 @@ test_expect_equal \\r
632      "$expected"\r
633  \r
634  test_begin_subtest "signature verification with revoked key"\r
635 -# generate revokation certificate and load it to revoke key\r
636 +# generate revocation certificate and load it to revoke key\r
637  echo "y\r
638  1\r
639  Notmuch Test Suite key revocation (automated) $(date '+%F_%T%z')\r
640 diff --git a/test/maildir-sync b/test/maildir-sync\r
641 index 2b43127..c99dbec 100755\r
642 --- a/test/maildir-sync\r
643 +++ b/test/maildir-sync\r
644 @@ -85,7 +85,7 @@ test_expect_equal "$output" "No new mail."\r
645  # test created directory document in the database but this document\r
646  # was not linked as subdirectory of $MAIL_DIR. Therefore notmuch new\r
647  # could not reach the cur/ directory and its files in it during\r
648 -# recurive traversal.\r
649 +# recursive traversal.\r
650  #\r
651  # XXX: The above sounds like a bug that should be fixed. If notmuch is\r
652  # creating new directories in the mail store, then it should be\r
653 diff --git a/test/multipart b/test/multipart\r
654 index 0879696..2da9afa 100755\r
655 --- a/test/multipart\r
656 +++ b/test/multipart\r
657 @@ -209,7 +209,7 @@ Non-text part: text/html\r
658  EOF\r
659  test_expect_equal_file OUTPUT EXPECTED\r
660  \r
661 -test_begin_subtest "--format=text --part=5, inline attachement"\r
662 +test_begin_subtest "--format=text --part=5, inline attachment"\r
663  notmuch show --format=text --part=5 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT\r
664  cat <<EOF >EXPECTED\r
665  \f\r
666 attachment{ ID: 5, Content-type: text/plain\r
667 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
668 index a59d1c1..118364c 100755\r
669 --- a/test/test-lib.sh\r
670 +++ b/test/test-lib.sh\r
671 @@ -424,7 +424,7 @@ test_begin_subtest ()\r
672         error "bug in test script: Missing test_expect_equal in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}"\r
673      fi\r
674      test_subtest_name="$1"\r
675 -    # Remember stdout and stderr file descriptios and redirect test\r
676 +    # Remember stdout and stderr file descriptions and redirect test\r
677      # output to the previously prepared file descriptors 3 and 4 (see\r
678      # below)\r
679      if test "$verbose" != "t"; then exec 4>test.output 3>&4; fi\r
680 diff --git a/test/uuencode b/test/uuencode\r
681 index d0d16bd..b3e1ac1 100755\r
682 --- a/test/uuencode\r
683 +++ b/test/uuencode\r
684 @@ -5,11 +5,11 @@ test_description="handling of uuencoded data"\r
685  add_message [subject]=uuencodetest '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' \\r
686  '[body]="This message is used to ensure that notmuch correctly handles a\r
687  message containing a block of uuencoded data. First, we have a marker\r
688 -this content beforeuudata . Then we beging the uunencoded data itself:\r
689 +this content beforeuudata . Then we begin the uuencoded data itself:\r
690  \r
691  begin 644 bogus-uuencoded-data\r
692  M0123456789012345678901234567890123456789012345678901234567890\r
693 -MOBVIOUSLY, THIS IS NOT ANY SORT OF USEFUL UUNECODED DATA.    \r
694 +MOBVIOUSLY, THIS IS NOT ANY SORT OF USEFUL UUENCODED DATA.    \r
695  MINSTEAD THIS IS JUST A WAY TO ENSURE THAT THIS BLOCK OF DATA \r
696  MIS CORRECTLY IGNORED WHEN NOTMUCH CREATES ITS INDEX. SO WE   \r
697  MINCLUDE A DURINGUUDATA MARKER THAT SHOULD NOT RESULT IN ANY  \r
698 diff --git a/vim/README b/vim/README\r
699 index 12ad2bb..aa3245c 100644\r
700 --- a/vim/README\r
701 +++ b/vim/README\r
702 @@ -37,7 +37,7 @@ Buffer types:\r
703          You are presented with the search results when you run :NotMuch.\r
704  \r
705          Keybindings:\r
706 -            <Space> - show the selected thread colapsing unmatched items\r
707 +            <Space> - show the selected thread collapsing unmatched items\r
708              <Enter> - show the entire selected thread\r
709              a       - archive message (remove inbox tag)\r
710              f       - filter the current search terms\r
711 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
712 index c731c47..768a011 100644\r
713 --- a/vim/plugin/notmuch.vim\r
714 +++ b/vim/plugin/notmuch.vim\r
715 @@ -765,7 +765,7 @@ function! s:NM_cmd_show_parse(inlines)\r
716  \r
717                          if part_end\r
718                                  " FIXME: this is a hack for handling two folds being added for one line\r
719 -                                "         we should handle addinga fold in a function\r
720 +                                "         we should handle adding a fold in a function\r
721                                  if len(foldinfo) && foldinfo[1] < foldinfo[2]\r
722                                          call add(info['folds'], foldinfo[0:3])\r
723                                          let info['foldtext'][foldinfo[1]] = foldinfo[4]\r
724 @@ -1314,7 +1314,7 @@ endfunction\r
725  function! s:NM_tag(filter, tags)\r
726          let filter = len(a:filter) ? a:filter : [<SID>NM_search_thread_id()]\r
727          if !len(filter)\r
728 -                throw 'Eeek! I couldn''t find the thead id!'\r
729 +                throw 'Eeek! I couldn''t find the thread id!'\r
730          endif\r
731          let args = ['tag']\r
732          call extend(args, a:tags)\r
733 -- \r
734 1.7.4.1\r
735 \r