You need to install semantic 1.4beta13 (or later).
Binil Thomas wrote: > Hi all, > I am a novice Emacs user. I have started using JDE+Emacs here at work and > I am starting to like it. I have Emacs 20.7.1 installed on my RedHat 7.2 > machine at home and when I tried to install JDE there, I get the error: > > Error in init file: Symbol's function definition is void: > semantic-add-minor-mode > > when I start my emacs. Also, the JDE related menus dont come up when I > open a Java file. > > Reading through the Troubleshooting Guide at > http://jdee.sunsite.dk/trouble-shooting.htm, I am made to understand that > this might be due to :- > *Failure to install the latest versions of the packages required by the > JDE. > *Failure to byte-compile the packages required by the JDE. > *Failure to put the directories containing the latest versions of > JDE-required packages ahead of any other Lisp directories in the Emacs > load-path > > I am **REALLY** an Emacs novice that the suggestions given at the > troubleshooting guide, though helpful, doesnt really help me. Let me > explain. > > 1. I have installed the following :- > i. jde-2.2.9beta9.1 > ii. semantic-1.4beta11-1.noarch.rpm > iii. speedbar-0.14beta2-1.noarch.rpm > iv. elib-1.0.targ.gz > v. eieio-0.17-beta3.noarch.rpm > I think these are the latest of the software required to install JDE over > Emacs. Am I right? Is something amiss here? > > 2. I havent used any Lisp before - so, please tell me, how to do this > "byte-compile"? > I ran the make file that comes with JDE. but it gave me errors and into > went into a debug mode (I dont have the messages I got then, but I can > post it tomorrow if required). > Can someone please suggest the easiest way to do this "byte-compilation"? > > 3. I have added the following in my .emacs file > -------------------------------------------------------------------------- > ;; Installing JDE > (add-to-list 'load-path (expand-file-name > "/usr/share/emacs/site-lisp/elib")) > (add-to-list 'load-path (expand-file-name > "/usr/share/emacs/site-lisp/eieio")) > (add-to-list 'load-path (expand-file-name > "/usr/share/emacs/site-lisp/semantic")) > (add-to-list 'load-path (expand-file-name > "/usr/share/emacs/site-lisp/speedbar")) > (add-to-list 'load-path (expand-file-name > "/usr/share/emacs/site-lisp/jde/lisp")) > > ;; Always require JDE mode > (require 'jde) > (require 'overlay-fix) > > ;; Added to make the cursor go to the position where next text is to > ;; be added after a RET > (define-key c-mode-base-map "\C-m" 'newline-and-indent) > --------------------------------------------------------------------------- > I just read at the JDE website that sending the "JDE specific" portion of > the .emacs file is not correct, but I dont have the entire .emacs file > with me right now - I can post it tomorrow if required. Anyway, I havent > changed ANYTHING in the .emacs file that RedHat7.2 created for me. I > havent changed any configurations from within Emacs either. > > I added the line (require 'overlay-fix) because that was required for my > Emacs to work here at work (I found that from the FAQ). But removing that > line also causes the same error. Also, I added the line (define-key > c-mode-base-map "\C-m" 'newline-and-indent) to indent a newly > created line (got it from the FAQ of cc-mode). > > How do I ensure that the latest packages are loaded ahead of older ones? > > So this is my problem! I understand all the sugegstions made at the > TroubleShooting Guide, but I dont know how I should be proceeding. Hope > someone here can help me. I will provide more information, if required. > > Finally, the messages produced by emacs on startup > --------------------------------------------------------------------------- > Loading cl-extra... > Loading cl-extra...done > Loading /usr/share/emacs/site-lisp/site-start.d/aspell-init.el (source)... > Loading /usr/share/emacs/site-lisp/site-start.d/aspell-init.el > (source)...done > Loading /usr/share/emacs/site-lisp/site-start.d/lang.emacs.el (source)... > Loading /usr/share/emacs/site-lisp/site-start.d/lang.emacs.el > (source)...done > Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el > (source)... > Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el > (source)...done > Loading /usr/share/emacs/site-lisp/site-start.d/psgml-init.el (source)... > Loading /usr/share/emacs/site-lisp/site-start.d/psgml-init.el > (source)...done > Loading cus-face... > Loading cus-face...done > Finished loading /usr/share/emacs/site-lisp/egg/leim-list.el > and load others... > Loading font-lock... > Loading regexp-opt... > Loading regexp-opt...done > Loading font-lock...done > Loading cl-macs... > Loading cl-macs...done > Bootstrapping objects... > Bootstrapping objects...done > Loading backquote... > Loading backquote...done > Loading wid-browse... > Loading wid-browse...done > Error in init file: Symbol's function definition is void: > semantic-add-minor-mode > Fontifying *scratch*... > Fontifying *scratch*... (regexps............) > Error in init file: Symbol's function definition is void: > semantic-add-minor-mode > --------------------------------------------------------------------------- > Hope someone here can help me! > > Thanks in advance, > Binil > > -- > And did they get you to trade your heroes for ghosts? Hot ashes for > trees? Hot air for a cool breeze? Cold comfort for change? And did you > exchange a walk on part in the war for a lead role in a cage? - PF
