Re: [PATCH] emacs: escape quote in notmuch-search-result-format docstring

Subject: Re: [PATCH] emacs: escape quote in notmuch-search-result-format docstring

Date: Wed, 16 Feb 2022 23:06:14 +0200

To: David Bremner, Rudolf Adamkovič, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Wed, Feb 16 2022, David Bremner wrote:

LGTM, now I remeber this syntax...

Tomi

> Prevent Emacs' mangling of quotes, which breaks the code sample.
> ---
>  emacs/notmuch.el | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/emacs/notmuch.el b/emacs/notmuch.el
> index 6abb17ff..c9cf80dc 100644
> --- a/emacs/notmuch.el
> +++ b/emacs/notmuch.el
> @@ -93,7 +93,7 @@
>  Supported fields are: date, count, authors, subject, tags.
>  For example:
>      (setq notmuch-search-result-format
> -          '((\"authors\" . \"%-40s\")
> +          \\='((\"authors\" . \"%-40s\")
>              (\"subject\" . \"%s\")))
>  
>  Line breaks are permitted in format strings (though this is
> -- 
> 2.34.1
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: