[PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-17 Thread Tomi Ollila
On Thu, May 17 2012, David Bremner  wrote:

> Tomi Ollila  writes:
>>
>> id:"1337152910-22371-4-git-send-email-tomi.ollila at iki.fi"
>> id:"1337152910-22371-5-git-send-email-tomi.ollila at iki.fi"
>> id:"1337152910-22371-6-git-send-email-tomi.ollila at iki.fi"
>> id:"1337152910-22371-7-git-send-email-tomi.ollila at iki.fi"
>
> I pushed those to release. I'll merge them to master after a bit;
> hopefully we'll figure out that reply encoding thing and do a bug fix
> release.

I got it working by doing this:

--8<8<8<8<8<8<8<8<8<8<8<8<--
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 7fa441a..7523bb6 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -244,7 +244,9 @@ the given type."
 current buffer, if possible."
   (let ((display-buffer (current-buffer)))
 (with-temp-buffer
-  (let* ((charset (plist-get part :content-charset))
+  ;; (let* ((charset (or (plist-get part :content-charset) "utf-8"))
+  ;; (let* ((charset (or (plist-get part :content-charset) "latin-1"))
+  (let* ((charset (or (plist-get part :content-charset) 'gnus-decoded))
 (handle (mm-make-handle (current-buffer) `(,content-type (charset 
. ,charset)
;; If the user wants the part inlined, insert the content and
;; test whether we are able to inline it (which includes both
--8<8<8<8<8<8<8<8<8<8<8<8<--

(using "latin-1" also provided desired results... but with "utf-8" results
were the same as with default 'nil)

But, for consistency (with `notmuch show ...` handling), when content-type
is "text/plain" (and as `notmuch reply --format=json` provides text/plain
content inline) we should use the construct 
`(insert (notmuch-get-bodypart-content msg part nth ...)` to insert that
content (as done before f6c170fabca8f39e74705e3813504137811bf162 and is
also done in `notmuch-show-insert-part-text/plain`).

If anyone is faster than me to provide patch what would be fine ;)

> d

Tomi


Re: [PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-17 Thread Tomi Ollila
On Thu, May 17 2012, David Bremner  wrote:

> Tomi Ollila  writes:
>>
>> id:"1337152910-22371-4-git-send-email-tomi.oll...@iki.fi"
>> id:"1337152910-22371-5-git-send-email-tomi.oll...@iki.fi"
>> id:"1337152910-22371-6-git-send-email-tomi.oll...@iki.fi"
>> id:"1337152910-22371-7-git-send-email-tomi.oll...@iki.fi"
>
> I pushed those to release. I'll merge them to master after a bit;
> hopefully we'll figure out that reply encoding thing and do a bug fix
> release.

I got it working by doing this:

--8<8<8<8<8<8<8<8<8<8<8<8<--
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 7fa441a..7523bb6 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -244,7 +244,9 @@ the given type."
 current buffer, if possible."
   (let ((display-buffer (current-buffer)))
 (with-temp-buffer
-  (let* ((charset (plist-get part :content-charset))
+  ;; (let* ((charset (or (plist-get part :content-charset) "utf-8"))
+  ;; (let* ((charset (or (plist-get part :content-charset) "latin-1"))
+  (let* ((charset (or (plist-get part :content-charset) 'gnus-decoded))
 (handle (mm-make-handle (current-buffer) `(,content-type (charset 
. ,charset)
;; If the user wants the part inlined, insert the content and
;; test whether we are able to inline it (which includes both
--8<8<8<8<8<8<8<8<8<8<8<8<--

(using "latin-1" also provided desired results... but with "utf-8" results
were the same as with default 'nil)

But, for consistency (with `notmuch show ...` handling), when content-type
is "text/plain" (and as `notmuch reply --format=json` provides text/plain
content inline) we should use the construct 
`(insert (notmuch-get-bodypart-content msg part nth ...)` to insert that
content (as done before f6c170fabca8f39e74705e3813504137811bf162 and is
also done in `notmuch-show-insert-part-text/plain`).

If anyone is faster than me to provide patch what would be fine ;)

> d

Tomi
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-16 Thread David Bremner
Tomi Ollila  writes:
>
> id:"1337152910-22371-4-git-send-email-tomi.ollila at iki.fi"
> id:"1337152910-22371-5-git-send-email-tomi.ollila at iki.fi"
> id:"1337152910-22371-6-git-send-email-tomi.ollila at iki.fi"
> id:"1337152910-22371-7-git-send-email-tomi.ollila at iki.fi"

I pushed those to release. I'll merge them to master after a bit;
hopefully we'll figure out that reply encoding thing and do a bug fix
release.

d


Re: [PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-16 Thread David Bremner
Tomi Ollila  writes:
>
> id:"1337152910-22371-4-git-send-email-tomi.oll...@iki.fi"
> id:"1337152910-22371-5-git-send-email-tomi.oll...@iki.fi"
> id:"1337152910-22371-6-git-send-email-tomi.oll...@iki.fi"
> id:"1337152910-22371-7-git-send-email-tomi.oll...@iki.fi"

I pushed those to release. I'll merge them to master after a bit;
hopefully we'll figure out that reply encoding thing and do a bug fix
release.

d
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-16 Thread Tomi Ollila

Sorry about the spam -- sent too many patches... PEBKAC.

The only relevant are:

id:"1337152910-22371-4-git-send-email-tomi.ollila at iki.fi"
id:"1337152910-22371-5-git-send-email-tomi.ollila at iki.fi"
id:"1337152910-22371-6-git-send-email-tomi.ollila at iki.fi"
id:"1337152910-22371-7-git-send-email-tomi.ollila at iki.fi"

rest are marked obsolete.

Tomi




[PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-16 Thread Tomi Ollila
NEWS entries in section 0.13 is brought consistent with rest of the
NEWS file.
---
 NEWS |   38 +++---
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/NEWS b/NEWS
index 69a7203..d841a4c 100644
--- a/NEWS
+++ b/NEWS
@@ -6,19 +6,19 @@ Command-Line Interface

 Reply to sender

-  "notmuch reply" has gained the ability to create a reply template
+  `notmuch reply` has gained the ability to create a reply template
   for replying just to the sender of the message, in addition to reply
   to all. The feature is available through the new command line option
-  --reply-to=(all|sender).
+  `--reply-to=(all|sender)`.

 JSON reply format

-  "notmuch reply" can now produce JSON output that contains the headers
+  `notmuch reply` can now produce JSON output that contains the headers
   for a reply message and full information about the original message
   begin replied to. This allows MUAs to create replies intelligently.
   For example, an MUA that can parse HTML might quote HTML parts.

-  Calling notmuch reply with --format=json imposes the restriction that
+  Calling notmuch reply with `--format=json` imposes the restriction that
   only a single message is returned by the search, as replying to
   multiple messages does not have a well-defined behavior. The default
   retains its current behavior for multiple message replies.
@@ -26,24 +26,24 @@ JSON reply format
 Tag exclusion

   Tags can be automatically excluded from search results by adding them
-  to the new 'search.exclude_tags' option in the Notmuch config file.
+  to the new `search.exclude_tags` option in the Notmuch config file.

   This behaviour can be overridden by explicitly including an excluded
   tag in your query, for example:

-notmuch search $your_query and tag:$excluded_tag
+notmuch search $your_query and tag:$excluded_tag

-  Existing users will probably want to run "notmuch setup" again to add
+  Existing users will probably want to run `notmuch setup` again to add
   the new well-commented [search] section to the configuration file.

   For new configurations, accepting the default setting will cause the
   tags "deleted" and "spam" to be excluded, equivalent to running:

-notmuch config set search.exclude_tags deleted spam
+notmuch config set search.exclude_tags deleted spam

 Raw show format changes

-  The output of show --format=raw has changed for multipart and
+  The output of show `--format=raw` has changed for multipart and
   message parts.  Previously, the output was a mash of somewhat-parsed
   headers and transfer-decoded bodies.  Now, such parts are reproduced
   faithfully from the original source.  Message parts (which includes
@@ -54,7 +54,7 @@ Raw show format changes

 Listing configuration items

-  The new "config list" command prints out all configuration items and
+  The new `config list` command prints out all configuration items and
   their values.

 Emacs Interface
@@ -64,7 +64,7 @@ Changes to tagging interface

   The user-facing tagging functions in the Emacs interface have been
   normalized across all notmuch modes.  The tagging functions are now
-  'notmuch-search-tag' in search-mode, and 'notmuch-show-tag' in
+  notmuch-search-tag in search-mode, and notmuch-show-tag in
   show-mode.  They accept a string representing a single tag change,
   or a list of tag changes.  See 'M-x describe-function notmuch-tag'
   for more information.
@@ -83,11 +83,11 @@ Reply improvement using the JSON format
 New add-on tool: notmuch-mutt
 -

-The new contrib/ tool "notmuch-mutt" provides Notmuch integration for
+The new contrib/ tool `notmuch-mutt` provides Notmuch integration for
 the Mutt mail user agent. Using it, Mutt users can perform mail
 search, thread reconstruction, and mail tagging/untagging without
 leaving Mutt.  notmuch-mutt, formerly distributed under the name
-"mutt-notmuch" by Stefano Zacchiroli, will be maintained as a notmuch
+`mutt-notmuch` by Stefano Zacchiroli, will be maintained as a notmuch
 contrib/ from now on.

 Library changes
@@ -96,18 +96,18 @@ Library changes
 The API changes detailed below break binary and source compatibility,
 so libnotmuch has been bumped to version 3.0.0.

-The function notmuch_database_close has been split into
-notmuch_database_close and notmuch_database_destroy
+The function `notmuch_database_close` has been split into
+`notmuch_database_close` and `notmuch_database_destroy`

   This makes it possible for long running programs to close the xapian
   database and thus release the lock associated with it without
   destroying the data structures obtained from it.

-notmuch_database_open, notmuch_database_create, and
-notmuch_database_get_directory now return errors
+`notmuch_database_open`, `notmuch_database_create`, and
+`notmuch_database_get_directory` now return errors

   The type signatures of these functions have changed so that the
-  functions now return a notmuch

[PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-16 Thread Tomi Ollila
NEWS entries in section 0.13 is brought consistent with rest of the
NEWS file.
---
 NEWS |   38 +++---
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/NEWS b/NEWS
index 69a7203..d841a4c 100644
--- a/NEWS
+++ b/NEWS
@@ -6,19 +6,19 @@ Command-Line Interface

 Reply to sender

-  "notmuch reply" has gained the ability to create a reply template
+  `notmuch reply` has gained the ability to create a reply template
   for replying just to the sender of the message, in addition to reply
   to all. The feature is available through the new command line option
-  --reply-to=(all|sender).
+  `--reply-to=(all|sender)`.

 JSON reply format

-  "notmuch reply" can now produce JSON output that contains the headers
+  `notmuch reply` can now produce JSON output that contains the headers
   for a reply message and full information about the original message
   begin replied to. This allows MUAs to create replies intelligently.
   For example, an MUA that can parse HTML might quote HTML parts.

-  Calling notmuch reply with --format=json imposes the restriction that
+  Calling notmuch reply with `--format=json` imposes the restriction that
   only a single message is returned by the search, as replying to
   multiple messages does not have a well-defined behavior. The default
   retains its current behavior for multiple message replies.
@@ -26,24 +26,24 @@ JSON reply format
 Tag exclusion

   Tags can be automatically excluded from search results by adding them
-  to the new 'search.exclude_tags' option in the Notmuch config file.
+  to the new `search.exclude_tags` option in the Notmuch config file.

   This behaviour can be overridden by explicitly including an excluded
   tag in your query, for example:

-notmuch search $your_query and tag:$excluded_tag
+notmuch search $your_query and tag:$excluded_tag

-  Existing users will probably want to run "notmuch setup" again to add
+  Existing users will probably want to run `notmuch setup` again to add
   the new well-commented [search] section to the configuration file.

   For new configurations, accepting the default setting will cause the
   tags "deleted" and "spam" to be excluded, equivalent to running:

-notmuch config set search.exclude_tags deleted spam
+notmuch config set search.exclude_tags deleted spam

 Raw show format changes

-  The output of show --format=raw has changed for multipart and
+  The output of show `--format=raw` has changed for multipart and
   message parts.  Previously, the output was a mash of somewhat-parsed
   headers and transfer-decoded bodies.  Now, such parts are reproduced
   faithfully from the original source.  Message parts (which includes
@@ -54,7 +54,7 @@ Raw show format changes

 Listing configuration items

-  The new "config list" command prints out all configuration items and
+  The new `config list` command prints out all configuration items and
   their values.

 Emacs Interface
@@ -64,7 +64,7 @@ Changes to tagging interface

   The user-facing tagging functions in the Emacs interface have been
   normalized across all notmuch modes.  The tagging functions are now
-  'notmuch-search-tag' in search-mode, and 'notmuch-show-tag' in
+  notmuch-search-tag in search-mode, and notmuch-show-tag in
   show-mode.  They accept a string representing a single tag change,
   or a list of tag changes.  See 'M-x describe-function notmuch-tag'
   for more information.
@@ -83,11 +83,11 @@ Reply improvement using the JSON format
 New add-on tool: notmuch-mutt
 -

-The new contrib/ tool "notmuch-mutt" provides Notmuch integration for
+The new contrib/ tool `notmuch-mutt` provides Notmuch integration for
 the Mutt mail user agent. Using it, Mutt users can perform mail
 search, thread reconstruction, and mail tagging/untagging without
 leaving Mutt.  notmuch-mutt, formerly distributed under the name
-"mutt-notmuch" by Stefano Zacchiroli, will be maintained as a notmuch
+`mutt-notmuch` by Stefano Zacchiroli, will be maintained as a notmuch
 contrib/ from now on.

 Library changes
@@ -96,18 +96,18 @@ Library changes
 The API changes detailed below break binary and source compatibility,
 so libnotmuch has been bumped to version 3.0.0.

-The function notmuch_database_close has been split into
-notmuch_database_close and notmuch_database_destroy
+The function `notmuch_database_close` has been split into
+`notmuch_database_close` and `notmuch_database_destroy`

   This makes it possible for long running programs to close the xapian
   database and thus release the lock associated with it without
   destroying the data structures obtained from it.

-notmuch_database_open, notmuch_database_create, and
-notmuch_database_get_directory now return errors
+`notmuch_database_open`, `notmuch_database_create`, and
+`notmuch_database_get_directory` now return errors

   The type signatures of these functions have changed so that the
-  functions now return a notmuch

[PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-16 Thread Jani Nikula
Tomi Ollila  writes:

> NEWS entries in section 0.13 is brought consistent with rest of the
> NEWS file.
> ---
>  NEWS |   38 +++---
>  1 files changed, 19 insertions(+), 19 deletions(-)
>
> diff --git a/NEWS b/NEWS
> index 69a7203..d841a4c 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -6,19 +6,19 @@ Command-Line Interface
>  
>  Reply to sender
>  
> -  "notmuch reply" has gained the ability to create a reply template
> +  `notmuch reply` has gained the ability to create a reply template
>for replying just to the sender of the message, in addition to reply
>to all. The feature is available through the new command line option
> -  --reply-to=(all|sender).
> +  `--reply-to=(all|sender)`.

The whole "reply to sender" section should go. It's old news, for 0.12.

Jani.


>  
>  JSON reply format
>  
> -  "notmuch reply" can now produce JSON output that contains the headers
> +  `notmuch reply` can now produce JSON output that contains the headers
>for a reply message and full information about the original message
>begin replied to. This allows MUAs to create replies intelligently.
>For example, an MUA that can parse HTML might quote HTML parts.
>  
> -  Calling notmuch reply with --format=json imposes the restriction that
> +  Calling notmuch reply with `--format=json` imposes the restriction that
>only a single message is returned by the search, as replying to
>multiple messages does not have a well-defined behavior. The default
>retains its current behavior for multiple message replies.
> @@ -26,24 +26,24 @@ JSON reply format
>  Tag exclusion
>  
>Tags can be automatically excluded from search results by adding them
> -  to the new 'search.exclude_tags' option in the Notmuch config file.
> +  to the new `search.exclude_tags` option in the Notmuch config file.
>  
>This behaviour can be overridden by explicitly including an excluded
>tag in your query, for example:
>  
> -notmuch search $your_query and tag:$excluded_tag
> +notmuch search $your_query and tag:$excluded_tag
>  
> -  Existing users will probably want to run "notmuch setup" again to add
> +  Existing users will probably want to run `notmuch setup` again to add
>the new well-commented [search] section to the configuration file.
>  
>For new configurations, accepting the default setting will cause the
>tags "deleted" and "spam" to be excluded, equivalent to running:
>  
> -notmuch config set search.exclude_tags deleted spam
> +notmuch config set search.exclude_tags deleted spam
>  
>  Raw show format changes
>  
> -  The output of show --format=raw has changed for multipart and
> +  The output of show `--format=raw` has changed for multipart and
>message parts.  Previously, the output was a mash of somewhat-parsed
>headers and transfer-decoded bodies.  Now, such parts are reproduced
>faithfully from the original source.  Message parts (which includes
> @@ -54,7 +54,7 @@ Raw show format changes
>  
>  Listing configuration items
>  
> -  The new "config list" command prints out all configuration items and
> +  The new `config list` command prints out all configuration items and
>their values.
>  
>  Emacs Interface
> @@ -64,7 +64,7 @@ Changes to tagging interface
>  
>The user-facing tagging functions in the Emacs interface have been
>normalized across all notmuch modes.  The tagging functions are now
> -  'notmuch-search-tag' in search-mode, and 'notmuch-show-tag' in
> +  notmuch-search-tag in search-mode, and notmuch-show-tag in
>show-mode.  They accept a string representing a single tag change,
>or a list of tag changes.  See 'M-x describe-function notmuch-tag'
>for more information.
> @@ -83,11 +83,11 @@ Reply improvement using the JSON format
>  New add-on tool: notmuch-mutt
>  -
>  
> -The new contrib/ tool "notmuch-mutt" provides Notmuch integration for
> +The new contrib/ tool `notmuch-mutt` provides Notmuch integration for
>  the Mutt mail user agent. Using it, Mutt users can perform mail
>  search, thread reconstruction, and mail tagging/untagging without
>  leaving Mutt.  notmuch-mutt, formerly distributed under the name
> -"mutt-notmuch" by Stefano Zacchiroli, will be maintained as a notmuch
> +`mutt-notmuch` by Stefano Zacchiroli, will be maintained as a notmuch
>  contrib/ from now on.
>  
>  Library changes
> @@ -96,18 +96,18 @@ Library changes
>  The API changes detailed below break binary and source compatibility,
>  so libnotmuch has been bumped to version 3.0.0.
>  
> -The function notmuch_database_close has been split into
> -notmuch_database_close and notmuch_database_destroy
> +The function `notmuch_database_close` has been split into
> +`notmuch_database_close` and `notmuch_database_destroy`
>  
>This makes it possible for long running programs to close the xapian
>database and thus release the lock associated with it without
>destroying the data str

Re: [PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-16 Thread Tomi Ollila

Sorry about the spam -- sent too many patches... PEBKAC.

The only relevant are:

id:"1337152910-22371-4-git-send-email-tomi.oll...@iki.fi"
id:"1337152910-22371-5-git-send-email-tomi.oll...@iki.fi"
id:"1337152910-22371-6-git-send-email-tomi.oll...@iki.fi"
id:"1337152910-22371-7-git-send-email-tomi.oll...@iki.fi"

rest are marked obsolete.

Tomi


___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-16 Thread Tomi Ollila
NEWS entries in section 0.13 is brought consistent with rest of the
NEWS file.
---
 NEWS |   38 +++---
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/NEWS b/NEWS
index 69a7203..d841a4c 100644
--- a/NEWS
+++ b/NEWS
@@ -6,19 +6,19 @@ Command-Line Interface
 
 Reply to sender
 
-  "notmuch reply" has gained the ability to create a reply template
+  `notmuch reply` has gained the ability to create a reply template
   for replying just to the sender of the message, in addition to reply
   to all. The feature is available through the new command line option
-  --reply-to=(all|sender).
+  `--reply-to=(all|sender)`.
 
 JSON reply format
 
-  "notmuch reply" can now produce JSON output that contains the headers
+  `notmuch reply` can now produce JSON output that contains the headers
   for a reply message and full information about the original message
   begin replied to. This allows MUAs to create replies intelligently.
   For example, an MUA that can parse HTML might quote HTML parts.
 
-  Calling notmuch reply with --format=json imposes the restriction that
+  Calling notmuch reply with `--format=json` imposes the restriction that
   only a single message is returned by the search, as replying to
   multiple messages does not have a well-defined behavior. The default
   retains its current behavior for multiple message replies.
@@ -26,24 +26,24 @@ JSON reply format
 Tag exclusion
 
   Tags can be automatically excluded from search results by adding them
-  to the new 'search.exclude_tags' option in the Notmuch config file.
+  to the new `search.exclude_tags` option in the Notmuch config file.
 
   This behaviour can be overridden by explicitly including an excluded
   tag in your query, for example:
 
-notmuch search $your_query and tag:$excluded_tag
+notmuch search $your_query and tag:$excluded_tag
 
-  Existing users will probably want to run "notmuch setup" again to add
+  Existing users will probably want to run `notmuch setup` again to add
   the new well-commented [search] section to the configuration file.
 
   For new configurations, accepting the default setting will cause the
   tags "deleted" and "spam" to be excluded, equivalent to running:
 
-notmuch config set search.exclude_tags deleted spam
+notmuch config set search.exclude_tags deleted spam
 
 Raw show format changes
 
-  The output of show --format=raw has changed for multipart and
+  The output of show `--format=raw` has changed for multipart and
   message parts.  Previously, the output was a mash of somewhat-parsed
   headers and transfer-decoded bodies.  Now, such parts are reproduced
   faithfully from the original source.  Message parts (which includes
@@ -54,7 +54,7 @@ Raw show format changes
 
 Listing configuration items
 
-  The new "config list" command prints out all configuration items and
+  The new `config list` command prints out all configuration items and
   their values.
 
 Emacs Interface
@@ -64,7 +64,7 @@ Changes to tagging interface
 
   The user-facing tagging functions in the Emacs interface have been
   normalized across all notmuch modes.  The tagging functions are now
-  'notmuch-search-tag' in search-mode, and 'notmuch-show-tag' in
+  notmuch-search-tag in search-mode, and notmuch-show-tag in
   show-mode.  They accept a string representing a single tag change,
   or a list of tag changes.  See 'M-x describe-function notmuch-tag'
   for more information.
@@ -83,11 +83,11 @@ Reply improvement using the JSON format
 New add-on tool: notmuch-mutt
 -
 
-The new contrib/ tool "notmuch-mutt" provides Notmuch integration for
+The new contrib/ tool `notmuch-mutt` provides Notmuch integration for
 the Mutt mail user agent. Using it, Mutt users can perform mail
 search, thread reconstruction, and mail tagging/untagging without
 leaving Mutt.  notmuch-mutt, formerly distributed under the name
-"mutt-notmuch" by Stefano Zacchiroli, will be maintained as a notmuch
+`mutt-notmuch` by Stefano Zacchiroli, will be maintained as a notmuch
 contrib/ from now on.
 
 Library changes
@@ -96,18 +96,18 @@ Library changes
 The API changes detailed below break binary and source compatibility,
 so libnotmuch has been bumped to version 3.0.0.
 
-The function notmuch_database_close has been split into
-notmuch_database_close and notmuch_database_destroy
+The function `notmuch_database_close` has been split into
+`notmuch_database_close` and `notmuch_database_destroy`
 
   This makes it possible for long running programs to close the xapian
   database and thus release the lock associated with it without
   destroying the data structures obtained from it.
 
-notmuch_database_open, notmuch_database_create, and
-notmuch_database_get_directory now return errors
+`notmuch_database_open`, `notmuch_database_create`, and
+`notmuch_database_get_directory` now return errors
 
   The type signatures of these functions have changed so that the
-  functio

Re: [PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-16 Thread Jani Nikula
Tomi Ollila  writes:

> NEWS entries in section 0.13 is brought consistent with rest of the
> NEWS file.
> ---
>  NEWS |   38 +++---
>  1 files changed, 19 insertions(+), 19 deletions(-)
>
> diff --git a/NEWS b/NEWS
> index 69a7203..d841a4c 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -6,19 +6,19 @@ Command-Line Interface
>  
>  Reply to sender
>  
> -  "notmuch reply" has gained the ability to create a reply template
> +  `notmuch reply` has gained the ability to create a reply template
>for replying just to the sender of the message, in addition to reply
>to all. The feature is available through the new command line option
> -  --reply-to=(all|sender).
> +  `--reply-to=(all|sender)`.

The whole "reply to sender" section should go. It's old news, for 0.12.

Jani.


>  
>  JSON reply format
>  
> -  "notmuch reply" can now produce JSON output that contains the headers
> +  `notmuch reply` can now produce JSON output that contains the headers
>for a reply message and full information about the original message
>begin replied to. This allows MUAs to create replies intelligently.
>For example, an MUA that can parse HTML might quote HTML parts.
>  
> -  Calling notmuch reply with --format=json imposes the restriction that
> +  Calling notmuch reply with `--format=json` imposes the restriction that
>only a single message is returned by the search, as replying to
>multiple messages does not have a well-defined behavior. The default
>retains its current behavior for multiple message replies.
> @@ -26,24 +26,24 @@ JSON reply format
>  Tag exclusion
>  
>Tags can be automatically excluded from search results by adding them
> -  to the new 'search.exclude_tags' option in the Notmuch config file.
> +  to the new `search.exclude_tags` option in the Notmuch config file.
>  
>This behaviour can be overridden by explicitly including an excluded
>tag in your query, for example:
>  
> -notmuch search $your_query and tag:$excluded_tag
> +notmuch search $your_query and tag:$excluded_tag
>  
> -  Existing users will probably want to run "notmuch setup" again to add
> +  Existing users will probably want to run `notmuch setup` again to add
>the new well-commented [search] section to the configuration file.
>  
>For new configurations, accepting the default setting will cause the
>tags "deleted" and "spam" to be excluded, equivalent to running:
>  
> -notmuch config set search.exclude_tags deleted spam
> +notmuch config set search.exclude_tags deleted spam
>  
>  Raw show format changes
>  
> -  The output of show --format=raw has changed for multipart and
> +  The output of show `--format=raw` has changed for multipart and
>message parts.  Previously, the output was a mash of somewhat-parsed
>headers and transfer-decoded bodies.  Now, such parts are reproduced
>faithfully from the original source.  Message parts (which includes
> @@ -54,7 +54,7 @@ Raw show format changes
>  
>  Listing configuration items
>  
> -  The new "config list" command prints out all configuration items and
> +  The new `config list` command prints out all configuration items and
>their values.
>  
>  Emacs Interface
> @@ -64,7 +64,7 @@ Changes to tagging interface
>  
>The user-facing tagging functions in the Emacs interface have been
>normalized across all notmuch modes.  The tagging functions are now
> -  'notmuch-search-tag' in search-mode, and 'notmuch-show-tag' in
> +  notmuch-search-tag in search-mode, and notmuch-show-tag in
>show-mode.  They accept a string representing a single tag change,
>or a list of tag changes.  See 'M-x describe-function notmuch-tag'
>for more information.
> @@ -83,11 +83,11 @@ Reply improvement using the JSON format
>  New add-on tool: notmuch-mutt
>  -
>  
> -The new contrib/ tool "notmuch-mutt" provides Notmuch integration for
> +The new contrib/ tool `notmuch-mutt` provides Notmuch integration for
>  the Mutt mail user agent. Using it, Mutt users can perform mail
>  search, thread reconstruction, and mail tagging/untagging without
>  leaving Mutt.  notmuch-mutt, formerly distributed under the name
> -"mutt-notmuch" by Stefano Zacchiroli, will be maintained as a notmuch
> +`mutt-notmuch` by Stefano Zacchiroli, will be maintained as a notmuch
>  contrib/ from now on.
>  
>  Library changes
> @@ -96,18 +96,18 @@ Library changes
>  The API changes detailed below break binary and source compatibility,
>  so libnotmuch has been bumped to version 3.0.0.
>  
> -The function notmuch_database_close has been split into
> -notmuch_database_close and notmuch_database_destroy
> +The function `notmuch_database_close` has been split into
> +`notmuch_database_close` and `notmuch_database_destroy`
>  
>This makes it possible for long running programs to close the xapian
>database and thus release the lock associated with it without
>destroying the data str

[PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text

2012-05-15 Thread Tomi Ollila
NEWS entries in section 0.13 is brought consistent with rest of the
NEWS file.
---
 NEWS |   38 +++---
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/NEWS b/NEWS
index 69a7203..d841a4c 100644
--- a/NEWS
+++ b/NEWS
@@ -6,19 +6,19 @@ Command-Line Interface
 
 Reply to sender
 
-  "notmuch reply" has gained the ability to create a reply template
+  `notmuch reply` has gained the ability to create a reply template
   for replying just to the sender of the message, in addition to reply
   to all. The feature is available through the new command line option
-  --reply-to=(all|sender).
+  `--reply-to=(all|sender)`.
 
 JSON reply format
 
-  "notmuch reply" can now produce JSON output that contains the headers
+  `notmuch reply` can now produce JSON output that contains the headers
   for a reply message and full information about the original message
   begin replied to. This allows MUAs to create replies intelligently.
   For example, an MUA that can parse HTML might quote HTML parts.
 
-  Calling notmuch reply with --format=json imposes the restriction that
+  Calling notmuch reply with `--format=json` imposes the restriction that
   only a single message is returned by the search, as replying to
   multiple messages does not have a well-defined behavior. The default
   retains its current behavior for multiple message replies.
@@ -26,24 +26,24 @@ JSON reply format
 Tag exclusion
 
   Tags can be automatically excluded from search results by adding them
-  to the new 'search.exclude_tags' option in the Notmuch config file.
+  to the new `search.exclude_tags` option in the Notmuch config file.
 
   This behaviour can be overridden by explicitly including an excluded
   tag in your query, for example:
 
-notmuch search $your_query and tag:$excluded_tag
+notmuch search $your_query and tag:$excluded_tag
 
-  Existing users will probably want to run "notmuch setup" again to add
+  Existing users will probably want to run `notmuch setup` again to add
   the new well-commented [search] section to the configuration file.
 
   For new configurations, accepting the default setting will cause the
   tags "deleted" and "spam" to be excluded, equivalent to running:
 
-notmuch config set search.exclude_tags deleted spam
+notmuch config set search.exclude_tags deleted spam
 
 Raw show format changes
 
-  The output of show --format=raw has changed for multipart and
+  The output of show `--format=raw` has changed for multipart and
   message parts.  Previously, the output was a mash of somewhat-parsed
   headers and transfer-decoded bodies.  Now, such parts are reproduced
   faithfully from the original source.  Message parts (which includes
@@ -54,7 +54,7 @@ Raw show format changes
 
 Listing configuration items
 
-  The new "config list" command prints out all configuration items and
+  The new `config list` command prints out all configuration items and
   their values.
 
 Emacs Interface
@@ -64,7 +64,7 @@ Changes to tagging interface
 
   The user-facing tagging functions in the Emacs interface have been
   normalized across all notmuch modes.  The tagging functions are now
-  'notmuch-search-tag' in search-mode, and 'notmuch-show-tag' in
+  notmuch-search-tag in search-mode, and notmuch-show-tag in
   show-mode.  They accept a string representing a single tag change,
   or a list of tag changes.  See 'M-x describe-function notmuch-tag'
   for more information.
@@ -83,11 +83,11 @@ Reply improvement using the JSON format
 New add-on tool: notmuch-mutt
 -
 
-The new contrib/ tool "notmuch-mutt" provides Notmuch integration for
+The new contrib/ tool `notmuch-mutt` provides Notmuch integration for
 the Mutt mail user agent. Using it, Mutt users can perform mail
 search, thread reconstruction, and mail tagging/untagging without
 leaving Mutt.  notmuch-mutt, formerly distributed under the name
-"mutt-notmuch" by Stefano Zacchiroli, will be maintained as a notmuch
+`mutt-notmuch` by Stefano Zacchiroli, will be maintained as a notmuch
 contrib/ from now on.
 
 Library changes
@@ -96,18 +96,18 @@ Library changes
 The API changes detailed below break binary and source compatibility,
 so libnotmuch has been bumped to version 3.0.0.
 
-The function notmuch_database_close has been split into
-notmuch_database_close and notmuch_database_destroy
+The function `notmuch_database_close` has been split into
+`notmuch_database_close` and `notmuch_database_destroy`
 
   This makes it possible for long running programs to close the xapian
   database and thus release the lock associated with it without
   destroying the data structures obtained from it.
 
-notmuch_database_open, notmuch_database_create, and
-notmuch_database_get_directory now return errors
+`notmuch_database_open`, `notmuch_database_create`, and
+`notmuch_database_get_directory` now return errors
 
   The type signatures of these functions have changed so that the
-  functio