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 DBFC540B940 for ; Thu, 1 Jul 2010 09:09:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001] autolearn=ham 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 vJ1qHTIiHUy8 for ; Thu, 1 Jul 2010 09:09:04 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) by olra.theworths.org (Postfix) with ESMTP id C689D40AB53 for ; Thu, 1 Jul 2010 09:08:51 -0700 (PDT) Received: by mail-fx0-f53.google.com with SMTP id 19so1776530fxm.26 for ; Thu, 01 Jul 2010 09:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=3YMwGETp6qiv3nbvfRgCdSqL3cey+7sDm4j4IaHC5tM=; b=Fhgd58nbq9MCEnclUdGVU0m8BsLn4rg5i8D2XnRyCbSNQq8kB/cuBJkNuwxWkWZQ2p rQ5Wucavu5cmYM7zqlB9H88DnlSy2zkNIrLRNCsv/AEt1exu+rBqozYD9WE8hW5Nd9tZ RPrJfi/bGqql4PzrOI/wGa2wxp5+c74fR57m8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=nFOrkElgzs6nFXa1VDFqQ3B7Vqa/olMfZqZzqqbfASml7V2bWQSZWO1/vLEZnpHUL8 6k24k9ZJekX9tAQEA10/tKGIf+VdkWw5NOnfFzslRXh4aRiwukt1YFDcwd0+vh8fzMN8 7NcQRX6GTw7D572cR02p8Yp2C6iUA0jiCiRuo= Received: by 10.223.18.2 with SMTP id u2mr9789344faa.73.1278000531228; Thu, 01 Jul 2010 09:08:51 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id a3sm346705fak.16.2010.07.01.09.08.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 09:08:49 -0700 (PDT) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH 1/5] Use notmuch-show-get-message-id in notmuch-show-get-bodypart-content. Date: Thu, 1 Jul 2010 20:08:23 +0400 Message-Id: <1278000507-22290-2-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com> 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: Thu, 01 Jul 2010 16:09:15 -0000 --- emacs/notmuch-show.el | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 84c6cd6..a845efc 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -349,7 +349,7 @@ current buffer, if possible." (defun notmuch-show-get-bodypart-content (msg part nth) (or (plist-get part :content) - (notmuch-show-get-bodypart-internal (concat "id:" (plist-get msg :id)) nth))) + (notmuch-show-get-bodypart-internal (notmuch-show-get-message-id msg) nth))) ;; @@ -728,9 +728,9 @@ All currently available key bindings: (notmuch-show-get-message-properties)))) (plist-get props prop))) -(defun notmuch-show-get-message-id () +(defun notmuch-show-get-message-id (&optional props) "Return the message id of the current message." - (concat "id:" (notmuch-show-get-prop :id))) + (concat "id:" (notmuch-show-get-prop :id props))) ;; dme: Would it make sense to use a macro for many of these? -- 1.7.1