Skip to content

Commit d4c78f9

Browse files
committed
sources/emacs/site/misc/dumb-jump.el: Use ni-find-search-directory to find the project root ;
1 parent 3b3ecef commit d4c78f9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

sources/emacs/site/misc/dumb-jump.el

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ a symbol then it's probably a function call"
17701770
(string :tag "Regular expression")))))))
17711771

17721772
(defcustom dumb-jump-project-denoters
1773-
'(".dumbjump" ".projectile" ".git" ".hg" ".fslckout" ".bzr" "_darcs" ".svn" "Makefile" "PkgInfo" "-pkg.el")
1773+
'(".dumbjump" ".projectile" ".git" ".hg" ".fslckout" ".bzr" "_darcs" ".svn" "Makefile" "PkgInfo" "-pkg.el" "_ham_project" "TARGETS")
17741774
"Files and directories that signify a directory is a project root."
17751775
:group 'dumb-jump
17761776
:type '(repeat (string :tag "Name")))
@@ -2088,13 +2088,7 @@ for user to select. Filters PROJ path from files for display."
20882088

20892089
(defun dumb-jump-get-project-root (filepath)
20902090
"Keep looking at the parent dir of FILEPATH until a denoter file/dir is found."
2091-
(s-chop-suffix
2092-
"/"
2093-
(expand-file-name
2094-
(or
2095-
dumb-jump-project
2096-
(locate-dominating-file filepath #'dumb-jump-get-config)
2097-
dumb-jump-default-project))))
2091+
(ni-find-search-directory filepath))
20982092

20992093
(defun dumb-jump-get-config (dir)
21002094
"If a project denoter is in DIR then return it, otherwise

0 commit comments

Comments
 (0)