Function: package--push

package--push is a macro defined in package.el.gz.

This macro is obsolete since 27.1.

Signature

(package--push PKG-DESC STATUS LISTNAME)

Documentation

Convenience macro for package-menu--generate.

If the alist stored in the symbol LISTNAME lacks an entry for a package PKG-DESC, add one. The alist is keyed with PKG-DESC.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defmacro package--push (pkg-desc status listname)
  "Convenience macro for `package-menu--generate'.
If the alist stored in the symbol LISTNAME lacks an entry for a
package PKG-DESC, add one.  The alist is keyed with PKG-DESC."
  (declare (obsolete nil "27.1"))
  `(unless (assoc ,pkg-desc ,listname)
     ;; FIXME: Should we move status into pkg-desc?
     (push (cons ,pkg-desc ,status) ,listname)))