[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/javaimp 9057392: Minor fixes
From: |
Filipp Gunbin |
Subject: |
[elpa] externals/javaimp 9057392: Minor fixes |
Date: |
Mon, 31 May 2021 13:22:01 -0400 (EDT) |
branch: externals/javaimp
commit 905739268dd4765847e9c083074c2796c8c6f400
Author: Filipp Gunbin <fgunbin@fastmail.fm>
Commit: Filipp Gunbin <fgunbin@fastmail.fm>
Minor fixes
---
javaimp.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/javaimp.el b/javaimp.el
index 1ea804d..8b368ea 100644
--- a/javaimp.el
+++ b/javaimp.el
@@ -403,8 +403,9 @@ prefix arg is given, don't do this filtering."
(completion-regexp-list
(and (not current-prefix-arg)
(symbol-at-point)
- (let ((prefix (regexp-quote (symbol-name (symbol-at-point)))))
- (list (concat "\\." prefix "[^.]*$\\|^" prefix "[^.]*$"))))))
+ (list (rx (and symbol-start
+ (literal (symbol-name (symbol-at-point)))
+ eol))))))
(list (completing-read "Import: " classes nil t nil nil
(symbol-name (symbol-at-point))))))
(javaimp-organize-imports (cons classname 'ordinary)))
@@ -453,7 +454,9 @@ prefix arg is given, don't do this filtering."
(defun javaimp--get-directory-classes (dir)
(if (file-accessible-directory-p dir)
(seq-mapcat #'javaimp--get-file-classes
- (directory-files-recursively dir "\\.java\\'"))))
+ (seq-filter (lambda (file)
+ (not (file-symlink-p file)))
+ (directory-files-recursively dir
"\\.java\\'")))))
;; Organizing imports
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/javaimp 9057392: Minor fixes,
Filipp Gunbin <=