Re: [CEDET-devel] Activating semantic in Emacs 23.1.91 Pretest

"Eric M. Ludlam" <[email protected]> Sat, 20 Feb 2010 07:40:43 -0500
Newsgroups gmane.emacs.semantic,gmane.emacs.cedet,gmane.emacs.code-browser
Message-ID <[email protected]>
Hi Klaus,

I am not yet that familiar with the integrated version of CEDET/Emacs. 
I wanted to get CEDET 1.0 out, stabilize it, and switch to the Emacs 
variant of setup/install.  Getting 1.0 done has taken much longer than I 
had anticipated, mostly because when I do have time, there is usually a 
pile of interesting bugs or patches to work on.  At this point, I have a 
test suite that is moderately complete, and automated, so it is just a 
matter of posting a tar file, and see what the testing results in.

With CVS-cedet, semantic-el is loaded because there is an autoload 
cookie on the hook function for emacs-lisp-mode.  When you open a lisp 
buffer, it loads the support file.

As for the two setup methods, you are right.  The one in CEDET-CVS is, 
as far as I can tell, the easiest way to get started with older Emacsen. 
  The Emacs variant is just a variant that will need to be figured out 
when I try and create distributions that sit on top of Emacs 23.2 when 
that ships.

Eric

On 02/20/2010 07:16 AM, Berndl, Klaus wrote:
> Hi Eric,
>
> thanks....
>
> I detected the new variable `semantic-new-buffer-setup-functions' which is only available in the Emacs-version of cedet, not in your CVS-head.
> In this variable emacs-lisp-mode is not added (don't know why not), so emas-lisp-mode is not ready for semantic-parsing by default...
> But to add the function `semantic-elisp-default-setup' to this variable it seems i must load semantic/bovine/el.el... is this true?
>
> Two further questions:
> 1. If using CVS-cedet: When semantic-el.el is loaded (and so emacs-lisp code ready for semantic) if i start Emacs (23.1 without shipped cedet!) with emacs -Q and only load cedet.el (just loading this files seems to load semantic-el.el but i can not see when and why)
>
> 2. Currently there seem to exist two completely different activation methods: one for your CVS-cedet and one for the Emacs-shipped cedet. This is ugly and annoying...sorry Eric, for this hard wording...;-) . Do you have plans to "marriage" these two to one single activation-method independ if CVS-cedet is used or Emacs-shipped cedet is used?
>
> Thanks for your help
> Klaus
> ________________________________________
> Von: Eric M. Ludlam [[email protected]]
> Gesendet: Freitag, 19. Februar 2010 17:40
> An: Berndl, Klaus
> Cc: [email protected]; [email protected]; [email protected]
> Betreff: Re: [CEDET-devel] Activating semantic in Emacs 23.1.91 Pretest
>
> Hi Klaus,
>
> I haven't tried this either.  It is my understanding that it goes like
> this, however:
>
> 1. emacs -q
> 2. (semantic-mode)
> 3. Open some file.
>
> I think semantic-mode turns everything on, but doesn't force
> pre-existing buffers to be enabled.
>
> Eric
>
> On 02/19/2010 11:15 AM, Berndl, Klaus wrote:
>> Hi,
>> anybody out there who can tell me how to activate semantic in Emacs 23.1.91?
>> I have installed the pretest version of this emacs fror the sake to make
>> ECB compatible with this ona and its included cedet-suite.
>> 1. Suppose i have started Emacs without any setup (emacs -q)
>> 2. Opening an elisp-file
>> 3. M-: (semantic-mode)
>> 4. Now semantic should be active (globally or only for this file?) - But
>> wehn i do M-: (semantic-active-p) i get always nil. I would expect to
>> get t...
>> Can anybody help me..what i'm doing wrong?
>> Regards,
>> Klaus
>>
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev