Menu

[1da77c]: / cedet-devel-load.el  Maximize  Restore  History

Download this file

97 lines (75 with data), 3.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
;;; cedet-devel-load.el --- Use CEDET from SourceForge, not Emacs
;; Copyright (C) 2011, 2013 by Eric M. Ludlam
;; This file is not part of Emacs, and will STAY a part of CEDET/Standalone
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or (at
;; your option) any later version.
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;; Commentary:
;;
;; This file is for using the CEDET from the CEDET standalone git
;; repository, replacing the version that comes with Emacs 23.x and greater.
;;; Code:
(when (featurep 'cedet-devel-load)
(error "CEDET Version %s already loaded." cedet-version))
;; Load EIEIO that is provided by Emacs
(require 'eieio)
;; This file must be in "<INSTALL-DIR>" where 'cedet.el' that
;; comes with the associated repository is in: "<INSTALL-DIR>/lisp/cedet/cedet.el".
(let ((CEDETDIR (file-name-directory
(or load-file-name (buffer-file-name)))))
(unless (boundp 'cedet-bootstrap-in-progress)
;; Remove builtin CEDET from load path and autoloaded symbols
(load-file (expand-file-name "cedet-remove-builtin.el" CEDETDIR)))
;; SETUP LOAD PATHS
(add-to-list 'load-path CEDETDIR)
(add-to-list 'load-path (expand-file-name "lisp/cedet" CEDETDIR))
(add-to-list 'load-path (expand-file-name "lisp/speedbar" CEDETDIR))
;; Load compatibility code for older Emacsen
(require 'cedet-compat)
;; Load EDE
(require 'ede)
;; Load in all the loaddefs unless we're bootstrapping the system
(unless (boundp 'cedet-bootstrap-in-progress)
(message "Loading autoloads from CEDET development.")
(load (expand-file-name "lisp/speedbar/loaddefs.el" CEDETDIR) nil t t)
(load (expand-file-name "lisp/cedet/loaddefs.el" CEDETDIR) nil t t)
(load (expand-file-name "lisp/cedet/ede/loaddefs.el" CEDETDIR) nil t t)
(load (expand-file-name "lisp/cedet/cogre/loaddefs.el" CEDETDIR) nil t t)
(load (expand-file-name "lisp/cedet/srecode/loaddefs.el" CEDETDIR) nil t t)
(load (expand-file-name "lisp/cedet/semantic/loaddefs.el" CEDETDIR) nil t t)
(setq Info-directory-list
(cons (expand-file-name "doc/info" CEDETDIR)
Info-default-directory-list))))
;; Skip the rest if we just want to absolute minimum (during compilation).
(unless (bound-and-true-p cedet-minimum-setup)
(require 'cedet) ;; Get standard CEDET variables loaded.
;; Load the canned configurations
(require 'semantic/canned-configs)
;; Add some autoloads by hand due to:
;; New code
;; Things disabled by core Emacs
;;
;; @TODO - generate autoloads.
;;(autoload 'semantic-default-elisp-setup "semantic/bovine/el"
;; "Setup hook function for Emacs Lisp files and Semantic.")
;; Get SRecode initialized
(require 'srecode)
(require 'srecode/map) ;; Get the srecode load-path filled in.
(let ((CEDETDIR (file-name-directory
(or load-file-name (buffer-file-name))))
(REMOVEME (expand-file-name "srecode" data-directory)))
;; Add in the devel data directory.
(add-to-list 'srecode-map-load-path (expand-file-name "etc/srecode" CEDETDIR))
;; Remove the system level data directory.
(setq srecode-map-load-path (remove REMOVEME srecode-map-load-path))))
(provide 'cedet-devel-load)
;; End
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.