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

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

[elpa] externals/javaimp c4e5f13d46: Describe behavior when not visiting


From: Filipp Gunbin
Subject: [elpa] externals/javaimp c4e5f13d46: Describe behavior when not visiting a project
Date: Tue, 10 May 2022 15:42:02 -0400 (EDT)

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

    Describe behavior when not visiting a project
---
 javaimp.el | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/javaimp.el b/javaimp.el
index 7519a8d95c..b4056da158 100644
--- a/javaimp.el
+++ b/javaimp.el
@@ -45,7 +45,10 @@
 ;; - Call `javaimp-visit-project', giving it the top-level build file
 ;; of your project.  If called within a project, supplies useful
 ;; default candidates in minibuffer input (topmost build file in the
-;; current directory hierarchy, then nested ones).
+;; current directory hierarchy, then nested ones).  If you don't visit
+;; a project, then Javaimp will try to determine current source root
+;; directory from the 'package' directive in the current file, and
+;; will still offer some functions.
 ;;
 ;; - Then in a Java buffer visiting a file under that project or one
 ;; of its submodules call `javaimp-organize-imports' or
@@ -99,6 +102,12 @@
 ;; `javaimp-organize-import': command to organize imports in the
 ;; current buffer, sorting and deleting duplicates.
 ;;
+;; If you don't visit a project, then Javaimp tries to determine
+;; current source root directory (see
+;; `javaimp--get-current-source-dir'), dependency information of
+;; course will not be available, and you'll get completions only from
+;; your current sources (and from JDK).
+;;
 ;;
 ;;   Source parsing
 ;;



reply via email to

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