]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/cedet/semantic/complete.el
authorDavid Engster <dengste@eml.cc>
Sat, 27 Apr 2013 21:45:37 +0000 (23:45 +0200)
committerDavid Engster <dengste@eml.cc>
Sat, 27 Apr 2013 21:45:37 +0000 (23:45 +0200)
  (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).

lisp/cedet/ChangeLog
lisp/cedet/semantic/complete.el

index 8b914e8843e7c012be13cf169381f5ada6f6f566..944a9e1a02a2313c2be4e9778126d7131d84b3d7 100644 (file)
@@ -1,3 +1,11 @@
+2013-04-27  David Engster  <deng@randomsample.de>
+
+       * 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).
+
 2013-03-26  Leo Liu  <sdl.web@gmail.com>
 
        * semantic/senator.el (senator-copy-tag-to-register): Move
index 1c2ddf45c9de439bddd54458bbae874ba39e46df..6c2b97a677aa61aa706eda1628a2a0b1603cb447 100644 (file)
@@ -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)))))