* [PATCH] Fix minor mistake where indentation width is ignored
@ 2017-06-29 14:05 Tom Hinton
0 siblings, 0 replies; 3+ messages in thread
From: Tom Hinton @ 2017-06-29 14:05 UTC (permalink / raw)
To: notmuch; +Cc: Tom Hinton
---
emacs/notmuch-show.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 0f157ec5..f99a5c3b 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -330,7 +330,7 @@ operation on the contents of the current buffer."
(with-temp-buffer
(insert all)
(if indenting
- (indent-rigidly (point-min) (point-max) (- depth)))
+ (indent-rigidly (point-min) (point-max) (- (* notmuch-show-indent-messages-width depth))))
;; Remove the original header.
(goto-char (point-min))
(re-search-forward "^$" (point-max) nil)
@@ -909,7 +909,7 @@ will return nil if the CID is unknown or cannot be retrieved."
(narrow-to-region part-beg part-end)
(delete-region part-beg part-end)
(apply #'notmuch-show-insert-bodypart-internal part-args)
- (indent-rigidly part-beg part-end depth))
+ (indent-rigidly part-beg part-end (* notmuch-show-indent-messages-width depth)))
(goto-char part-end)
(delete-char 1)
(notmuch-show-record-part-information (second part-args)
--
2.12.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] Fix minor mistake where indentation width is ignored
@ 2017-06-29 14:08 Tom Hinton
2017-07-01 15:29 ` David Bremner
0 siblings, 1 reply; 3+ messages in thread
From: Tom Hinton @ 2017-06-29 14:08 UTC (permalink / raw)
To: notmuch@notmuchmail.org; +Cc: Tom Hinton
---
emacs/notmuch-show.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 0f157ec5..f99a5c3b 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -330,7 +330,7 @@ operation on the contents of the current buffer."
(with-temp-buffer
(insert all)
(if indenting
- (indent-rigidly (point-min) (point-max) (- depth)))
+ (indent-rigidly (point-min) (point-max) (- (* notmuch-show-indent-messages-width depth))))
;; Remove the original header.
(goto-char (point-min))
(re-search-forward "^$" (point-max) nil)
@@ -909,7 +909,7 @@ will return nil if the CID is unknown or cannot be retrieved."
(narrow-to-region part-beg part-end)
(delete-region part-beg part-end)
(apply #'notmuch-show-insert-bodypart-internal part-args)
- (indent-rigidly part-beg part-end depth))
+ (indent-rigidly part-beg part-end (* notmuch-show-indent-messages-width depth)))
(goto-char part-end)
(delete-char 1)
(notmuch-show-record-part-information (second part-args)
--
2.12.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix minor mistake where indentation width is ignored
2017-06-29 14:08 Tom Hinton
@ 2017-07-01 15:29 ` David Bremner
0 siblings, 0 replies; 3+ messages in thread
From: David Bremner @ 2017-07-01 15:29 UTC (permalink / raw)
To: Tom Hinton, notmuch@notmuchmail.org; +Cc: Tom Hinton
thanks for the patch
pushed to master,
d
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-07-01 15:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29 14:05 [PATCH] Fix minor mistake where indentation width is ignored Tom Hinton
-- strict thread matches above, loose matches on Subject: below --
2017-06-29 14:08 Tom Hinton
2017-07-01 15:29 ` 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).