X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=EMH-CFG;h=461b70484ef41830da3f4e9a1d3939a1a0db4786;hb=c401651bccca63830fc6dce91aad766fda6f99d9;hp=715ea1c5acfc011d05bef3a8e93781b184a27a94;hpb=8267211abfd237ce97a1c58dc96c64bca30e02a0;p=elisp%2Femh.git diff --git a/EMH-CFG b/EMH-CFG index 715ea1c..461b704 100644 --- a/EMH-CFG +++ b/EMH-CFG @@ -1,7 +1,8 @@ ;;; -*-Emacs-Lisp-*- -;;; -;;; $Id: EMH-CFG,v 0.4 1998-04-13 14:54:21 morioka Exp $ -;;; + +;; EMH-CFG: installation setting about EMH. + +;;; Code: (defvar default-load-path load-path) @@ -10,16 +11,23 @@ (add-to-list 'load-path (expand-file-name "." data-directory)) -(when (boundp 'LISPDIR) - (add-to-list 'default-load-path LISPDIR) - (add-to-list 'load-path LISPDIR) - (add-to-list 'load-path (expand-file-name "apel" LISPDIR)) - ) +(if (boundp 'LISPDIR) + (progn + (add-to-list 'default-load-path LISPDIR) + (add-to-list 'load-path LISPDIR) + (add-to-list 'load-path (expand-file-name "apel" LISPDIR)) + )) + +(defvar VERSION_SPECIFIC_LISPDIR nil) + +(if VERSION_SPECIFIC_LISPDIR + (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR)) (condition-case nil (require 'install) (error (error "Please install APEL 8.2 or later."))) +(add-latest-path "custom") (add-path "flim") (add-path "semi") @@ -34,8 +42,25 @@ (defvar PREFIX install-prefix) ;;(setq PREFIX "~/") +(defvar PACKAGEDIR + (if (boundp 'early-packages) + (let ((dirs (append (if early-package-load-path + early-packages) + (if late-package-load-path + late-packages) + (if last-package-load-path + last-packages))) + dir) + (while (not (file-exists-p + (setq dir (car dirs)))) + (setq dirs (cdr dirs))) + dir))) + ;; Please specify prefix for ``emh'' [optional] -(setq EMH_PREFIX "semi") +(setq EMH_PREFIX + (if PACKAGEDIR + "emh" + "semi"))