File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
; ;; racket-util.el -*- lexical-binding : t -*-
2
2
3
- ; ; Copyright (c) 2013-2022 by Greg Hendershott.
3
+ ; ; Copyright (c) 2013-2022, 2025 by Greg Hendershott.
4
4
; ; Portions Copyright (C) 1985-1986, 1999-2013 Free Software Foundation, Inc.
5
5
6
6
; ; Author: Greg Hendershott
@@ -117,8 +117,11 @@ The \"project\" is determined by trying, in order:
117
117
(projectile-project-root dir))
118
118
(and (fboundp 'vc-root-dir )
119
119
(vc-root-dir ))
120
- (and (fboundp 'project-current )
121
- (cdr (project-current nil dir)))
120
+ (and (require 'project nil 'noerror )
121
+ (fboundp 'project-current )
122
+ (fboundp 'project-root )
123
+ (when-let (pr (project-current nil dir))
124
+ (project-root pr)))
122
125
dir)))
123
126
124
127
(defun racket--edit-mode-p ()
You can’t perform that action at this time.
0 commit comments