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 754B9429E5B for ; Mon, 23 Jan 2012 06:43:10 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 QJLRKCTkba8g for ; Mon, 23 Jan 2012 06:43:10 -0800 (PST) Received: from tesla.chaoflow.net (tesla.chaoflow.net [188.40.54.22]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D6AF8429E21 for ; Mon, 23 Jan 2012 06:43:09 -0800 (PST) Received: from eve.chaoflow.net (host-188-174-211-69.customer.m-online.net [188.174.211.69]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: flo@chaoflow.net) by tesla.chaoflow.net (Postfix) with ESMTPSA id 7EC5912363; Mon, 23 Jan 2012 15:43:08 +0100 (CET) Received: by eve.chaoflow.net (Postfix, from userid 1000) id 2098E44937; Mon, 23 Jan 2012 15:43:08 +0100 (CET) From: Florian Friesdorf To: Chris Gray , David Edmondson , notmuch@notmuchmail.org Subject: Re: [RFC][PATCH] emacs: Provide scaffolding so that the new `shr' HTML renderer can run. In-Reply-To: <8762hbkas3.fsf@gmail.com> References: <1324309559-7993-1-git-send-email-dme@dme.org> <8762hbkas3.fsf@gmail.com> User-Agent: Notmuch/0.11 (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-unknown-linux-gnu) Date: Mon, 23 Jan 2012 15:43:08 +0100 Message-ID: <8762g2qy2r.fsf@eve.chaoflow.net> MIME-Version: 1.0 Content-Type: text/plain X-Virus-Scanned: clamav-milter 0.97.3 at tesla X-Virus-Status: Clean 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: Mon, 23 Jan 2012 14:43:10 -0000 On Mon, 19 Dec 2011 23:38:36 -0700, Chris Gray wrote: > > +;; Nonsense required to have the new gnus `shr' HTML display code > > +;; work. > > +(defvar gnus-summary-buffer) > > +(defvar gnus-inhibit-images) > > I believe that gnus-inhibit-images is defined in gnus-art.el. Perhaps > that file should just be require'd rather than having this workaround. With notmuch-0.11 (require 'gnus-art') "fixes" the void gnus-inhibit-images error. > > +(if (not (fboundp 'gnus-blocked-images)) > > + (defun gnus-blocked-images () nil)) > > + > > (defun notmuch-show-mm-display-part-inline (msg part nth content-type) > > "Use the mm-decode/mm-view functions to display a part in the > > current buffer, if possible." > > @@ -331,7 +338,12 @@ current buffer, if possible." > > (let ((content (notmuch-show-get-bodypart-content msg part nth))) > > (insert content) > > (set-buffer display-buffer) > > - (mm-display-part handle) > > + > > + ;; Nonsense required to have the new gnus `shr' HTML > > + ;; display code work. > > + (let ((gnus-inhibit-images nil)) > > + (makunbound 'gnus-summary-buffer) ; Blech. > > This is working around a bug in gnus. I think the better solution would > be for gnus to fix the bug. The following patch against gnus works for > me. (I have tried submitting it to the gnus bug list, but have not been > able to check if it got through.) emacs git master has a fix for that, so you seem to have got through. -- Florian Friesdorf GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 Jabber/XMPP: flo@chaoflow.net IRC: chaoflow on freenode,ircnet,blafasel,OFTC