Function: semantic-add-system-include

semantic-add-system-include is an interactive and byte-compiled function defined in dep.el.gz.

Signature

(semantic-add-system-include DIR &optional MODE)

Documentation

Add a system include DIR to path for MODE.

Modifies a mode-local version of semantic-dependency-system-include-path.

Changes made by this function are not persistent.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/dep.el.gz
;;; PATH MANAGEMENT
;;
;; Some fcns to manage paths for a give mode.
;;;###autoload
(defun semantic-add-system-include (dir &optional mode)
  "Add a system include DIR to path for MODE.
Modifies a mode-local version of `semantic-dependency-system-include-path'.

Changes made by this function are not persistent."
  (interactive "DNew Include Directory: ")
  (if (not mode) (setq mode major-mode))
  (let ((dirtmp (file-name-as-directory dir))
	(value
	 (mode-local-value mode 'semantic-dependency-system-include-path)))
    (eval `(setq-mode-local ,mode
			    semantic-dependency-system-include-path
			    ',(if (member dirtmp value) value
                                (append value (list dirtmp))))
	  t)))