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 935E3431FBC for ; Sun, 9 Dec 2012 12:30:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.201 X-Spam-Level: X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 xacGqRvi004L for ; Sun, 9 Dec 2012 12:30:22 -0800 (PST) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 00832431FB6 for ; Sun, 9 Dec 2012 12:30:21 -0800 (PST) Received: by mail-we0-f181.google.com with SMTP id t11so1056296wey.26 for ; Sun, 09 Dec 2012 12:30:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=/O+kS8FWSr3r8Rjw2GTfrbAbDYVVuRjf3yG9P6eNFew=; b=QJxPZYNVfPvMsewdT7LJoqgglgo/ga454BvXIVWdGJmqJKN2r8iqt5V7m5my1QrQul g9BQnGOlOmt/it7OmQ9QqmV2xFoohpJ8zy5WW7rGgbnqHzWP5lnuxpSHoAKpLudb9Psm TKvtMwtlBS7QYYcnJMGR2OkoCzZloJzuQT58wJLX/zHL3iGdrc/tnR6LIg+oaxksBGkj 3PMhm9wFApcMEOsiybaMXceEQ+XWySOrFl4fld21y0RK/oclSMpK2zmwoAfoRWaw1jsE 0MKwNu2LoKEWPon50/xQCADthlcNwhLQliX3mw1JBq+UozKZcIrmD7r8zd6HVkzcjfkx y0jQ== Received: by 10.180.20.177 with SMTP id o17mr7499597wie.18.1355085020862; Sun, 09 Dec 2012 12:30:20 -0800 (PST) Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) by mx.google.com with ESMTPS id y3sm7398862wix.6.2012.12.09.12.30.19 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Dec 2012 12:30:19 -0800 (PST) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH] contrib: pick: Do not indent messages in the message pane Date: Sun, 9 Dec 2012 20:30:19 +0000 Message-Id: <1355085019-18534-1-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 1.7.9.1 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, 09 Dec 2012 20:30:22 -0000 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. --- 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