Eric M. Ludlam | 2 Aug 18:29 2008

Re: Parse errors and smart completion in ELisp buffers

>>> David <de_bb <at> arcor.de> seems to think that:
>David <de_bb <at> arcor.de> writes:
>> OK, this was easy enough. :-) I attached a patch for semantic-ia.el and
>> semantic-el.el which works for me.
>
>Here's already a new one which is slightly more intelligent by looking
>if the function needs any arguments. Maybe one could also print the
>function arguments in the modeline, but I guess people already use eldoc
>for that. The problem is that eldoc is somehow not triggered by the
>completion - I always have to type another character first.

Thanks for the patch.  I have finally merged it into CVS.  Thanks.

I am not that familiar w/ how eldoc works.  In theory, you can use the
semantic-idle-summary-mode instead of eldoc, but eldoc has much better
output.

>By the way, another thing I noticed: When I want to complete a symbol
>from the Gnus package, I get asked if I want to enable the Gnus
>registry. It seems that somehow gnus-registry-install gets invoked by
>the semantic parsing... But maybe that's more of Gnus bug (I use Gnus
>from CVS)?
  [ ... ]

Semantic will attempt put .el files into a buffer in order to parse
them.  Perhaps gnus files have buffer-local variables that run code in
them?

Eric

(Continue reading)

Renaud Casenave-Péré | 3 Aug 17:17 2008
Picon

[PATCH] EDE project using automake

Hi,

I'm beginning a new project and I wanted to use EDE with Automake.
Shortly after beginning using it, I ran into 2 issues :

the configure and Makefiles are well generated but when I try to
compile the project,
ede run the command :

make -f /home/foo/bar/Makefile.am all

make stops because it doesn't find target 'all', which is
understandable because make should run with Makefile and not
Makefile.am.
I would like to submit a little patch fixing the compile command in
ede/ede-proj.el

When writing c++ files, I prefer to use .cc and .hh files extensions
instead of .cpp and .hpp so I made another patch allowing use of such
extensions in ede targets.
Is there a way to define sourcecode objects in EDE only for a
particular project, in Project.ede for example ?
If, like me, someone is using yet another file extensions for c++
source files, I think it would be a better idea to allow user defined
sourcecode objects than directly modifying EDE sources.
If the possibility exists, then I really need to learn how to read a
manual and you can forget everything I just said...

anyway, thanks for cedet, it's a really great tool !

(Continue reading)

Eric M. Ludlam | 4 Aug 04:57 2008

Re: [PATCH] EDE project using automake

Hi,

  Thanks for the patches.  I will merge them as soon as I can.

  It is possible to do the edits you made to ede-proj-obj withouth
editing the sources.  In your case, you might have this in your .emacs
file:

