unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH v1] emacs: Don't indent multipart sub-parts during reply.
@ 2016-04-12  8:04 David Edmondson
  2016-04-12 16:26 ` Daniel Kahn Gillmor
  2016-04-16 11:56 ` David Bremner
  0 siblings, 2 replies; 3+ messages in thread
From: David Edmondson @ 2016-04-12  8:04 UTC (permalink / raw)
  To: notmuch

When generating cited messages for replay, override any existing
setting for `notmuch-show-indent-multipart' to ensure that no
indentation occurs.
---

In response to id:87oa9fsl9i.fsf@alice.fifthhorseman.net.

 emacs/notmuch-mua.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 935cbd3..31e6360 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -248,7 +248,9 @@ mutiple parts get a header."
 		       ;; Don't omit long parts.
 		       (notmuch-show-max-text-part-size 0)
 		       ;; Insert headers for parts as appropriate for replying.
-		       (notmuch-show-insert-header-p-function notmuch-mua-reply-insert-header-p-function))
+		       (notmuch-show-insert-header-p-function notmuch-mua-reply-insert-header-p-function)
+		       ;; Don't indent multipart sub-parts.
+		       (notmuch-show-indent-multipart nil))
 		    (notmuch-show-insert-body original (plist-get original :body) 0)
 		    (buffer-substring-no-properties (point-min) (point-max)))))
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] emacs: Don't indent multipart sub-parts during reply.
  2016-04-12  8:04 [PATCH v1] emacs: Don't indent multipart sub-parts during reply David Edmondson
@ 2016-04-12 16:26 ` Daniel Kahn Gillmor
  2016-04-16 11:56 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Kahn Gillmor @ 2016-04-12 16:26 UTC (permalink / raw)
  To: David Edmondson, notmuch

On Tue 2016-04-12 04:04:04 -0400, David Edmondson <dme@dme.org> wrote:
> When generating cited messages for replay, override any existing
> setting for `notmuch-show-indent-multipart' to ensure that no
> indentation occurs.

this patch works for me, thanks!

     --dkg

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] emacs: Don't indent multipart sub-parts during reply.
  2016-04-12  8:04 [PATCH v1] emacs: Don't indent multipart sub-parts during reply David Edmondson
  2016-04-12 16:26 ` Daniel Kahn Gillmor
@ 2016-04-16 11:56 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2016-04-16 11:56 UTC (permalink / raw)
  To: David Edmondson, notmuch

David Edmondson <dme@dme.org> writes:

> When generating cited messages for replay, override any existing
> setting for `notmuch-show-indent-multipart' to ensure that no
> indentation occurs.

pushed,

d

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-16 11:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-12  8:04 [PATCH v1] emacs: Don't indent multipart sub-parts during reply David Edmondson
2016-04-12 16:26 ` Daniel Kahn Gillmor
2016-04-16 11:56 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).