dgnushack.el (dgnushack-compile): Exclude shr.el from being compiled for Emacsen...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 5 Oct 2010 22:22:35 +0000 (22:22 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 5 Oct 2010 22:22:35 +0000 (22:22 +0000)
lisp/ChangeLog
lisp/dgnushack.el

index 7d119ef..17e04ab 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-05  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * dgnushack.el (dgnushack-compile): Exclude shr.el from being compiled
+       for Emacsen having no `libxml-parse-html-region' support.
+
 2010-10-05  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-html.el (gnus-html-schedule-image-fetching): Protect against
index f5bf872..beb889e 100644 (file)
@@ -283,6 +283,8 @@ dgnushack-compile."
                 '("md5.el")
               '("gnus-xmas.el" "messagexmas.el" "nnheaderxm.el")))
       (setq files (delete file files)))
+    (unless (fboundp 'libxml-parse-html-region)
+      (setq files (delete "shr.el" files)))
 
     (dolist (file files)
       (setq file (expand-file-name file srcdir))