Re: [PATCH v2] Emacs: Indent first header line only when indentation is turned on

Subject: Re: [PATCH v2] Emacs: Indent first header line only when indentation is turned on

Date: Wed, 12 Aug 2020 20:38:06 -0300

To: Teemu Likonen, David Edmondson, notmuch@notmuchmail.org

Cc: Teemu Likonen

From: David Bremner


Teemu Likonen <tlikonen@iki.fi> writes:


> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
> index 0eb27e33..444b2a45 100644
> --- a/emacs/notmuch-show.el
> +++ b/emacs/notmuch-show.el
> @@ -474,7 +474,10 @@ message at DEPTH in the current thread."
>        ;; invisible U+200E LEFT-TO-RIGHT MARK character which forces
>        ;; the header paragraph as left-to-right text.
>        (insert (propertize (string ?\x200e) 'invisible t)))
> -    (insert (notmuch-show-spaces-n (* notmuch-show-indent-messages-width depth))
> +    (insert (if notmuch-show-indent-content
> +		(notmuch-show-spaces-n (* notmuch-show-indent-messages-width
> +					  depth))
> +	      "")
>  	    from
>  	    " ("
>  	    date

the test "notmuch-show: disable indentation of thread content (w/
notmuch-show-toggle-thread-indentation)" in T450-emacs-show needs to be
adjusted for this change (i.e. it fails as is).
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: