mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00
Fix build for emacs-master
This commit is contained in:
parent
f40300b9b5
commit
f487ef185c
1 changed files with 7 additions and 1 deletions
|
@ -43,7 +43,13 @@ then `projectile' (if the latter is installed), before falling
|
|||
back to `default-directory'."
|
||||
(expand-file-name
|
||||
(if-let ((project (project-current)))
|
||||
(car (project-roots project))
|
||||
;; `project-roots' was replaced with `project-root' in Emacs
|
||||
;; 28, and the former function deprecated. Use whichever one is
|
||||
;; available and non-deprecated.
|
||||
(with-no-warnings
|
||||
(if (fboundp 'project-root)
|
||||
(project-root project)
|
||||
(car (project-roots project))))
|
||||
(or (and (require 'projectile nil 'noerror)
|
||||
(projectile-project-root))
|
||||
default-directory))))
|
||||
|
|
Loading…
Add table
Reference in a new issue