(require 'ede-proj-obj)
(oset-default ede-source-c++ :sourcepattern "new-regexp")

Optionally, you could also do this:

(defvar my-ede-source-c++
	(ede-sourcecode "my-ede-source-c++"
	    :name "C++"
	    ...
 	    ))
(oset-default ede-g++-compiler :sourcetype '(ede-source-c++ my-ede-source-c++))

as both options should work ok for defining new types of source code
and compilers.

It is in either of these ways I would expect extension packages to add
a wide range of new compilers, sources, and languages to EDE for
anything from non-free C++ parsers, to something like pascal or
fortran.

Sadly, this extension mechanism was not documented in the manual very
well.
(Continue reading)

Eric M. Ludlam | 19 Aug 03:07 2008

Re: CEDET and Matlab

>>> David <de_bb <at> arcor.de> seems to think that:
>"Eric M. Ludlam" <eric <at> siege-engine.com> writes:
>>   Do you have a sourceforge account?
>
>Yes.

My apologies for being slow.  I've been pretty busy at work and home.
The good news is that I successfully threw some Zucchini and got some
good distance with my catapult.
http://www.siege-engine.com/Zukapult2008.shtml

Anyway, I'm finally getting to this (not at work).  If you tell me
what your sourceforge account is, I can add you as a contributor.

To submit your database file into CVS, it would be good for you to add
a copyright notice to the top.  This is important so that it has
correct attribution and copyright information.

Also, your root directory variable in the semantic-matlab.el patch is
specific to your machine.  You probably want to make it generic. :)
It also should appear at the top of the file to make it easier to find.

I'm not sure how to handle semanticdb-matlab.el.  It needs an autoload
cookie somewhere, but I'm not quite sure where, as not all users of
matlab.el will want to install CEDET, and thus we cannot autoload
anything that is Semantic specific.

I have compiled your stuff, and will start configuring and using it.
(I do hack a lot of M code.)

(Continue reading)

Ralf Hoffmann | 19 Aug 12:03 2008
Picon

Problem with EDE project handling

Hi,

I have a problem with the EDE project handling. I develop a C++ project
with self-written automake files and there is an optional sub directory
declared with

  if BUILD_OPT
    SUBDIRS += opt
  endif

in the Makefile.am of the parent directory.
When opening any file within this directory there will be messages like

  "No project for ..., but passes project-p test"

so there won't be any completion.

It looks like EDE parses the Makefile.am and don't understand the
conditional syntax (also mentioned in
http://www.gnu.org/software/automake/manual/automake.html#Conditional-Subdirectories
). I tried to workaround it by creating a C++ project as described in
ede-cpp-root.el:

  (ede-cpp-root-project "SOMENAME" :file "/dir/to/some/file")

but that seems to be silently ignored.

Is it possible to tell EDE to ignore the existing automake files?

Best Regards,
(Continue reading)

Eric M. Ludlam | 20 Aug 20:55 2008

Re: Problem with EDE project handling

Hi,

  I submitted a fix for the project-am EDE project type.  The fix is
in the method project-rescan.

  I didn't have a simple way to reproduce this problem, so I took a
guess as the to the solution.  If you could try it out, that would be
good.  If it continues to fail, use:

M-x toggle-debug-on-error RET

to get a stack, which will help find a good solution here.

Thanks
Eric

>>> Ralf Hoffmann <ralf <at> boomerangsworld.de> seems to think that:
>Hi,
>
>I have a problem with the EDE project handling. I develop a C++ project
>with self-written automake files and there is an optional sub directory
>declared with
>
>  if BUILD_OPT
>    SUBDIRS += opt
>  endif
>
>in the Makefile.am of the parent directory.
>When opening any file within this directory there will be messages like
>
(Continue reading)

Ralf Hoffmann | 21 Aug 09:30 2008
Picon

Re: Problem with EDE project handling

Hi,

On 2008-08-20 20:55, Eric M. Ludlam wrote:
>   I submitted a fix for the project-am EDE project type.  The fix is
> in the method project-rescan.
> 
>   I didn't have a simple way to reproduce this problem, so I took a
> guess as the to the solution.  If you could try it out, that would be
> good.  If it continues to fail, use:
> 
> M-x toggle-debug-on-error RET
> 
> to get a stack, which will help find a good solution here.

Unfortunately the fix did not help. There's still the following error
message:

ede-load-project-file: No project for
/storage2/t13/ede-testcase/src/Makefile.am, but passes project-p test

you can see the full debug output in the attached file debug.out.

I was able to setup a stripped-down example in ede-testcase.tar.gz.
When opening main.c in the src directory and trying to do a completion
for any character the mentioned message occurs.

If you comment out the test.h include it will work again but it will
also work if you change
  SUBDIRS = include
into
(Continue reading)

Eric M. Ludlam | 23 Aug 15:34 2008

Re: Problem with EDE project handling

Thanks for the great example.

  I was able to fix the project-am Makefile to track all the
occurances of SUBDIRS.  I also changed ede to turn the error into a
warning for good measure.  Hopefully this will solve your problems.

  These changes should now be in CVS.

Eric

>>> Ralf Hoffmann <ralf <at> boomerangsworld.de> seems to think that:
>Hi,
>
>On 2008-08-20 20:55, Eric M. Ludlam wrote:
>>   I submitted a fix for the project-am EDE project type.  The fix is
>> in the method project-rescan.
>> 
>>   I didn't have a simple way to reproduce this problem, so I took a
>> guess as the to the solution.  If you could try it out, that would be
>> good.  If it continues to fail, use:
>> 
>> M-x toggle-debug-on-error RET
>> 
>> to get a stack, which will help find a good solution here.
>
>Unfortunately the fix did not help. There's still the following error
>message:
>
>ede-load-project-file: No project for
>/storage2/t13/ede-testcase/src/Makefile.am, but passes project-p test
(Continue reading)

Eric M. Ludlam | 24 Aug 18:43 2008

Need XEmacs help

Hello all,

  I'm trying to get a new tarball together for the last years worth of
CEDET changes, and I'm stuck behind an XEmacs problem.  Is there an
XEmacs users who might be able to help?

  I'm using XEmacs 21.4 (patch 12) from an old red-hat distro.  It is
sorting autoloads differently from emacs 21,22, and 23, and that is
causing EDE to fail to load.  Is there a way to control
`batch-update-autoloads' so ede.el autoloads are first in the autoload
file?

Thanks
Eric

--

-- 
          Eric Ludlam:                       eric <at> siege-engine.com
   Siege: www.siege-engine.com          Emacs: http://cedet.sourceforge.net

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Lennart Borgman (gmail | 24 Aug 21:02 2008
Picon

Is CEDET adding files to recentf?

I got a lot of files I did not open in my recent list. Is it perhaps
CEDET that is adding those files there?

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane