girzel / ebdb

An EIEIO port of BBDB, Emacs' contact-management package
67 stars 12 forks source link

"error: Unknown map pattern: (map header-fields body-fields)" #73

Closed swflint closed 5 years ago

swflint commented 5 years ago

Line 673 of ebdb-com.el as of 4cb0dd234e11955a186f9045c46d49332e9d0a2a appears to cause it.

Emacs 26.1, associated cl-lib and seq.

girzel commented 5 years ago

Oh damn, I keep forgetting to check backwards compatibility for these shiny new toys. The map pattern is defined in map.el, which looks like it's been present for several versions, but perhaps I was assuming that it's autoloaded when it isn't. Would you mind doing (require 'map) and seeing if that fixes the error?

swflint commented 5 years ago

map is required in ebdb-com.el as of that commit. And 26.1 is the latest non-development version.

girzel commented 5 years ago

Oh, it looks like your error is coming from ebdb-format.el, which doesn't require map. I'll move the require into ebdb.el. It's still a bit weird though, I guess ebdb-format.el is somehow getting loaded before ebdb-com.el. The map pattern has been defined in map.el since at least Emacs 25.