[PATCH] emacs: make message indentation width customisable (was: Re: configure indentation width instead?)

Subject: [PATCH] emacs: make message indentation width customisable (was: Re: configure indentation width instead?)

Date: Sun, 23 Oct 2011 18:43:24 +0200

To: notmuch

Cc:

From: Gregor Zattler


Hi Michal, Felix, notmuch developers,
* Michal Sojka <sojkam1@fel.cvut.cz> [16. Aug. 2011]:
> On Tue, 19 Jul 2011, Gregor Zattler wrote:
>> Felix introduces a boolean configuration variable in order to
>> disable/enable indentation.   Wouldn't it be more helpful and
>> powerful to customise the indentation width with "0" meaning no
>> indentation, "1" being the current behaviour, "2" meaning double
>> indentation, "3" threefold indentation ...  ?
> 
> +1
> 
> Sometimes I find indenting by one character too small to find the
> replied message in long threads.

I also need more indentation in order to not get lost in long
threads and displays are wide today.

I now altered Felix' patches from dis/enabling indentation to
making indentation customisable.  I actually have no clue of
elisp and the test suite, I really only altered his patches.

The actual patch makes message indentation customisable by
introducing a variable `notmuch-indent-messages-width' which
defaults to `1', which is the same as before.  Felix could set
this variable to `0' in order to disable indentation, I tested it
with a value of `4' for a clearer separation of messages in a
thread.  This patch works for me.

I also altered Felix test to use this new variable.  I don't know
how to run the test suite and therefore don't know if it really
tests zero indentation.

HTH and thanks for notmuch and notmuch-Emacs which perhaps helps
me to use Emacs as a MUA, Gregor

Thread: