X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fdgnushack.el;h=7274cb0bfe082aca8acb7afcc369d8f50f778600;hb=0007de6d40db139c025a8b2cba9ef04ee4837608;hp=48545eb2bb618d9ff20c603210780e9d7fe6e396;hpb=ccdc046714e053c86b5a3afea3f2ab0fc9eaa549;p=gnus diff --git a/lisp/dgnushack.el b/lisp/dgnushack.el index 48545eb2b..7274cb0bf 100644 --- a/lisp/dgnushack.el +++ b/lisp/dgnushack.el @@ -33,6 +33,11 @@ (defalias 'facep 'ignore) (require 'cl) +(require 'iswitchb) + +(condition-case nil + (require 'org-entities) + (error nil)) (defvar srcdir (or (getenv "srcdir") ".")) (defvar loaddir (and load-file-name (file-name-directory load-file-name))) @@ -131,6 +136,7 @@ (unless (featurep 'xemacs) (defalias 'get-popup-menu-response 'ignore) (defalias 'event-object 'ignore) + (autoload 'iswitchb-read-buffer "iswitchb") (autoload 'netrc-credentials "netrc") (defalias 'x-defined-colors 'ignore) (defalias 'read-color 'ignore))) @@ -234,6 +240,16 @@ in `defcustom' forms." (maybe-fbind '(defined-colors face-attribute)) (maybe-bind '(idna-program installation-directory))) +(when (featurep 'xemacs) + (defadvice byte-optimize-apply (before use-mapcan (form) activate) + "Replace (apply 'nconc (mapcar ...)) with (mapcan ...)." + (let ((last (nth (1- (length form)) form))) + (when (and (eq last (third form)) + (consp last) + (eq 'mapcar (car last)) + (equal (nth 1 form) ''nconc)) + (setq form (cons 'mapcan (cdr last))))))) + (defun dgnushack-compile-verbosely () "Call dgnushack-compile with warnings ENABLED. If you are compiling patches to gnus, you should consider modifying make.bat to call @@ -280,6 +296,11 @@ dgnushack-compile." '("md5.el") '("gnus-xmas.el" "messagexmas.el" "nnheaderxm.el"))) (setq files (delete file files))) + (unless (and (fboundp 'libxml-parse-html-region) + ;; lpath.el binds it. + (not (eq (symbol-function 'libxml-parse-html-region) + 'ignore))) + (setq files (delete "shr-color.el" (delete "shr.el" files)))) (dolist (file files) (setq file (expand-file-name file srcdir))