;;; Code:
+(defvar semanticdb--ih)
+
;;;###autoload
(defun semanticdb-enable-gnu-global-databases (mode &optional noerror)
"Enable the use of the GNU Global SemanticDB back end for all files of MODE.
(when (stringp mode)
(setq mode (intern mode)))
- (let ((ih (mode-local-value mode 'semantic-init-mode-hook)))
+ (let ((semanticdb--ih (mode-local-value mode 'semantic-init-mode-hook)))
(eval `(setq-mode-local
,mode semantic-init-mode-hook
- (cons 'semanticdb-enable-gnu-global-hook ih))))
+ (cons 'semanticdb-enable-gnu-global-hook semanticdb--ih))))
t
)
)
(setq
;; Add to the system database list.
semanticdb-project-system-databases
- (cons (semanticdb-project-database-global "global")
+ (cons (make-instance 'semanticdb-project-database-global)
semanticdb-project-system-databases)
;; Apply the throttle.
semanticdb-find-default-throttle
;; We need to return something since there is always the "master table"
;; The table can then answer file name type questions.
(when (not (slot-boundp obj 'tables))
- (let ((newtable (semanticdb-table-global "GNU Global Search Table")))
+ (let ((newtable (make-instance 'semanticdb-table-global)))
(oset obj tables (list newtable))
(oset newtable parent-db obj)
(oset newtable tags nil)
(faketags nil)
)
(when result
- (dolist (T (oref result :hit-text))
+ (dolist (T (oref result hit-text))
;; We should look up each tag one at a time, but I'm lazy!
;; Doing this may be good enough.
(setq faketags (cons