Fix #4925: defining lexical variables error in 28+
This commit is contained in:
parent
82eebdca16
commit
c9b41205b2
2 changed files with 10 additions and 6 deletions
|
@ -1,10 +1,13 @@
|
||||||
;;; core/autoload/projects.el -*- lexical-binding: t; -*-
|
;;; core/autoload/projects.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(defvar projectile-project-root)
|
;; HACK We forward declare these variables because they are let-bound in a
|
||||||
(defvar projectile-enable-caching)
|
;; number of places with no guarantee that they've been defined yet (i.e.
|
||||||
(defvar projectile-require-project-root)
|
;; that `projectile' is loaded). If a variable is defined with `defvar'
|
||||||
|
;; while it is lexically bound, you get "Defining as dynamic an already
|
||||||
;;;###autoload (autoload 'projectile-relevant-known-projects "projectile")
|
;; lexical var" errors in Emacs 28+).
|
||||||
|
;;;###autoload (defvar projectile-project-root nil)
|
||||||
|
;;;###autoload (defvar projectile-enable-caching doom-interactive-p)
|
||||||
|
;;;###autoload (defvar projectile-require-project-root 'prompt)
|
||||||
|
|
||||||
;;;###autodef
|
;;;###autodef
|
||||||
(cl-defun set-project-type! (name &key predicate compile run test configure dir)
|
(cl-defun set-project-type! (name &key predicate compile run test configure dir)
|
||||||
|
|
|
@ -23,7 +23,8 @@ debian, and derivatives). On most it's 'fd'.")
|
||||||
:commands (projectile-project-root
|
:commands (projectile-project-root
|
||||||
projectile-project-name
|
projectile-project-name
|
||||||
projectile-project-p
|
projectile-project-p
|
||||||
projectile-locate-dominating-file)
|
projectile-locate-dominating-file
|
||||||
|
projectile-relevant-known-projects)
|
||||||
:init
|
:init
|
||||||
(setq projectile-cache-file (concat doom-cache-dir "projectile.cache")
|
(setq projectile-cache-file (concat doom-cache-dir "projectile.cache")
|
||||||
;; Auto-discovery is slow to do by default. Better to update the list
|
;; Auto-discovery is slow to do by default. Better to update the list
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue