aboutsummaryrefslogtreecommitdiff
path: root/install-package.el
diff options
context:
space:
mode:
authorTorsten Hilbrich <torsten.hilbrich@gmx.net>2001-06-29 08:02:00 +0200
committerTorsten Hilbrich <torsten@hilbrich.net>2011-08-27 20:47:38 +0200
commit7a078122248883ca70b6defcdc7305c92fa4bc2b (patch)
treee08d33c7b10aad804316d5c96864bab0aa986b9f /install-package.el
parentb05614db73ee581dfbb29793a7c2a11b89e1ed8b (diff)
Imported version 1.3.3 from tarball
added support for XEmacs 21 packages to ease installation for those users (suggested and reviewed by Enrico Scholz)
Diffstat (limited to 'install-package.el')
-rw-r--r--install-package.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/install-package.el b/install-package.el
new file mode 100644
index 0000000..5b0474e
--- /dev/null
+++ b/install-package.el
@@ -0,0 +1,7 @@
+(defun install-package ()
+ (interactive)
+ (let ((filename (apply 'concat command-line-args-left)))
+ (message (concat "Installing package " filename))
+ (package-admin-add-binary-package filename)
+ (set-buffer "*Package Output*")
+ (message (buffer-substring (point-min) (point-max)))))