--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\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 5B3D8431FAF\r
+ for <notmuch@notmuchmail.org>; Thu, 12 Sep 2013 04:49:40 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\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 2GXAW6RKsh2c for <notmuch@notmuchmail.org>;\r
+ Thu, 12 Sep 2013 04:49:35 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id 917BF431FAE\r
+ for <notmuch@notmuchmail.org>; Thu, 12 Sep 2013 04:49:35 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id EF927100090;\r
+ Thu, 12 Sep 2013 14:49:23 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Mark Walters <markwalters1009@gmail.com>,\r
+ David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] emacs: show: stop stderr appearing in buffer\r
+In-Reply-To: <87ppsepeo9.fsf@qmul.ac.uk>\r
+References: <1378502198-7980-1-git-send-email-markwalters1009@gmail.com>\r
+ <87r4cwojds.fsf@zancas.localnet> <87ppsepeo9.fsf@qmul.ac.uk>\r
+User-Agent: Notmuch/0.16+76~ga4151ca (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Thu, 12 Sep 2013 14:49:23 +0300\r
+Message-ID: <m2vc26p8e4.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Thu, 12 Sep 2013 11:49:40 -0000\r
+\r
+On Thu, Sep 12 2013, Mark Walters <markwalters1009@gmail.com> wrote:\r
+\r
+> Hi\r
+>\r
+> On Tue, 10 Sep 2013, David Bremner <david@tethera.net> wrote:\r
+>>> Ideally, we would put this output in the notmuch errors buffer but the\r
+>>> handler is called asynchronously so we don't know when the output will\r
+>>> appear. Thus if we put it straight into the errors buffer it could get\r
+>>> interleaved with other errors, otoh we can't easily tell when we\r
+>>> have got all the error output so can't wait until the process is complete.\r
+>>\r
+>> Hi Mark;\r
+>>\r
+>> I think your patch is OK, but would it be much harder to created a named\r
+>> buffer like *notmuch-view-$message-d* ? (using e.g. the code from\r
+>> notmuch-show). I might make debugging easier.\r
+>\r
+> Yes this is easy. There are several possibilities and I am not sure\r
+> which is best (some are clearly bad but are worth mentioning anyway).\r
+>\r
+> 1) have a single buffer for part errors; this would accumulate stuff and\r
+> output seems to get interleaved so this is probably useless.\r
+>\r
+> 2) have a buffer for each part viewer as you describe.\r
+>\r
+> 3) have a buffer for each part viewer but start its name with a space so\r
+> it doesn't show up in buffer lists but is findable (maybe)\r
+>\r
+> 4) stick with just the temp buffer approach\r
+\r
+\r
+Maybe check whether the temp buffer is empty. if not, use\r
+(buffer-string) & (notmuch-logged-error) to append the message\r
+to the *Notmuch errors* buffer... just that notmuch-logged-error\r
+signals an error which we may not want to do...\r
+\r
+We could unify to "*Notmuch Messages*" and have more functions to \r
+append data there... somewhat analogous to current *Messages* buffer\r
+just that that one has so much noise...\r
+\r
+Tomi\r
+\r
+\r
+>\r
+> Also, we could have it togglable with some sort of debug flag. In some\r
+> senses 3 is nice but you would probably end up with 10's or even\r
+> hundreds of hidden buffers which seems bad. In 2 you see them so you\r
+> probably kill them as you go but I think they would be pretty\r
+> annoying. A key difference from the accumulated show/search/pick buffers\r
+> is that, at some point, you did want to see those buffers.\r
+>\r
+> Since all these approaches are easy to implement it is really up to us\r
+> which we want.\r
+>\r
+> Any thoughts?\r
+>\r
+> Mark\r
+>\r
+>\r
+>>\r
+>> Of course those buffers would accumulate, along with show, search and\r
+>> pick buffers...\r
+>>\r
+>> Or we could push this as is, and add some debugging facility later like\r
+>> a variable notmuch-view-errors-buffer.\r
+>>\r
+>> d\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r