Function: smart-java-library-path
smart-java-library-path is a byte-compiled function defined in
hmouse-tag.el.
Signature
(smart-java-library-path LIBRARY-NAME)
Documentation
Search up directory tree from current directory for a match to LIBRARY-NAME.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-tag.el
(defun smart-java-library-path (library-name)
"Search up directory tree from current directory for a match to LIBRARY-NAME."
(let ((path default-directory)
(library-path)
(library-regexp (if (string-match "\\.\\|'//" library-name)
(regexp-quote
(concat (file-name-as-directory "")
(substring library-name 0 (match-beginning 0))
(file-name-as-directory "")))))
(start 0))
;; Return rightmost match to first part of library-name.
(if library-regexp
(while (string-match library-regexp path start)
(setq start (1+ (match-beginning 0))
library-path (substring path 0 (match-beginning 0)))))
library-path))