From 6a4290fc0fdc33e5c84b771e1eaf4c99034d7b7b Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Mon, 17 Dec 2012 18:26:53 +0200 Subject: [PATCH] Re: [PATCH] contrib: pick: Do not indent messages in the message pane --- ce/8a11ace4d325f3ecaf0c9019960870c5dbea69 | 101 ++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 ce/8a11ace4d325f3ecaf0c9019960870c5dbea69 diff --git a/ce/8a11ace4d325f3ecaf0c9019960870c5dbea69 b/ce/8a11ace4d325f3ecaf0c9019960870c5dbea69 new file mode 100644 index 000000000..4a7388a99 --- /dev/null +++ b/ce/8a11ace4d325f3ecaf0c9019960870c5dbea69 @@ -0,0 +1,101 @@ +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 -- 2.26.2