]> git.eshelyaron.com Git - emacs.git/commitdiff
Further robustify cedet bootstrap to loaddefs not yet built
authorGlenn Morris <rgm@gnu.org>
Mon, 24 Apr 2017 23:51:20 +0000 (19:51 -0400)
committerAndrew G Cohen <cohen@andy.bu.edu>
Tue, 25 Apr 2017 01:14:35 +0000 (09:14 +0800)
* lisp/cedet/semantic/util.el (semantic-something-to-tag-table):
Avoid void-function error when bootstrapping and semantic/loaddefs.el
does not yet exist.

lisp/cedet/semantic/util.el

index f8f12ec56a59c0b5de559a06da9078a0a36488c8..31562bc16abb838fc52530b98026cee7b624f1f6 100644 (file)
@@ -110,12 +110,14 @@ buffer, or a filename.  If SOMETHING is nil return nil."
     (semantic-file-tag-table something))
    ;; A Semanticdb table
    ((and (featurep 'semantic/db)
+        (require 'semantic/db-mode)
         (semanticdb-minor-mode-p)
         (semanticdb-abstract-table-child-p something))
     (semanticdb-refresh-table something)
     (semanticdb-get-tags something))
    ;; Semanticdb find-results
    ((and (featurep 'semantic/db)
+        (require 'semantic/db-mode)
         (semanticdb-minor-mode-p)
         (require 'semantic/db-find)
         (semanticdb-find-results-p something))