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

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

[elpa] externals/javaimp d65f827 09/32: minor fixes


From: Stefan Monnier
Subject: [elpa] externals/javaimp d65f827 09/32: minor fixes
Date: Tue, 1 Dec 2020 10:08:27 -0500 (EST)

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

    minor fixes
---
 javaimp.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/javaimp.el b/javaimp.el
index cd00476..888f5c1 100644
--- a/javaimp.el
+++ b/javaimp.el
@@ -278,7 +278,7 @@ with POM"
        (setq xml-start-pos (match-beginning 0))
        ;; determine the start tag
        (goto-char (point-min))
-       (re-search-forward "<\\(projects?\\)>")
+       (re-search-forward "<\\(projects?\\)")
        ;; find closing tag which is also the end of the region to parse
        (search-forward (concat "</" (match-string 1) ">"))
        (setq xml-end-pos (match-end 0))
@@ -448,8 +448,9 @@ MODULE."
     ;; update timestamps
     (javaimp-set-mod-pom-mod-ts
      module (javaimp-get-file-ts (javaimp-get-mod-pom-file module)))
-    (javaimp-set-mod-parent-ts
-     module (javaimp-get-file-ts (javaimp-get-mod-pom-file parent))))
+    (when parent
+      (javaimp-set-mod-parent-ts
+       module (javaimp-get-file-ts (javaimp-get-mod-pom-file parent)))))
   (javaimp-get-mod-pom-deps module))
 
 (defun javaimp-get-jdk-jars ()
@@ -548,7 +549,7 @@ module."
                      (javaimp-get-jdk-jars)))
             (and javaimp-include-current-project-classes
                  (javaimp-get-module-classes module)))
-           nil t nil nil (word-at-point)))))
+           nil t nil nil (symbol-name (symbol-at-point))))))
   (javaimp-organize-imports classname))
 
 (defun javaimp-get-module-classes (module)



reply via email to

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