Function: package-builtin-package-version

package-builtin-package-version is a byte-compiled function defined in package.el.gz.

Signature

(package-builtin-package-version PACKAGE)

Documentation

Return the version of a built-in PACKAGE given by its symbol.

The return value is a list of integers representing the version of PACKAGE, in the format returned by version-to-list, or nil if the package is built-in but has no version or is not a built-in package.

View in manual

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defun package-builtin-package-version (package)
  "Return the version of a built-in PACKAGE given by its symbol.
The return value is a list of integers representing the version of
PACKAGE, in the format returned by `version-to-list', or nil if the
package is built-in but has no version or is not a built-in package."
  (alist-get package package--builtin-versions))