Function: ede-auto-load-project

ede-auto-load-project is a byte-compiled function defined in auto.el.gz.

Signature

(ede-auto-load-project ARG &rest ARGS)

Implementations

(ede-auto-load-project (THIS ede-project-autoload) DIR) in `ede/auto.el'.

Load in the project associated with THIS project autoload description. THIS project description should be valid for DIR, where the project will be loaded.

NOTE: Do not call this - it should only be called from `ede-load-project-file'.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede/auto.el.gz
(cl-defmethod ede-auto-load-project ((this ede-project-autoload) dir)
  "Load in the project associated with THIS project autoload description.
THIS project description should be valid for DIR, where the project will
be loaded.

NOTE: Do not call this - it should only be called from `ede-load-project-file'."
  ;; Last line of defense: don't load unsafe projects.
  (when (not (or (oref this safe-p)
		 (ede-directory-safe-p dir)))
    (error "Attempt to load an unsafe project (bug elsewhere in EDE)"))
  ;; Things are good - so load the project.
  (let ((o (funcall (oref this load-type) dir)))
    (when (not o)
      (error "Project type error: :load-type failed to create a project"))
    (ede-add-project-to-global-list o)
    ;; @TODO - Add to hash over at `ede-inode-directory-hash'.
    ))