X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fdgnushack.el;h=264ac6bb35a9b7543f6db410fdde66c945f0923b;hb=a629ef97108075cbae0b8b69b2dd1a4723a520c8;hp=762e614598e106d7cf03176596d64eeed6adea5f;hpb=6864d4a16ce668d5673e248da5caf5ff4ba4dc22;p=gnus diff --git a/lisp/dgnushack.el b/lisp/dgnushack.el index 762e61459..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,9 +30,9 @@ (require 'cl) (require 'bytecomp) -(push "." load-path) (push "~/lisp/custom" load-path) -(require 'lpath) +(push "." load-path) +(load "./lpath.el") (defalias 'device-sound-enabled-p 'ignore) (defalias 'play-sound-file 'ignore) @@ -49,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) + (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