From unknown Sat Jun 14 00:06:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30870 <30870@debbugs.gnu.org> To: bug#30870 <30870@debbugs.gnu.org> Subject: Status: Error opening HTML mail when mm-text-html-renderer is nil Reply-To: bug#30870 <30870@debbugs.gnu.org> Date: Sat, 14 Jun 2025 07:06:03 +0000 retitle 30870 Error opening HTML mail when mm-text-html-renderer is nil reassign 30870 emacs,gnus submitter 30870 "Basil L. Contovounesios" severity 30870 normal tag 30870 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 19 21:46:37 2018 Received: (at submit) by debbugs.gnu.org; 20 Mar 2018 01:46:37 +0000 Received: from localhost ([127.0.0.1]:42438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ey6MH-0005uX-82 for submit@debbugs.gnu.org; Mon, 19 Mar 2018 21:46:37 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:52698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ey6MA-0005uC-Ll for submit@debbugs.gnu.org; Mon, 19 Mar 2018 21:46:36 -0400 Received: by mail-wm0-f49.google.com with SMTP id l9so431455wmh.2 for ; Mon, 19 Mar 2018 18:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:user-agent:mime-version; bh=uJO2vZ7Gmd8oXT7Sr1ZqFQ8SFY2quDiiFSZX7WxL3rg=; b=dIH0qOfZuWruQ8wRrJGG0stT359EtKc5C3XrHb6NDQ8FLgteSptw9QEnGd6k5h0M5l AaSce+fbvbcwlHXCz+huWkMACnoiqTfkzRygv1e1oeIUqJ0Ek6BUWIof7fQg/lJrUvAh RxslxolRiDPTRTM2xFTp4M6Zoxm4D/lsfBLE0AZdmspQMPs7NpIxgd6HQBAtmKFHKra3 nI5uwqbQabr6ANNmEl6OP+Ck27+Nzbq9trhXZScUCl3tLIQfbY05uALoIoCh6MnyaIAM 0snfOiwzKzliohQq2Kn763N+g5ixuD/d1p0SMN2oSxEspegj2r7Eujh0+g/Y7sOshtQY iRwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=uJO2vZ7Gmd8oXT7Sr1ZqFQ8SFY2quDiiFSZX7WxL3rg=; b=RGveImolVEZ15FZC1YAR6IautVzrGYa9asd/9X2yL4riVrZqRKpCbIvgvoEBpa8rxa gQMK1aeCF7c+obt5YKTtfAol8ePEfr9Wit49h3+CnGFE4tnyUZtCZaP561xGBTanobsq 5uOmLU7Re9x447TIDwxgbrn5aOrcxp94Cb24rjKFIBGHlGJxgIfuK8UgZa2SUStbxXAN wS1PW4i5nMASGPmsknVB+Lv2fLUO/CKK81Dzf2LI1XIK41IC3JHsQH4E/FqgRkOoALtu DTvuthH9kzWX74o5tvNjLdzMOh0HEB26vUhgx94phWQrSUGBe0bzwtUZuoOAVMU7Sm0E cUWg== X-Gm-Message-State: AElRT7HtckWLNbyFjKvMUBKYoik+UnL0nNoxigPPHfrcKnyei13qEIal YU8QePdf9snboLechXkYrKRkeN4g X-Google-Smtp-Source: AG47ELvesYHaK3pcTO9S9ARH3F/ho9Glce8/+Ek3eTXepf1Txx+lU4X8wdH+ZMOAN92+zjBfD79LWA== X-Received: by 10.80.177.234 with SMTP id n39mr15102119edd.108.1521510384421; Mon, 19 Mar 2018 18:46:24 -0700 (PDT) Received: from localhost ([2a02:8084:4f41:8c80:9c34:da08:a010:edfc]) by smtp.gmail.com with ESMTPSA id d89sm950651edc.75.2018.03.19.18.46.23 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Mar 2018 18:46:23 -0700 (PDT) From: "Basil L. Contovounesios" To: submit@debbugs.gnu.org (The Gnus Bugfixing Girls + Boys) Subject: Error opening HTML mail when mm-text-html-renderer is nil X-Debbugs-Version: 5.13 X-Debbugs-Package: emacs,gnus Date: Tue, 20 Mar 2018 01:46:22 +0000 Message-ID: <87in9rldsh.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=backtrace.txt Content-Description: Backtrace Debugger entered--Lisp error: (void-function nil) nil((# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil)) apply(nil (# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil) nil) (cond ((functionp func) (funcall func handle)) (t (apply (car func) handle (cdr func)))) (let* ((func mm-text-html-renderer) (entry (assq func mm-text-html-renderer-alist)) (inhibit-read-only t)) (if entry (setq func (cdr entry))) (cond ((functionp func) (funcall func handle)) (t (apply (car func) handle (cdr func))))) (if (stringp (car handle)) (mapcar 'mm-inline-text-html (cdr handle)) (let* ((func mm-text-html-renderer) (entry (assq func mm-text-html-renderer-alist)) (inhibit-read-only t)) (if entry (setq func (cdr entry))) (cond ((functionp func) (funcall func handle)) (t (apply (car func) handle (cdr func)))))) mm-inline-text-html((# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil)) mm-display-inline((# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil)) gnus-mime-display-single((# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil)) gnus-mime-display-part((# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil)) gnus-mime-display-part((#("multipart/related" 0 17 (boundary "----=_Part_3611803_15130720.1521495438553" buffer # from "foo@bar.com" start nil)) (# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil) (# ("image/jpeg" (name . "barcode_2F72GF.jpg")) base64 nil ("attachment" (filename . "barcode_2F72GF.jpg")) nil nil ""))) gnus-display-mime((#("multipart/related" 0 17 (boundary "----=_Part_3611803_15130720.1521495438553" buffer # from "foo@bar.com" start nil)) (# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil) (# ("image/jpeg" (name . "barcode_2F72GF.jpg")) base64 nil ("attachment" (filename . "barcode_2F72GF.jpg")) nil nil ""))) gnus-mime-display-alternative(((# ("text/plain" (charset . "us-ascii")) 7bit nil ("inline") nil nil nil) (#("multipart/related" 0 17 (boundary "----=_Part_3611803_15130720.1521495438553" buffer # from "foo@bar.com" start nil)) (# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil) (# ("image/jpeg" (name . "barcode_2F72GF.jpg")) base64 nil ("attachment" (filename . "barcode_2F72GF.jpg")) nil nil ""))) nil nil 1) gnus-mime-display-part((#("multipart/alternative" 0 21 (boundary "----=_Part_3611802_12201241.1521495438553" buffer # from "foo@bar.com" start nil)) (# ("text/plain" (charset . "us-ascii")) 7bit nil ("inline") nil nil nil) (#("multipart/related" 0 17 (boundary "----=_Part_3611803_15130720.1521495438553" buffer # from "foo@bar.com" start nil)) (# ("text/html" (charset . "us-ascii")) 7bit nil nil nil nil nil) (# ("image/jpeg" (name . "barcode_2F72GF.jpg")) base64 nil ("attachment" (filename . "barcode_2F72GF.jpg")) nil nil "")))) gnus-display-mime() gnus-article-prepare-display() gnus-article-prepare(62 nil) gnus-summary-display-article(62 nil) gnus-summary-select-article(nil nil pseudo) gnus-summary-scroll-up(1) funcall-interactively(gnus-summary-scroll-up 1) call-interactively(gnus-summary-scroll-up nil nil) command-execute(gnus-summary-scroll-up) --=-=-= Content-Type: text/plain (Hopefully someone else can reproduce this issue without my having to start an uncustomised Gnus.) 1. M-x toggle-debug-on-error RET 2. M-x set-variable RET mm-text-html-renderer RET nil RET 3. Open a HTML article in Gnus, e.g. by typing RET in a summary buffer This results in the attached backtrace. I'm quite unfamiliar with the relevant code, but the patch I am currently using as a workaround follows my signature, as do listings of my Gnus and Emacs versions. Thanks, -- Basil Gnus v5.13 GNU Emacs 27.0.50 (build 16, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2018-03-19 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=foo.diff Content-Description: Workaround diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index c11af7060b..6cd93c91a4 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el @@ -311,17 +311,18 @@ mm-inline-render-with-function (defun mm-inline-text-html (handle) (if (stringp (car handle)) - (mapcar 'mm-inline-text-html (cdr handle)) - (let* ((func mm-text-html-renderer) - (entry (assq func mm-text-html-renderer-alist)) - (inhibit-read-only t)) - (if entry - (setq func (cdr entry))) + (mapcar #'mm-inline-text-html (cdr handle)) + (let ((func (alist-get mm-text-html-renderer + mm-text-html-renderer-alist + mm-text-html-renderer)) + (inhibit-read-only t)) (cond ((functionp func) (funcall func handle)) + ((functionp (car func)) + (apply (car func) handle (cdr func))) (t - (apply (car func) handle (cdr func))))))) + (mm-interactively-view-part handle)))))) (defun mm-inline-text-vcard (handle) (let ((inhibit-read-only t)) diff --git a/lisp/mh-e/mh-gnus.el b/lisp/mh-e/mh-gnus.el index 3d202890b6..f1256bdef5 100644 --- a/lisp/mh-e/mh-gnus.el +++ b/lisp/mh-e/mh-gnus.el @@ -165,8 +165,8 @@ mh-mm-save-part (defun mh-mm-text-html-renderer () "Find the renderer Gnus is using to display text/html MIME parts." - (or (and (boundp 'mm-inline-text-html-renderer) mm-inline-text-html-renderer) - (and (boundp 'mm-text-html-renderer) mm-text-html-renderer))) + (or (bound-and-true-p mm-inline-text-html-renderer) + (bound-and-true-p mm-text-html-renderer))) (provide 'mh-gnus) diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index e2c682a399..8ad1877327 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el @@ -140,9 +140,7 @@ mh-mm-inline-media-tests ("text/html" ,(if (fboundp 'mm-inline-text-html) 'mm-inline-text-html 'mm-inline-text) (lambda (handle) - (or (and (boundp 'mm-inline-text-html-renderer) - mm-inline-text-html-renderer) - (and (boundp 'mm-text-html-renderer) mm-text-html-renderer)))) + (mh-mm-text-html-renderer))) ("text/x-vcard" mh-mm-inline-text-vcard (lambda (handle) @@ -781,9 +779,9 @@ mh-small-image-p (mm-inline-large-images t)) (and media-test (equal (mm-handle-media-supertype handle) "image") - (funcall media-test handle) ; Since mm-inline-large-images is T, - ; this only tells us if the image is - ; something that emacs can display + (funcall media-test handle) ; Since `mm-inline-large-images' is t, + ; this only tells us if the image is + ; something that Emacs can display (let* ((image (mm-get-image handle))) (or (mh-do-in-xemacs (and (mh-funcall-if-exists glyphp image) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 13:19:45 2018 Received: (at 30870) by debbugs.gnu.org; 12 Apr 2018 17:19:45 +0000 Received: from localhost ([127.0.0.1]:48294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6fsu-0003cQ-Tf for submit@debbugs.gnu.org; Thu, 12 Apr 2018 13:19:45 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:59793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6fst-0003cD-79 for 30870@debbugs.gnu.org; Thu, 12 Apr 2018 13:19:43 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f6fsq-0007r5-53; Thu, 12 Apr 2018 19:19:42 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f6fsk-0005Ng-5Y; Thu, 12 Apr 2018 19:19:34 +0200 From: Lars Ingebrigtsen To: "Basil L. Contovounesios" Subject: Re: bug#30870: Error opening HTML mail when mm-text-html-renderer is nil References: <87in9rldsh.fsf@tcd.ie> Date: Thu, 12 Apr 2018 19:19:33 +0200 In-Reply-To: <87in9rldsh.fsf@tcd.ie> (Basil L. Contovounesios's message of "Tue, 20 Mar 2018 01:46:22 +0000") Message-ID: <873700qr4q.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30870 Cc: 30870@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Basil L. Contovounesios" writes: > (Hopefully someone else can reproduce this issue without my having to > start an uncustomised Gnus.) > > 1. M-x toggle-debug-on-error RET > 2. M-x set-variable RET mm-text-html-renderer RET nil RET > 3. Open a HTML article in Gnus, e.g. by typing RET in a summary buffer > > This results in the attached backtrace. > > I'm quite unfamiliar with the relevant code, but the patch I am > currently using as a workaround follows my signature, as do listings of > my Gnus and Emacs versions. As this hasn't been working for quite a while, apparently, and nil is a nonsensical value (popping up Firefox every time you happen to click on an email that contains an HTML part sounds unsafe), I've now removed that option instead of fixing it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 13:19:45 2018 Received: (at control) by debbugs.gnu.org; 12 Apr 2018 17:19:45 +0000 Received: from localhost ([127.0.0.1]:48296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6fsv-0003cU-5E for submit@debbugs.gnu.org; Thu, 12 Apr 2018 13:19:45 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:59796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6fsu-0003cK-9P for control@debbugs.gnu.org; Thu, 12 Apr 2018 13:19:44 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f6fss-0007xV-0H for control@debbugs.gnu.org; Thu, 12 Apr 2018 19:19:43 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f6fsl-0005Nj-WD for control@debbugs.gnu.org; Thu, 12 Apr 2018 19:19:35 +0200 To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #30870 Message-Id: Date: Thu, 12 Apr 2018 19:19:35 +0200 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 30870 fixed close 30870 From unknown Sat Jun 14 00:06:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 May 2018 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator