diff options
| author | David Engster | 2013-04-27 23:45:37 +0200 |
|---|---|---|
| committer | David Engster | 2013-04-27 23:45:37 +0200 |
| commit | 201dbb588d3dba1c7deb9bf8d493a5d34b09622a (patch) | |
| tree | e055a17128b4e5c11a63856ebf3e690d8e6f57c3 | |
| parent | 7365d35ddb1b186f530b5e33e4f558d9eb919518 (diff) | |
| download | emacs-201dbb588d3dba1c7deb9bf8d493a5d34b09622a.tar.gz 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).
| -rw-r--r-- | lisp/cedet/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/cedet/semantic/complete.el | 7 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index 8b914e8843e..944a9e1a02a 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-04-27 David Engster <deng@randomsample.de> | ||
| 2 | |||
| 3 | * semantic/complete.el | ||
| 4 | (semantic-collector-calculate-completions-raw): If | ||
| 5 | `completionslist' is not set, refresh the cache if necessary and | ||
| 6 | use it for completions. This fixes the | ||
| 7 | `semantic-collector-buffer-deep' collector (bug#14265). | ||
| 8 | |||
| 1 | 2013-03-26 Leo Liu <sdl.web@gmail.com> | 9 | 2013-03-26 Leo Liu <sdl.web@gmail.com> |
| 2 | 10 | ||
| 3 | * semantic/senator.el (senator-copy-tag-to-register): Move | 11 | * semantic/senator.el (senator-copy-tag-to-register): Move |
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." | |||
| 988 | "Calculate the completions for prefix from completionlist. | 988 | "Calculate the completions for prefix from completionlist. |
| 989 | Output must be in semanticdb Find result format." | 989 | Output must be in semanticdb Find result format." |
| 990 | ;; Must output in semanticdb format | 990 | ;; Must output in semanticdb format |
| 991 | (unless completionlist | ||
| 992 | (setq completionlist | ||
| 993 | (or (oref obj cache) | ||
| 994 | (semantic-collector-calculate-cache obj)))) | ||
| 991 | (let ((table (with-current-buffer (oref obj buffer) | 995 | (let ((table (with-current-buffer (oref obj buffer) |
| 992 | semanticdb-current-table)) | 996 | semanticdb-current-table)) |
| 993 | (result (semantic-find-tags-for-completion | 997 | (result (semantic-find-tags-for-completion |
| 994 | prefix | 998 | prefix |
| 995 | ;; To do this kind of search with a pre-built completion | 999 | ;; To do this kind of search with a pre-built completion |
| 996 | ;; list, we need to strip it first. | 1000 | ;; list, we need to strip it first. |
| 997 | (semanticdb-strip-find-results completionlist))) | 1001 | (semanticdb-strip-find-results completionlist)))) |
| 998 | ) | ||
| 999 | (if result | 1002 | (if result |
| 1000 | (list (cons table result))))) | 1003 | (list (cons table result))))) |
| 1001 | 1004 | ||