Function: package-upload-buffer

package-upload-buffer is an interactive and byte-compiled function defined in package-x.el.gz.

Signature

(package-upload-buffer)

Documentation

Upload the current buffer as a single-file Emacs Lisp package.

If package-archive-upload-base does not specify a valid upload destination, prompt for one. Signal an error if the current buffer is not visiting a simple package (a ".el" file).

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package-x.el.gz
(defun package-upload-buffer ()
  "Upload the current buffer as a single-file Emacs Lisp package.
If `package-archive-upload-base' does not specify a valid upload
destination, prompt for one.
Signal an error if the current buffer is not visiting a simple
package (a \".el\" file)."
  (interactive)
  (save-excursion
    (save-restriction
      ;; Find the package in this buffer.
      (let ((pkg-desc (package-buffer-info)))
	(package-upload-buffer-internal pkg-desc "el")))))