Skip to content

Commit f09ec32

Browse files
committed
Improve "g"
* lispy.el (lispy-build-semanticdb): Return the corresponding db. (lispy--fetch-tags): Try to call `lispy-build-semanticdb' before raising an error.
1 parent 100da0a commit f09ec32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: lispy.el

+4-4
Original file line numberDiff line numberDiff line change
@@ -4042,7 +4042,8 @@ so that no other packages disturb the match data."
40424042
(unless buf
40434043
(kill-buffer)))))
40444044
(lispy--file-list)))
4045-
(semanticdb-save-all-db))
4045+
(semanticdb-save-db
4046+
(semanticdb-directory-loaded-p dir)))
40464047

40474048
(defun lispy--fetch-this-file-tags ()
40484049
"Fetch this file tags."
@@ -4257,10 +4258,9 @@ For example, a `setq' statement is amended with variable name that it uses."
42574258
(let* ((this-file (expand-file-name (buffer-file-name)))
42584259
(default-directory path)
42594260
(db (or (semanticdb-directory-loaded-p path)
4261+
(lispy-build-semanticdb path)
42604262
(error "Semantic not loaded")))
4261-
(db-tables (semanticdb-get-database-tables db)
4262-
;; (aref db 6)
4263-
)
4263+
(db-tables (semanticdb-get-database-tables db))
42644264
db-tables-with-mode
42654265
was-updated)
42664266
(unless (lexical-let ((db-files

0 commit comments

Comments
 (0)