Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C6448431FB6 for ; Mon, 17 Dec 2012 08:26:59 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 xaQU3dY4yPfB for ; Mon, 17 Dec 2012 08:26:59 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id 524D5431FAE for ; Mon, 17 Dec 2012 08:26:59 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 053A6100094; Mon, 17 Dec 2012 18:26:53 +0200 (EET) From: Tomi Ollila To: Mark Walters , notmuch@notmuchmail.org Subject: Re: [PATCH] contrib: pick: Do not indent messages in the message pane In-Reply-To: <1355085019-18534-1-git-send-email-markwalters1009@gmail.com> References: <1355085019-18534-1-git-send-email-markwalters1009@gmail.com> User-Agent: Notmuch/0.14+116~g29fcdb5 (http://notmuchmail.org) Emacs/24.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain 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: Mon, 17 Dec 2012 16:27:00 -0000 On Sun, Dec 09 2012, Mark Walters wrote: > Currently pick just uses notmuch-show to display messages in the > message pane: this means that they get indented just as show > would. However, since pick is only displaying one message at a time > there is no need to indent so override the indentation. > --- LGTM. Tomi > > Thanks to jrollins for the suggestion. It would also be possible to > indent the headers (as a visual clue to how deep we are in the thread) > or to make this customisable. However there is no point in doing that > unless someone says they would prefer something else. > > Best wishes > > Mark > > > > contrib/notmuch-pick/notmuch-pick.el | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el > index cf026af..ce5d0d4 100644 > --- a/contrib/notmuch-pick/notmuch-pick.el > +++ b/contrib/notmuch-pick/notmuch-pick.el > @@ -337,8 +337,10 @@ Does NOT change the database." > (setq notmuch-pick-message-window > (split-window-vertically (/ (window-height) 4))) > (with-selected-window notmuch-pick-message-window > - (setq current-prefix-arg '(4)) > - (setq buffer (notmuch-show id nil nil nil))) > + ;; Since we are only displaying one message do not indent. > + (let ((notmuch-show-indent-messages-width 0)) > + (setq current-prefix-arg '(4)) > + (setq buffer (notmuch-show id nil nil nil)))) > (notmuch-pick-tag-update-display (list "-unread")) > (setq notmuch-pick-message-buffer buffer)))) > > -- > 1.7.9.1 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch