emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/javaimp 07e5c0f 04/32: javaimp: fix for cases when mave


From: Stefan Monnier
Subject: [elpa] externals/javaimp 07e5c0f 04/32: javaimp: fix for cases when maven doesn't add xml declaration
Date: Tue, 1 Dec 2020 10:08:26 -0500 (EST)

branch: externals/javaimp
commit 07e5c0f74149ba6059d3ccb7ad7b6d8281898f92
Author: Filipp Gunbin <fgunbin@fastmail.fm>
Commit: Filipp Gunbin <fgunbin@fastmail.fm>

    javaimp: fix for cases when maven doesn't add xml declaration
---
 javaimp.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/javaimp.el b/javaimp.el
index 1010d5e..6ddf66c 100644
--- a/javaimp.el
+++ b/javaimp.el
@@ -221,7 +221,7 @@ with POM"
    (lambda ()
      (let (xml-start-pos xml-end-pos project-extractor)
        (goto-char (point-min))
-       (search-forward "<?xml")
+       (re-search-forward "<\\?xml\\|<project")
        (setq xml-start-pos (match-beginning 0))
        ;; build module tree
        (setq project-extractor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]