Function: semanticdb-enable-gnu-global-in-buffer

semanticdb-enable-gnu-global-in-buffer is an interactive and byte-compiled function defined in db-global.el.gz.

Signature

(semanticdb-enable-gnu-global-in-buffer &optional DONT-ERR-IF-NOT-AVAILABLE)

Documentation

Enable a GNU Global database in the current buffer.

When GNU Global is not available for this directory, display a message if optional DONT-ERR-IF-NOT-AVAILABLE is non-nil; else throw an error.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/db-global.el.gz
(defun semanticdb-enable-gnu-global-in-buffer (&optional dont-err-if-not-available)
  "Enable a GNU Global database in the current buffer.
When GNU Global is not available for this directory, display a message
if optional DONT-ERR-IF-NOT-AVAILABLE is non-nil; else throw an error."
  (interactive "P")
  (if (cedet-gnu-global-root)
      (setq
       ;; Add to the system database list.
       semanticdb-project-system-databases
       (cons (make-instance 'semanticdb-project-database-global)
	     semanticdb-project-system-databases)
       ;; Apply the throttle.
       semanticdb-find-default-throttle
       (append semanticdb-find-default-throttle
	       '(omniscience))
       )
    (if dont-err-if-not-available
	nil; (message "No Global support in %s" default-directory)
      (error "No Global support in %s" default-directory))
    ))