From 9a41d8680d2a8fa1fdec9f68ec43c6f089c5df2f Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Sun, 13 Oct 2013 08:49:00 +0100 Subject: [PATCH] [PATCH] contrib: pick: update notmuch-show calls --- b5/ba5246c7d8ed67692e666c562f04f5f34bd32d | 96 +++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 b5/ba5246c7d8ed67692e666c562f04f5f34bd32d diff --git a/b5/ba5246c7d8ed67692e666c562f04f5f34bd32d b/b5/ba5246c7d8ed67692e666c562f04f5f34bd32d new file mode 100644 index 000000000..e7df937fe --- /dev/null +++ b/b5/ba5246c7d8ed67692e666c562f04f5f34bd32d @@ -0,0 +1,96 @@ +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 26841431FAF + for ; Sun, 13 Oct 2013 00:49:17 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 2.7 +X-Spam-Level: ** +X-Spam-Status: No, score=2.7 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, + FREEMAIL_REPLY=2.499, 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 t4rGe+m9NNrX for ; + Sun, 13 Oct 2013 00:49:09 -0700 (PDT) +Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com + [209.85.212.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id DF08F431FAE + for ; Sun, 13 Oct 2013 00:49:08 -0700 (PDT) +Received: by mail-wi0-f170.google.com with SMTP id l12so2830847wiv.3 + for ; Sun, 13 Oct 2013 00:49:07 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id; + bh=bzlygm81kARafdLkAG7ryTZP9NmeyaH576rQPhBTWlE=; + b=MFnKlJSP3Kvt3R3Pu1FAqLf9tlsQzcfWdmbLrIN+tm0QI/PNMXwaDJGA3CAUB/8ID2 + fKElN+lLtf7z/GA2kfNpk14x+Es1byrYjKkSK3Buj0i+9zs5s3bv58CcmIRHHlbB+iW2 + FiqzIaz/l9Shoj1X004BDpxxzUCoa8PbC+NdweqC5pgOX3WF20/jaTcsds1nVvSvUc4W + /kXL2J/FZ0cnCmFAgQHl66WntTkof8bwl+CrxyVeA8JhKNrflcO+q57tRL5NLlT3pN3V + tDfdztKXpyu5XFfRc+Ap9zXHdmXiKbtWDcldQZHP0wSeUVZoy5XYKb86lzNtkvP44Naz + qrLw== +X-Received: by 10.194.23.73 with SMTP id k9mr25286718wjf.24.1381650547809; + Sun, 13 Oct 2013 00:49:07 -0700 (PDT) +Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) + by mx.google.com with ESMTPSA id pi6sm12321503wic.3.1969.12.31.16.00.00 + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sun, 13 Oct 2013 00:49:07 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH] contrib: pick: update notmuch-show calls +Date: Sun, 13 Oct 2013 08:49:00 +0100 +Message-Id: <1381650540-24058-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, 13 Oct 2013 07:49:17 -0000 + +Remove some unneeded nil arguments in notmuch-show calls. +--- +This is really a patch on top of +id:1381649952-23122-1-git-send-email-markwalters1009@gmail.com as +passing three nil optional arguments out of four seems untidy. Since +these arguments are superfluous in any case just remove them. + + + contrib/notmuch-pick/notmuch-pick.el | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el +index 0aa651e..a492214 100644 +--- a/contrib/notmuch-pick/notmuch-pick.el ++++ b/contrib/notmuch-pick/notmuch-pick.el +@@ -461,7 +461,7 @@ Does NOT change the database." + ;; Since we are only displaying one message do not indent. + (let ((notmuch-show-indent-messages-width 0) + (notmuch-show-only-matching-messages t)) +- (setq buffer (notmuch-show id nil nil nil)))) ++ (setq buffer (notmuch-show id)))) + ;; We need the `let' as notmuch-pick-message-window is buffer local. + (let ((window notmuch-pick-message-window)) + (with-current-buffer buffer +@@ -480,7 +480,7 @@ Does NOT change the database." + (when id + ;; We close the window to kill off un-needed buffers. + (notmuch-pick-close-message-window) +- (notmuch-show id nil nil nil)))) ++ (notmuch-show id)))) + + (defun notmuch-pick-show-message (arg) + "Show the current message. +-- +1.7.9.1 + -- 2.26.2