summaryrefslogtreecommitdiff
path: root/dh-elpa.el
diff options
context:
space:
mode:
Diffstat (limited to 'dh-elpa.el')
-rw-r--r--dh-elpa.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/dh-elpa.el b/dh-elpa.el
index ece3a9e..2f84520 100644
--- a/dh-elpa.el
+++ b/dh-elpa.el
@@ -49,8 +49,7 @@
(defun dhelpa-install-from-buffer (destdir)
"Install a package from the current buffer.
The current buffer is assumed to be a single .el or .tar file that follows the
-packaging guidelines; see info node `(elisp)Packaging'.
-Downloads and installs required packages as needed."
+packaging guidelines; see info node `(elisp)Packaging'."
(interactive "D")
(let ((pkg-desc (if (derived-mode-p 'tar-mode)
(package-tar-file-info)
@@ -60,14 +59,16 @@ Downloads and installs required packages as needed."
;;;###autoload
(defun dhelpa-batch-install-file ()
- "install first command line argument (an emacs lisp file)
-into second command line argument"
+ "Install second command line argument (an emacs lisp file or
+tar file) into second command line argument (a directory)"
(let ((dest (car command-line-args-left))
(el-file (cadr command-line-args-left)))
(dhelpa-install-file dest el-file)))
;;;###autoload
(defun dhelpa-install-file (dest el-file)
+ "Install second argument (an emacs lisp file or tar file) into
+first command line argument (a directory)"
(with-temp-buffer
(insert-file-contents-literally el-file)
(when (string-match "\\.tar\\'" el-file) (tar-mode))