X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fdgnushack.el;h=264ac6bb35a9b7543f6db410fdde66c945f0923b;hb=a629ef97108075cbae0b8b69b2dd1a4723a520c8;hp=be05cb1f170ded1016bae513d23ff17cea39d05d;hpb=80663da61b528c036d01967e9b3f916df05be0a8;p=gnus diff --git a/lisp/dgnushack.el b/lisp/dgnushack.el index be05cb1f1..264ac6bb3 100644 --- a/lisp/dgnushack.el +++ b/lisp/dgnushack.el @@ -1,5 +1,5 @@ ;;; dgnushack.el --- a hack to set the load path for byte-compiling -;; Copyright (C) 1994,95,96,97 Free Software Foundation, Inc. +;; Copyright (C) 1994,95,96,97,98 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; Version: 4.19 @@ -30,8 +30,9 @@ (require 'cl) (require 'bytecomp) +(push "~/lisp/custom" load-path) (push "." load-path) -(require 'lpath) +(load "./lpath.el") (defalias 'device-sound-enabled-p 'ignore) (defalias 'play-sound-file 'ignore) @@ -48,22 +49,32 @@ (fset 'read-color 'ignore))) (setq byte-compile-warnings - '(free-vars unresolved callargs redefine obsolete)) + '(free-vars unresolved callargs redefine)) (defun dgnushack-compile () ;;(setq byte-compile-dynamic t) - (let ((files (directory-files "." nil ".el$")) + (unless (locate-library "cus-edit") + (error "You do not seem to have Custom installed. +Fetch it from . +You also then need to add the following to the lisp/dgnushack.el file: + + (push \"~/lisp/custom\" load-path) + +Modify to suit your needs.")) + (let ((files (directory-files "." nil "^[^=].*\\.el$")) (xemacs (string-match "XEmacs" emacs-version)) ;;(byte-compile-generate-call-tree t) - byte-compile-warnings file elc) + file elc) (condition-case () (require 'w3-forms) - (error (setq files (delete "nnweb.el" files)))) + (error (setq files (delete "nnweb.el" (delete "nnlistserv.el" files))))) (while (setq file (pop files)) - (when (or (not (member file '("gnus-xmas.el" "gnus-picon.el" - "messagexmas.el" "nnheaderxm.el" - "smiley.el"))) - xemacs) + (when (or (and (not xemacs) + (not (member file '("gnus-xmas.el" "gnus-picon.el" + "messagexmas.el" "nnheaderxm.el" + "smiley.el" "x-overlay.el")))) + (and xemacs + (not (member file '("md5.el"))))) (when (or (not (file-exists-p (setq elc (concat file "c")))) (file-newer-than-file-p file elc)) (ignore-errors