* lisp/cedet/semantic/complete.el
(semantic-collector-calculate-completions-raw): If `completionslist' is not set, refresh the cache if necessary and use it for completions. This fixes the `semantic-collector-buffer-deep' collector (bug#14265).
This commit is contained in:
parent
7365d35ddb
commit
201dbb588d
2 changed files with 13 additions and 2 deletions
|
@ -988,14 +988,17 @@ Calculate the cache if there isn't one."
|
|||
"Calculate the completions for prefix from completionlist.
|
||||
Output must be in semanticdb Find result format."
|
||||
;; Must output in semanticdb format
|
||||
(unless completionlist
|
||||
(setq completionlist
|
||||
(or (oref obj cache)
|
||||
(semantic-collector-calculate-cache obj))))
|
||||
(let ((table (with-current-buffer (oref obj buffer)
|
||||
semanticdb-current-table))
|
||||
(result (semantic-find-tags-for-completion
|
||||
prefix
|
||||
;; To do this kind of search with a pre-built completion
|
||||
;; list, we need to strip it first.
|
||||
(semanticdb-strip-find-results completionlist)))
|
||||
)
|
||||
(semanticdb-strip-find-results completionlist))))
|
||||
(if result
|
||||
(list (cons table result)))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue