diff options
| author | Eli Zaretskii | 2013-05-01 20:47:50 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-05-01 20:47:50 +0300 |
| commit | b1cb82edff21abfefd68af18370dddfd8cc1fec0 (patch) | |
| tree | fd8d8a1e1d99af024b52158a471457fc796238bc /lisp/cedet | |
| parent | 10f81f3ac90f98160f611787e20dcad96bb500e9 (diff) | |
| parent | 2640d52e4e7873e41b0f0f1144177f84c345917e (diff) | |
| download | emacs-b1cb82edff21abfefd68af18370dddfd8cc1fec0.tar.gz emacs-b1cb82edff21abfefd68af18370dddfd8cc1fec0.zip | |
Merge from trunk.
Diffstat (limited to 'lisp/cedet')
| -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 | ||