package-buffer-info

package-buffer-info is a compiled Lisp function in `package.el'.

(package-buffer-info)

Return a `package-desc' describing the package in the current buffer.

If the buffer does not contain a conforming package, signal an
error. If there is a package, narrow the buffer to the file's
boundaries.