diff options
author | David Engster <dengste@eml.cc> | 2013-04-27 23:45:37 +0200 |
---|---|---|
committer | David Engster <dengste@eml.cc> | 2013-04-27 23:45:37 +0200 |
commit | 201dbb588d3dba1c7deb9bf8d493a5d34b09622a (patch) | |
tree | e055a17128b4e5c11a63856ebf3e690d8e6f57c3 /lisp/cedet/semantic/complete.el | |
parent | 7365d35ddb1b186f530b5e33e4f558d9eb919518 (diff) | |
download | emacs-201dbb588d3dba1c7deb9bf8d493a5d34b09622a.tar.gz emacs-201dbb588d3dba1c7deb9bf8d493a5d34b09622a.tar.bz2 emacs-201dbb588d3dba1c7deb9bf8d493a5d34b09622a.zip |
* 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).
Diffstat (limited to 'lisp/cedet/semantic/complete.el')
-rw-r--r-- | lisp/cedet/semantic/complete.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el index 1c2ddf45c9d..6c2b97a677a 100644 --- a/lisp/cedet/semantic/complete.el +++ b/lisp/cedet/semantic/complete.el @@ -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))))) |