Function: cedet-gnu-global-gtags-call

cedet-gnu-global-gtags-call is a byte-compiled function defined in cedet-global.el.gz.

Signature

(cedet-gnu-global-gtags-call FLAGS)

Documentation

Create GNU Global TAGS using gtags with FLAGS.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/cedet-global.el.gz
(defun cedet-gnu-global-gtags-call (flags)
  "Create GNU Global TAGS using gtags with FLAGS."
  (let ((b (get-buffer-create "*CEDET Global gtags*"))
	(cd default-directory)
	)
    (with-current-buffer b
      (setq default-directory cd)
      (erase-buffer))
    (apply #'call-process cedet-global-gtags-command
	   nil b nil
	   flags)

    ;; Check for warnings.
    (with-current-buffer b
      (goto-char (point-min))
      (when (re-search-forward "Error\\|Warning\\|invalid" nil t)
	(error "Output:\n%S" (buffer-string))))

    b))