Function: ede-global-list-sanity-check

ede-global-list-sanity-check is an interactive and byte-compiled function defined in ede.el.gz.

Signature

(ede-global-list-sanity-check)

Documentation

Perform a sanity check to make sure there are no duplicate projects.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede.el.gz
(defun ede-global-list-sanity-check ()
  "Perform a sanity check to make sure there are no duplicate projects."
  (interactive)
  (let ((scanned nil))
    (dolist (P ede-projects)
      (if (member (oref P directory) scanned)
	  (error "Duplicate project (by dir) found in %s!" (oref P directory))
	(push (oref P directory) scanned)))
    (unless ede--disable-inode
      (setq scanned nil)
      (dolist (P ede-projects)
	(if (member (ede--project-inode P) scanned)
	  (error "Duplicate project (by inode) found in %s!" (ede--project-inode P))
	  (push (ede--project-inode P) scanned))))
    (message "EDE by directory %sis still sane." (if ede--disable-inode "" "& inode "))))