comparison lisp/cedet/ede/project-am.el @ 105333:51ba3b848c03

Doc/message fixes.
author Glenn Morris <rgm@gnu.org>
date Thu, 01 Oct 2009 04:10:10 +0000
parents a6a812dd2d88
children 7f4c7f5c0eba
comparison
equal deleted inserted replaced
105332:3b219f963a5f 105333:51ba3b848c03
1 ;;; project-am.el --- A project management scheme based on automake files. 1 ;;; project-am.el --- A project management scheme based on automake files.
2 2
3 ;;; Copyright (C) 1998, 1999, 2000, 2003, 2005, 2007, 2008, 2009 3 ;; Copyright (C) 1998, 1999, 2000, 2003, 2005, 2007, 2008, 2009
4 ;;; Free Software Foundation, Inc. 4 ;; Free Software Foundation, Inc.
5 5
6 ;; Author: Eric M. Ludlam <zappo@gnu.org> 6 ;; Author: Eric M. Ludlam <zappo@gnu.org>
7 ;; Version: 0.0.3 7 ;; Version: 0.0.3
8 ;; Keywords: project, make 8 ;; Keywords: project, make
9 9
103 ;; Custom libraries targets? 103 ;; Custom libraries targets?
104 ;; ("ltlibcustom" project-am-lib ".*?_LTLIBRARIES" t) 104 ;; ("ltlibcustom" project-am-lib ".*?_LTLIBRARIES" t)
105 ) 105 )
106 "Alist of type names and the type of object to create for them. 106 "Alist of type names and the type of object to create for them.
107 Each entry is of th form: 107 Each entry is of th form:
108 (EMACSNAME CLASS AUToMAKEVAR INDIRECT) 108 (EMACSNAME CLASS AUTOMAKEVAR INDIRECT)
109 where EMACSNAME is a name for Emacs to use. 109 where EMACSNAME is a name for Emacs to use.
110 CLASS is the EDE target class to represent the target. 110 CLASS is the EDE target class to represent the target.
111 AUTOMAKEVAR is the Automake variable to identify. This cannot be a 111 AUTOMAKEVAR is the Automake variable to identify. This cannot be a
112 regular expression. 112 regular expression.
113 INDIRECT is optional. If it is non-nil, then the variable in 113 INDIRECT is optional. If it is non-nil, then the variable in
186 186
187 ;;; Code: 187 ;;; Code:
188 (defmethod project-add-file ((ot project-am-target)) 188 (defmethod project-add-file ((ot project-am-target))
189 "Add the current buffer into a project. 189 "Add the current buffer into a project.
190 OT is the object target. DIR is the directory to start in." 190 OT is the object target. DIR is the directory to start in."
191 (let* ((target (if ede-object (error "Already assocated w/ a target") 191 (let* ((target (if ede-object (error "Already associated w/ a target")
192 (let ((amf (project-am-load default-directory))) 192 (let ((amf (project-am-load default-directory)))
193 (if (not amf) (error "No project file")) 193 (if (not amf) (error "No project file"))
194 (completing-read "Target: " 194 (completing-read "Target: "
195 (object-assoc-list 'name 195 (object-assoc-list 'name
196 (oref amf targets)) 196 (oref amf targets))
982 (list name ver bugrep configfiles) 982 (list name ver bugrep configfiles)
983 )) 983 ))
984 984
985 (defun project-am-package-info (dir) 985 (defun project-am-package-info (dir)
986 "Get the package information for directory topmost project dir over DIR. 986 "Get the package information for directory topmost project dir over DIR.
987 Calcultes the info with `project-am-extract-package-info'." 987 Calculates the info with `project-am-extract-package-info'."
988 (let ((top (ede-toplevel))) 988 (let ((top (ede-toplevel)))
989 (when top (setq dir (oref top :directory))) 989 (when top (setq dir (oref top :directory)))
990 (project-am-extract-package-info dir))) 990 (project-am-extract-package-info dir)))
991 991
992 (provide 'ede/project-am) 992 (provide 'ede/project-am)