• Chong Yidong's avatar
    Make Package Menu a child of Tabulated List mode. · e91a96fe
    Chong Yidong authored
    * emacs-lisp/package.el: Use Tabulated List mode.
    (package-menu-mode-map): Inherit from tabulated-list-mode-map.
    (package-menu-mode): Derive from tabulated-list-mode.  Set up the
    table format using Tabulated List mode variables.
    (package--push): New macro, replacing package-list-maybe-add.
    (package-menu--generate): Use package--push.  Renamed from
    package--generate-package-list.
    (package-menu-refresh, list-packages): Use it.
    (package-menu--print-info): Renamed from package-print-package.
    Return insertion data instead of inserting it directly.
    (package-menu-describe-package, package-menu-execute): Use
    tabulated-list-get-id.
    (package-menu-mark-delete, package-menu-mark-install)
    (package-menu-mark-unmark, package-menu-backup-unmark)
    (package-menu-mark-obsolete-for-deletion): Use
    tabulated-list-put-tag.
    (package--list-packages, package-menu-revert)
    (package-menu-get-package, package-menu-get-version)
    (package-menu-sort-by-column): Functions deleted.
    (package-menu-package-list, package-menu-sort-key): Vars deleted.
    (package-menu--status-predicate, package-menu--version-predicate)
    (package-menu--name-predicate)
    (package-menu--description-predicate): Handle arguments in the
    Tabulated List format.
    (package-list-packages-no-fetch): Call list-packages.
    e91a96fe
ChangeLog 34.6 KB