I have now applied this patch to both 21.1 and 21.2.
-vin
Vin Shelton <acs(a)xemacs.org> writes:
This looks like OK to me, but I don't put packages under
.xemacs.
Comments?
- vin
From: Jorma Laaksonen <jorma.laaksonen(a)hut.fi>
Subject: Why packages cannot be deleted from user's own subdirectory?
Newsgroups: comp.emacs.xemacs
Cc: steve(a)altair.xemacs.org
Date: 25 Sep 2000 14:04:15 +0300
Organization: Helsinki University of Technology
Hi!
I noticed that removing packages installed under my ~/.xemacs/packages
is not possible from *Packages* buffer in xemacs 21.1. This seems
to be related to function package-admin-get-install-dir of
package-admin.el. This small patch
--- /usr/lib/xemacs-21.1.4/lisp/package-admin.el Mon Feb 15 18:41:29 1999
+++ /my/homedir/tmp/package-admin.el Mon Sep 25 13:57:29 2000
@@ -165,13 +165,13 @@
(featurep package-feature)
(setq autoload-dir (feature-file package-feature))
(setq autoload-dir (file-name-directory autoload-dir))
- (member autoload-dir late-package-load-path))
+ (member autoload-dir (append early-package-load-path
late-package-load-path)))
;; Find the corresonding entry in late-package
(setq pkg-dir
(car-safe (member-if (lambda (h)
(string-match (concat "^" (regexp-quote h))
autoload-dir))
- late-packages))))
+ (append (cdr early-packages) late-packages)))))
(if pkg-dir
pkg-dir
;; Ok we need to guess
seems to solve the problem, but is perhaps not portable. I have
(custom-set-variables '(pui-package-install-dest-dir
"~/.xemacs/packages")), early-packages has value
("/my/homedir/.xemacs/" "/my/homedir/.xemacs/packages/").
Is there a real reason why removing packages from user home
directories would not be allowed?
Yours,
Jorma Laaksonen
--
Jorma Laaksonen email: jorma.laaksonen(a)hut.fi
Dr. of Science in Technology, Docent
http://www.cis.hut.fi/jorma/
Laboratory of Computer and Information Science tel. +358-9-4513269
Helsinki University of Technology fax. +358-9-4513277
P.O.Box 5400, Fin-02015 HUT, Finland mob. +358-50-3058719
----------