From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 80FE8431FD0 for ; Sun, 23 Oct 2011 09:43:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b9H03CY9ABuw for ; Sun, 23 Oct 2011 09:43:54 -0700 (PDT) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by olra.theworths.org (Postfix) with SMTP id 6FBE3431FB6 for ; Sun, 23 Oct 2011 09:43:54 -0700 (PDT) Received: (qmail invoked by alias); 23 Oct 2011 16:43:50 -0000 Received: from p54BE2C59.dip.t-dialin.net (EHLO shi.workgroup) [84.190.44.89] by mail.gmx.net (mp003) with SMTP; 23 Oct 2011 18:43:50 +0200 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX195aSpOXdV5OaOqc4uklGDgR8YB/sZHfd/QdQyi48 n4GEn6QIG0S/ea Received: from grfz by shi.workgroup with local (Exim 4.77) (envelope-from ) id 1RI19E-0007xu-7n; Sun, 23 Oct 2011 18:43:44 +0200 Date: Sun, 23 Oct 2011 18:43:24 +0200 From: Gregor Zattler To: notmuch Subject: [PATCH] emacs: make message indentation width customisable (was: Re: configure indentation width instead?) Message-ID: <20111023164324.GC21842@shi.workgroup> Mail-Followup-To: notmuch References: <87vcuz2yga.fsf@servo.factory.finestructure.net> <1311028119-50637-1-git-send-email-fgeller@gmail.com> <1311028119-50637-3-git-send-email-fgeller@gmail.com> <20110719105059.GA6472@shi.workgroup> <87wrednlzz.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wrednlzz.fsf@steelpick.2x.cz> User-Agent: Mutt/1.5.21 (2010-09-15) X-Y-GMX-Trusted: 0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2011 16:43:55 -0000 Hi Michal, Felix, notmuch developers, * Michal Sojka [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