aboutsummaryrefslogtreecommitdiff
path: root/install-package.el
diff options
context:
space:
mode:
authorTorsten Hilbrich <torsten.hilbrich@gmx.net>2000-05-07 11:01:00 +0200
committerTorsten Hilbrich <torsten@hilbrich.net>2011-08-27 20:47:37 +0200
commit48bb4215cbf0984411a39e6b6cb2a087b552e862 (patch)
tree401b23960fb6602f488ee4f3ca510ba847f86c4e /install-package.el
Imported version 1.2.1 from tarball
Implemented an automatic detection for line ends CR/LF and LF. The variable connection-broken-end-of-line is no longer necessary and its value ignored. Added utf-8 support, the native character set of the dictionary protocol. Using ISO-8859-1 (aka latin-1) was just a necessary work-around.
Diffstat (limited to 'install-package.el')
-rwxr-xr-xinstall-package.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/install-package.el b/install-package.el
new file mode 100755
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)))))