refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been deprecated. They have identical interfaces, and can be replaced without issue. featurep! was never quite the right name for this macro. It implied that it had some connection to featurep, which it doesn't (only that it was similar in purpose; still, Doom modules are not features). To undo such implications and be consistent with its namespace (and since we're heading into a storm of breaking changes with the v3 release anyway), now was the best opportunity to begin the transition.
This commit is contained in:
parent
0407621aff
commit
ad6a3d0f33
316 changed files with 1109 additions and 1103 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; tools/lookup/autoload/docsets.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! +docsets)
|
||||
;;;###if (modulep! +docsets)
|
||||
|
||||
(defvar dash-docs-docsets nil)
|
||||
|
||||
|
@ -102,7 +102,7 @@ installed with `dash-docs-install-docset'."
|
|||
(cl-remove-if-not #'dash-docs-docset-path (or docsets dash-docs-docsets))))
|
||||
(query (doom-thing-at-point-or-region query)))
|
||||
(doom-log "Searching docsets %s" dash-docs-docsets)
|
||||
(cond ((featurep! :completion vertico)
|
||||
(cond ((modulep! :completion vertico)
|
||||
(dash-docs-initialize-debugging-buffer)
|
||||
(dash-docs-create-buffer-connections)
|
||||
(dash-docs-create-common-connections)
|
||||
|
@ -118,9 +118,9 @@ installed with `dash-docs-install-docset'."
|
|||
:initial query)
|
||||
(user-error "Aborted"))))
|
||||
(dash-docs-browse-url (cdr (assoc result (funcall sink nil))))))
|
||||
((featurep! :completion ivy)
|
||||
((modulep! :completion ivy)
|
||||
(counsel-dash query))
|
||||
((featurep! :completion helm)
|
||||
((modulep! :completion helm)
|
||||
(helm-dash query))
|
||||
((user-error "No dash backend is installed, enable ivy or helm.")))))
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; tools/lookup/autoload/evil.el -*- lexical-binding: t; -*-
|
||||
;;;###if (featurep! :editor evil)
|
||||
;;;###if (modulep! :editor evil)
|
||||
|
||||
;;;###autoload (autoload '+lookup:online "tools/lookup/autoload/evil" nil t)
|
||||
(evil-define-command +lookup:online (query &optional bang)
|
||||
|
|
|
@ -240,13 +240,13 @@ Will return nil if neither is available. These require ripgrep to be installed."
|
|||
(unless identifier
|
||||
(let ((query (rxt-quote-pcre identifier)))
|
||||
(ignore-errors
|
||||
(cond ((featurep! :completion ivy)
|
||||
(cond ((modulep! :completion ivy)
|
||||
(+ivy-file-search :query query)
|
||||
t)
|
||||
((featurep! :completion helm)
|
||||
((modulep! :completion helm)
|
||||
(+helm-file-search :query query)
|
||||
t)
|
||||
((featurep! :completion vertico)
|
||||
((modulep! :completion vertico)
|
||||
(+vertico-file-search :query query)
|
||||
t))))))
|
||||
|
||||
|
@ -278,10 +278,10 @@ otherwise falling back to ffap.el (find-file-at-point)."
|
|||
(or (file-exists-p guess)
|
||||
(ffap-url-p guess)))
|
||||
(find-file-at-point guess))
|
||||
((and (featurep! :completion ivy)
|
||||
((and (modulep! :completion ivy)
|
||||
(doom-project-p))
|
||||
(counsel-file-jump guess (doom-project-root)))
|
||||
((and (featurep! :completion vertico)
|
||||
((and (modulep! :completion vertico)
|
||||
(doom-project-p))
|
||||
(+vertico/find-file-in (doom-project-root) guess))
|
||||
((find-file-at-point (ffap-prompter guess))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue