Re: [notmuch] [PATCH 4/9] Factor out message buffer mgmt from notmuch-show-view-all...
authorAlexander Botero-Lowry <alex.boterolowry@gmail.com>
Sat, 28 Nov 2009 05:23:19 +0000 (21:23 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:46 +0000 (09:35 -0800)
da/9c0d2ca2827d880d2069aadc8c2f99bcc5f52d [new file with mode: 0644]

diff --git a/da/9c0d2ca2827d880d2069aadc8c2f99bcc5f52d b/da/9c0d2ca2827d880d2069aadc8c2f99bcc5f52d
new file mode 100644 (file)
index 0000000..fc5bbb8
--- /dev/null
@@ -0,0 +1,97 @@
+Return-Path: <alex.boterolowry@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id BCD7A431FC3\r
+       for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 21:23:13 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Jy48-htvpV9b for <notmuch@notmuchmail.org>;\r
+       Fri, 27 Nov 2009 21:23:13 -0800 (PST)\r
+Received: from mail-pw0-f51.google.com (mail-pw0-f51.google.com\r
+       [209.85.160.51])\r
+       by olra.theworths.org (Postfix) with ESMTP id 0C17A431FBC\r
+       for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 21:23:12 -0800 (PST)\r
+Received: by pwj10 with SMTP id 10so1283587pwj.30\r
+       for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 21:23:12 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:received:received:received:from:to:cc:subject\r
+       :in-reply-to:references:date:message-id:mime-version:content-type;\r
+       bh=QJ3MBNx6QQ4a0IDzu/mAE0W3uol8VjU9USGivV6XrOk=;\r
+       b=wozLRGWZdYdm/fiGZo451kCkD+nyxvXFtzFXSCxCm/DoJF8tpLZJw9kdG5NOcBjyj6\r
+       DAW1Jd/CGbfloJ32zno5wnyVtAVr9IKSymWwGyWsq4YfQYIQAizJlFN5ggwPungZNbqO\r
+       26ZH4Ua5o0rM6qqAGgZeLoaf11ilFxe8xQOAo=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=from:to:cc:subject:in-reply-to:references:date:message-id\r
+       :mime-version:content-type;\r
+       b=S19bzXRlWA/grI8emvXnRE43hj1joyAj+s8SKElijAyYEDWBK0RkU6ECfOZBPcJkQU\r
+       fw89H52r+yAjqQUIeAN6oLG94U2T4DT19bY4JvCzz39WjBau0YsJ6GXX4rSUNJZxHSkQ\r
+       cRJ6scIKG3n3he9ZWAxwxZyEraEqRyjsKEoZM=\r
+Received: by 10.114.3.29 with SMTP id 29mr3064921wac.208.1259385792295;\r
+       Fri, 27 Nov 2009 21:23:12 -0800 (PST)\r
+Received: from fortitudo (70-36-144-85.dsl.dynamic.sonic.net [70.36.144.85])\r
+       by mx.google.com with ESMTPS id 21sm1683436pxi.12.2009.11.27.21.23.11\r
+       (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+       Fri, 27 Nov 2009 21:23:11 -0800 (PST)\r
+Received: from alexbl (uid 1001) (envelope-from\r
+       alexbl@fortitudo.i-did-not-set--mail-host-address--so-tickle-me)\r
+       id 7378 by fortitudo (DragonFly Mail Agent)\r
+       Fri, 27 Nov 2009 21:23:19 -0800\r
+From: Alexander Botero-Lowry <alex.boterolowry@gmail.com>\r
+To: Carl Worth <cworth@cworth.org>, camalot@picnicpark.org,\r
+       notmuch@notmuchmail.org\r
+In-Reply-To: <87iqcvtest.fsf@yoom.home.cworth.org>\r
+References: <1259328615-1445-1-git-send-email-camalot@picnicpark.org>\r
+       <1259328615-1445-2-git-send-email-camalot@picnicpark.org>\r
+       <1259328615-1445-3-git-send-email-camalot@picnicpark.org>\r
+       <1259328615-1445-4-git-send-email-camalot@picnicpark.org>\r
+       <1259328615-1445-5-git-send-email-camalot@picnicpark.org>\r
+       <87iqcvtest.fsf@yoom.home.cworth.org>\r
+Date: Fri, 27 Nov 2009 21:23:19 -0800\r
+Message-ID:\r
+ <86bpinql2w.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: Keith Amidon <keith@nicira.com>\r
+Subject: Re: [notmuch] [PATCH 4/9] Factor out message buffer mgmt from\r
+ notmuch-show-view-all-mime-parts\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 28 Nov 2009 05:23:13 -0000\r
+\r
+On Fri, 27 Nov 2009 21:10:42 -0800, Carl Worth <cworth@cworth.org> wrote:\r
+> On Fri, 27 Nov 2009 05:30:10 -0800, camalot@picnicpark.org wrote:\r
+> > From: Keith Amidon <keith@nicira.com>\r
+> > \r
+> > The ability to temporarily create a buffer containing only the\r
+> > contents of the currently selected message in notmuch show mode is\r
+> > generally useful.  This commit factors the majority of the code\r
+> > required to do so out of notmuch-show-view-all-mime-parts into a macro\r
+> > called with-current-notmuch-show-message and rewrites the original\r
+> > function in terms of the macro.\r
+> > \r
+> > A future set of commits will provide additional functionality using\r
+> > the macro as well.\r
+> \r
+> Hurrah! I'm glad to see that you are wholly more capable with emacs lisp\r
+> than I am. I knew of lisp macros of course, but didn't know the actual\r
+> syntax for writing one.\r
+> \r
+I actually did something similar for my html support. except I used\r
+`with-temp-buffer' macro instead. I'm hoping that the need to ever\r
+actually use the raw message buffer directly goes away, so I think it\r
+would be better to use with-temp-buffer in your macro instead of the\r
+named buffer.\r
+\r
+Alex\r