GNU bug report logs - #31151
27.0.50; error "Recursive ‘require’ for feature ‘mm-decode’"

Previous Next

Package: emacs;

Reported by: Stefan Husmann <stefan-husmann <at> t-online.de>

Date: Sat, 14 Apr 2018 06:56:02 UTC

Severity: normal

Found in version 27.0.50

Done: Tino Calancha <tino.calancha <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 31151 <at> debbugs.gnu.org (full text, mbox):

From: Tino Calancha <tino.calancha <at> gmail.com>
To: Stefan Husmann <stefan-husmann <at> t-online.de>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 31151 <at> debbugs.gnu.org
Subject: Re: bug#31151: 27.0.50; error "Recursive ‘require’ for feature ‘mm-decode’"
Date: Sat, 14 Apr 2018 19:26:06 +0900
Stefan Husmann <stefan-husmann <at> t-online.de> writes:

> Hello,
>
> I think the latest change on master on the file broke the build process
> for emacs.
Thank you very much.
It happens after commit 'Don't bind image commands on non-image links in
Gnus' (4575ae5a9c5589ac903362486951f0d36c8ff8ee)

I think it's OK if we drop the
(require 'shr)
at the top of the file.

--8<-----------------------------cut here---------------start------------->8---
commit ca280c00237653a0898d81387d4d069996b99901
Author: Tino Calancha <tino.calancha <at> gmail.com>
Date:   Sat Apr 14 19:01:03 2018 +0900

    Fix circular dependency for mm-decode
    
    * lisp/gnus/mm-decode.el: Do not require shr.el at the top
    of the file; `mm-shr' already requires shr.el in its body, and
    this function is the only `mm-convert-shr-links' caller (Bug#31151).
    
    Declare used variables defined in shr.el, `shr-image-map' and `shr-map'.

diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index 69fc770ec7..18c5837dd5 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -25,7 +25,6 @@
 
 (require 'mail-parse)
 (require 'mm-bodies)
-(require 'shr)
 (eval-when-compile (require 'cl-lib))
 
 (autoload 'gnus-map-function "gnus-util")
@@ -1842,6 +1841,8 @@ mm-shr
 	   (let ((inhibit-read-only t))
 	     (delete-region min max))))))))
 
+(defvar shr-image-map)
+(defvar shr-map)
 (autoload 'widget-convert-button "wid-edit")
 (defvar widget-keymap)
 
--8<-----------------------------cut here---------------end--------------->8---




This bug report was last modified 7 years and 36 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.