From: yamaoka Date: Wed, 16 Mar 2005 23:50:19 +0000 (+0000) Subject: Use configure-package-path instead of system-configuration-options to add X-Git-Tag: t-gnus-6_17_4-quimby-~526 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=ee0c339aa4409de10992ffd854bdb88fdb0f4cbc;p=elisp%2Fgnus.git- Use configure-package-path instead of system-configuration-options to add early-package-load-path to load-path for XEmacs 21.5. --- diff --git a/ChangeLog b/ChangeLog index bade9fb..908e922 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-03-16 Katsumi Yamaoka + + * lisp/dgnushack.el: Use configure-package-path instead of + system-configuration-options to add early-package-load-path to + load-path for XEmacs 21.5. + 2005-02-24 Katsumi Yamaoka * texi/ptexinfmt.el (texinfo-multitable-widths): Reverse the logic diff --git a/lisp/dgnushack.el b/lisp/dgnushack.el index fe135ea..e26349f 100644 --- a/lisp/dgnushack.el +++ b/lisp/dgnushack.el @@ -158,21 +158,22 @@ fixed in Emacs after 21.3." (setq ad-return-value (cons fn (nreverse backwards)))) ad-do-it))) -;; Add `early-package-load-path' to `load-path' for XEmacs. Those paths +;; Add `configure-package-path' to `load-path' for XEmacs. Those paths ;; won't appear in `load-path' when XEmacs starts with the `-no-autoloads' -;; option because of a bug. :< +;; option or the `-vanilla' option because of a bug. :< (when (and (featurep 'xemacs) - (string-match "--package-path=\\([^ ]+\\)" - system-configuration-options)) + (boundp 'configure-package-path) + (listp configure-package-path)) (let ((paths (apply 'nconc (mapcar (lambda (path) - (when (file-directory-p - (setq path (expand-file-name "lisp" path))) + (when (and (stringp path) + (not (string-equal path "")) + (file-directory-p + (setq path (expand-file-name "lisp" path)))) (directory-files path t))) - (split-string (match-string 1 system-configuration-options) - "::")))) + configure-package-path))) path adds) (while paths (setq path (car paths)