jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.42k stars 260 forks source link

Load fails on emacs master #844

Closed nordlow closed 2 years ago

nordlow commented 4 years ago

The snippet

(define-derived-mode use-package-statistics-mode tabulated-list-mode
  "use-package statistics"
  "Show current statistics gathered about use-package declarations."
  (setq tabulated-list-format
        ;; The sum of column width is 80 characters:
        #[("Package" 25 t)
          ("Status" 13 t)
          ("Last Event" 23 t)
          ("Time" 10 t)])
  (tabulated-list-init-header))

in use-package-core.el

fails to load as

Invalid read syntax: "Invalid byte-code object"

on Emacs master as of 22:nd of may 2019 (d714aa753b744c903d149a1f6c69262d958c313e).

AFAICT, the syntax

#[("Package" 25 t)
           ("Status" 13 t)
           ("Last Event" 23 t)
           ("Time" 10 t)]

is deprecated and must be changed to

#'[("Package" 25 t)
           ("Status" 13 t)
           ("Last Event" 23 t)
           ("Time" 10 t)]

.

kpbochenek commented 4 years ago

It was a typo, reported earlier and already fixed: https://github.com/jwiegley/use-package/issues/842