We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3f0ce commit 56ce6ccCopy full SHA for 56ce6cc
lisp/doom-lib.el
@@ -1453,11 +1453,13 @@ To interpolate dynamic values, use comma:
1453
1454
For more about modules and flags, see `doom!'."
1455
(if (keywordp group)
1456
- (if flags
1457
- `(doom-module--has-flag-p
1458
- (doom-module (backquote ,group) (backquote ,module) :flags)
1459
- (backquote ,flags))
1460
- `(and (get (backquote ,group) (backquote ,module)) t))
+ (let ((ctxtform `(get (backquote ,group) (backquote ,module))))
+ (if flags
+ `(when-let* ((ctxt ,ctxtform))
+ (doom-module--has-flag-p
+ (doom-module-context-flags ctxt)
1461
+ (backquote ,flags)))
1462
+ `(and ,ctxtform t)))
1463
(let ((flags (delq nil (cons group (cons module flags)))))
1464
(if (doom-module-context-index doom-module-context)
1465
`(doom-module--has-flag-p
0 commit comments