From: Dmitry Gutov Date: Tue, 14 Jun 2022 01:00:22 +0000 (+0300) Subject: project--git-submodules: Parse more strictly X-Git-Tag: emacs-29.0.90~1910^2~25 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=915b34d2800fe0014b12eda0bbf5def976c14c32;p=emacs.git project--git-submodules: Parse more strictly * lisp/progmodes/project.el (project--git-submodules): Don't mistake 'load-path' for 'path' (bug#55396). --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 859ad2e047b..f4d6742ed80 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -599,7 +599,7 @@ backend implementation of `project-external-roots'.") (insert-file-contents ".gitmodules") (let (res) (goto-char (point-min)) - (while (re-search-forward "path *= *\\(.+\\)" nil t) + (while (re-search-forward "^[ \t]*path *= *\\(.+\\)" nil t) (push (match-string 1) res)) (nreverse res))) (file-missing nil)))