diff options
Diffstat (limited to 'lisp/cedet/ede/cpp-root.el')
| -rw-r--r-- | lisp/cedet/ede/cpp-root.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/cedet/ede/cpp-root.el b/lisp/cedet/ede/cpp-root.el index 83474a44dd3..0a77692dd71 100644 --- a/lisp/cedet/ede/cpp-root.el +++ b/lisp/cedet/ede/cpp-root.el | |||
| @@ -279,7 +279,7 @@ Each directory needs a project file to control it.") | |||
| 279 | "Make sure the :file is fully expanded." | 279 | "Make sure the :file is fully expanded." |
| 280 | ;; Add ourselves to the master list | 280 | ;; Add ourselves to the master list |
| 281 | (cl-call-next-method) | 281 | (cl-call-next-method) |
| 282 | (let ((f (expand-file-name (oref this :file)))) | 282 | (let ((f (expand-file-name (oref this file)))) |
| 283 | ;; Remove any previous entries from the main list. | 283 | ;; Remove any previous entries from the main list. |
| 284 | (let ((old (eieio-instance-tracker-find (file-name-directory f) | 284 | (let ((old (eieio-instance-tracker-find (file-name-directory f) |
| 285 | :directory 'ede-cpp-root-project-list))) | 285 | :directory 'ede-cpp-root-project-list))) |
| @@ -292,8 +292,8 @@ Each directory needs a project file to control it.") | |||
| 292 | (file-directory-p f)) | 292 | (file-directory-p f)) |
| 293 | (delete-instance this) | 293 | (delete-instance this) |
| 294 | (error ":file for ede-cpp-root-project must be a file")) | 294 | (error ":file for ede-cpp-root-project must be a file")) |
| 295 | (oset this :file f) | 295 | (oset this file f) |
| 296 | (oset this :directory (file-name-directory f)) | 296 | (oset this directory (file-name-directory f)) |
| 297 | (ede-project-directory-remove-hash (file-name-directory f)) | 297 | (ede-project-directory-remove-hash (file-name-directory f)) |
| 298 | ;; NOTE: We must add to global list here because these classes are not | 298 | ;; NOTE: We must add to global list here because these classes are not |
| 299 | ;; created via the typical loader, but instead via calls from a .emacs | 299 | ;; created via the typical loader, but instead via calls from a .emacs |
| @@ -301,7 +301,7 @@ Each directory needs a project file to control it.") | |||
| 301 | (ede-add-project-to-global-list this) | 301 | (ede-add-project-to-global-list this) |
| 302 | 302 | ||
| 303 | (unless (slot-boundp this 'targets) | 303 | (unless (slot-boundp this 'targets) |
| 304 | (oset this :targets nil)) | 304 | (oset this targets nil)) |
| 305 | )) | 305 | )) |
| 306 | 306 | ||
| 307 | ;;; SUBPROJ Management. | 307 | ;;; SUBPROJ Management. |
| @@ -455,8 +455,8 @@ This is for project include paths and spp source files." | |||
| 455 | "Compile the entire current project PROJ. | 455 | "Compile the entire current project PROJ. |
| 456 | Argument COMMAND is the command to use when compiling." | 456 | Argument COMMAND is the command to use when compiling." |
| 457 | ;; we need to be in the proj root dir for this to work | 457 | ;; we need to be in the proj root dir for this to work |
| 458 | (let* ((cmd (oref proj :compile-command)) | 458 | (let* ((cmd (oref proj compile-command)) |
| 459 | (ov (oref proj :local-variables)) | 459 | (ov (oref proj local-variables)) |
| 460 | (lcmd (when ov (cdr (assoc 'compile-command ov)))) | 460 | (lcmd (when ov (cdr (assoc 'compile-command ov)))) |
| 461 | (cmd-str (cond | 461 | (cmd-str (cond |
| 462 | ((stringp cmd) cmd) | 462 | ((stringp cmd) cmd) |
| @@ -470,8 +470,8 @@ Argument COMMAND is the command to use when compiling." | |||
| 470 | (cl-defmethod project-compile-target ((obj ede-cpp-root-target) &optional command) | 470 | (cl-defmethod project-compile-target ((obj ede-cpp-root-target) &optional command) |
| 471 | "Compile the current target OBJ. | 471 | "Compile the current target OBJ. |
| 472 | Argument COMMAND is the command to use for compiling the target." | 472 | Argument COMMAND is the command to use for compiling the target." |
| 473 | (when (oref obj :project) | 473 | (when (oref obj project) |
| 474 | (project-compile-project (oref obj :project) command))) | 474 | (project-compile-project (oref obj project) command))) |
| 475 | 475 | ||
| 476 | 476 | ||
| 477 | (cl-defmethod project-rescan ((this ede-cpp-root-project)) | 477 | (cl-defmethod project-rescan ((this ede-cpp-root-project)) |