From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sajid Hussain Newsgroups: gmane.emacs.help Subject: ECB Configuration Date: Mon, 23 Jul 2012 23:17:15 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343111118 22309 80.91.229.3 (24 Jul 2012 06:25:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2012 06:25:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 24 08:25:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1StYYU-0004Ky-Qd for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jul 2012 08:25:15 +0200 Original-Received: from localhost ([::1]:35208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StYYT-0007cB-V5 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jul 2012 02:25:13 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 199 Original-NNTP-Posting-Host: 115.186.156.14 Original-X-Trace: posting.google.com 1343111041 16502 127.0.0.1 (24 Jul 2012 06:24:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 24 Jul 2012 06:24:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=115.186.156.14; posting-account=ijYt0AoAAAB8-cMwRvAKJJRP8ke6EDxI User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:193620 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85994 Archived-At: Hi Everyone, I installed cedet-1.1 and ecb-2.40 and put the following configuration code= in my .emacs file at line # 240 (load-file "~/Downloads/cedet-1.1/common/cedet.el") (global-ede-mode 1) ; Enable the Project management sy= stem (semantic-load-enable-code-helpers) ; Enable prototype help and smart = completion=20 (global-srecode-minor-mode 1) ; Enable template insertion menu (add-to-list 'load-path "~/Downloads/ecb-2.40") (require 'ecb) When I start emacs, the following messages pop up. I tried to fix them by p= utting the above lines on the top but it still gives error messages. I have= pasted below the top fragment of my .emacs file. Could you go through it a= nd tell me how to fix the error messages? Debugger entered--Lisp error: (error "Autoloading failed to define function= semantic-mode") (semantic-mode 1) (if (string< emacs-version "23.2") nil (semantic-mode 1) (global-semantic= db-minor-mode 1) (global-semantic-idle-scheduler-mode 1) (global-semantic-i= dle-summary-mode 1) bla bla.... My .Emacs file fragment: ++++++++++++++++++++++++ (message "%sStarting up Emacs..." (format-time-string "[%Y-%m-%d %a %T] ")) (defvar my/load-verbose t) ;; uptimes (when (string-match "XEmacs" (version)) ;; XEmacs doesn't have `float-time' (defun float-time () "Convert `current-time' to a floating point number." (multiple-value-bind (s0 s1 s2) (current-time) (+ (* (float (ash 1 16)) s0) (float s1) (* 0.0000001 s2))))) (defconst my/emacs-load-time-start (float-time)) ;; Identify what parts of your `.emacs' take so long. You can do ;; this e.g. by starting Emacs with "emacs -q", set up your ;; `load-path', and then evaluate ;; ;; (benchmark-run ;; (require 'package)) ;; ;; The first number appearing in the echo area will be the time needed to r= un ;; that command. ;; ;; Use autoloads, which delay the loading of the complete package until one= of ;; the interactive functions is used. ;; ;; If you want to set options which need to be evaluated after a package is ;; loaded, you can use `eval-after-load'. ;; Load user specific config if we find it (let* ((file "~/.emacs-pre-init-file") (gpg (concat file ".gpg")) ;; to keep secrets secret (el (concat file ".el"))) (cond ((file-readable-p gpg) (load-file gpg)) ((file-readable-p el) (load-file el)))) (message "* --[ Loading Emacs Config Fni ]--") ;; turn on Common Lisp support (require 'cl) ; provides useful things like `loop' and `setf' ;; allow quick include/exclude of setup parts -- DO NOT EDIT the DEFVAR! (defvar chapter-0-environment t) ; required (defvar chapter-0-loading-libraries t) ; required (defvar chapter-0-debugging nil) (defvar chapter-1-screen nil) (defvar chapter-7-basic nil) (defvar chapter-8-minibuffer nil) (defvar chapter-10-help nil) (defvar chapter-11-mark nil) (defvar chapter-12-killing nil) (defvar chapter-13-yanking nil) (defvar chapter-15-rectangles nil) (defvar chapter-16-cua-bindings nil) (defvar chapter-17-registers nil) (defvar chapter-18-display nil) (defvar chapter-19-search nil) (defvar chapter-20-fixit nil) (defvar chapter-21-keyboard-macros nil) (defvar chapter-22-files nil) (defvar chapter-23-buffers nil) (defvar chapter-24-windows nil) (defvar chapter-25-frames nil) (defvar chapter-26-international nil) (defvar chapter-27-major-modes nil) (defvar chapter-28-indentation nil) (defvar chapter-29-text nil) (defvar chapter-30-programs nil) (defvar chapter-31-building nil) (defvar chapter-32-maintaining nil) (defvar chapter-33-abbrevs nil) (defvar chapter-37-dired nil) (defvar chapter-38-calendar-diary nil) (defvar chapter-39-document-view nil) (defvar chapter-40-gnus nil) (defvar chapter-41-shell nil) (defvar chapter-42-emacs-server nil) (defvar chapter-43-printing nil) (defvar chapter-47-sorting nil) (defvar chapter-48-narrowing nil) (defvar chapter-51-saving-emacs-sessions nil) (defvar chapter-54-hyperlinking nil) (defvar chapter-56-amusements nil) (defvar chapter-57-customization nil) (defvar chapter-AppG-ms-dos nil) (defvar chapter-XX-emacs-display nil) (defvar chapter-99-debugging nil) ;; EDIT HERE (setq chapter-0-debugging t) (setq chapter-1-screen t) (setq chapter-7-basic t) (setq chapter-8-minibuffer t) (setq chapter-10-help t) (setq chapter-11-mark t) (setq chapter-12-killing t) (setq chapter-13-yanking t) (setq chapter-15-rectangles t) (setq chapter-16-cua-bindings t) (setq chapter-17-registers t) (setq chapter-18-display t) (setq chapter-19-search t) (setq chapter-20-fixit t) (setq chapter-21-keyboard-macros t) (setq chapter-22-files t) (setq chapter-23-buffers t) (setq chapter-24-windows t) (setq chapter-25-frames t) (setq chapter-26-international t) (setq chapter-27-major-modes t) (setq chapter-28-indentation t) (setq chapter-29-text t) (setq chapter-30-programs t) (setq chapter-31-building t) (setq chapter-32-maintaining t) (setq chapter-33-abbrevs t) (setq chapter-37-dired t) (setq chapter-38-calendar-diary t) (setq chapter-39-document-view t) (setq chapter-40-gnus t) (setq chapter-41-shell t) (setq chapter-42-emacs-server t) (setq chapter-43-printing t) (setq chapter-47-sorting t) (setq chapter-48-narrowing t) (setq chapter-51-saving-emacs-sessions t) (setq chapter-54-hyperlinking t) (setq chapter-56-amusements t) (setq chapter-57-customization t) (setq chapter-AppG-ms-dos t) (setq chapter-XX-emacs-display t) (setq chapter-99-debugging t) (defvar my/load-times-list nil "List of chapters and time to load them.") (defmacro chapter (chapterid chaptername &rest body) `(when ,chapterid (let (chapter-load-time-start this-chapter-load-time) (message "** %s" ,chaptername) (setq chapter-load-time-start (float-time)) (progn ,@body) (setq this-chapter-load-time (concat "| " ,chaptername " | " (message "%.2f" (- (float-time) chapter-load-time-star= t)) " |")) (add-to-list 'my/load-times-list this-chapter-load-time)))) (defun section (sectionname) (message "*** %s" sectionname)) (defun subsection (subsectionname) (message "**** %s" subsectionname)) (load-file "~/Downloads/cedet-1.1/common/cedet.el") (global-ede-mode 1) ; Enable the Project management sy= stem (semantic-load-enable-code-helpers) ; Enable prototype help and smart = completion=20 (global-srecode-minor-mode 1) ; Enable template insertion menu (add-to-list 'load-path "~/Downloads/ecb-2.40") (require 'ecb)