mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-06 15:13:33 -05:00
Improve error when featurep! can't see current module
This commit is contained in:
@@ -532,8 +532,8 @@ CATEGORY and MODULE can be omitted When this macro is used from inside a module
|
|||||||
(doom--current-flags (memq category doom--current-flags))
|
(doom--current-flags (memq category doom--current-flags))
|
||||||
((let ((module (doom-module-from-path)))
|
((let ((module (doom-module-from-path)))
|
||||||
(unless module
|
(unless module
|
||||||
(error "featurep! couldn't figure out what module it was called from (in %s)"
|
(error "(featurep! %s %s %s) couldn't figure out what module it was called from (in %s)"
|
||||||
(file!)))
|
category module flag (file!)))
|
||||||
(memq category (doom-module-get (car module) (cdr module) :flags)))))
|
(memq category (doom-module-get (car module) (cdr module) :flags)))))
|
||||||
t))
|
t))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user