Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
IDE versus emacs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 42 of 42 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eli Zaretskii  
View profile  
 More options Oct 6 2012, 4:34 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sat, 06 Oct 2012 10:33:44 +0200
Local: Sat, Oct 6 2012 4:33 am
Subject: Re: IDE versus emacs

> From: Vagn Johansen <gonz...@hotmail.com>
> Date: Sat, 06 Oct 2012 09:56:42 +0200

> Is the TAGS format extensible so a new fields could be added?

You'd need to update the etags program for that, and also the Lisp
commands that access TAGS and operate on it.

> It would useful if the identifiers were tagged (pun intended) with the
> the "type": class, method, static function, constant etc.

> For example find-tag could then support a customized
> find-first/find-next order (eg. class first).

> You could also use it to make the function guess-class-name-at-point. I
> have previously needed this for my tempo expansions for C++ member
> functions.

If you are talking about C++, Emacs already comes with a program
called 'ebrowse' and a matching set of Emacs commands, which I think
are supposed to support all that already.  I suggest to read the
ebrowse manual (bundled with Emacs) and see if you can put that to
good use.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philipp Haselwarter  
View profile  
 More options Oct 6 2012, 4:40 am
Newsgroups: gnu.emacs.help
From: Philipp Haselwarter <phil...@haselwarter.org>
Date: Sat, 06 Oct 2012 10:39:58 +0200
Local: Sat, Oct 6 2012 4:39 am
Subject: Re: IDE versus emacs

On Fri, Oct 05 2012 16:49 (@1349448587), Tom wrote:
> Óscar Fuentes <ofv <at> wanadoo.es> writes:

>> Emacs has partial support for some of those features, with CEDET always
>> shining on the horizon, but instead of catching up with other IDEs as
>> time passes, it is falling behind.

> The Eclipse developers should be persuaded somehow to separate
> the completion/refactoring stuff into a separate library. Is
> there a reason why this part is tied to their GUI editor? If it
> were a separate library then any editor could use it, not just
> Eclipse.

That would be Eclipse headless. Check out eclim.

--
Philipp Haselwarter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vagn Johansen  
View profile  
 More options Oct 6 2012, 8:09 am
Newsgroups: gnu.emacs.help
From: Vagn Johansen <gonz...@hotmail.com>
Date: Sat, 06 Oct 2012 14:09:27 +0200
Local: Sat, Oct 6 2012 8:09 am
Subject: Re: IDE versus emacs

I triede ebrowse when it came out. It is a flop and no one uses/talks
about it anymore. It might as well be removed from Emacs.

CEDET/Semantic is the new hotness. I try it every 2 years for a short
while. It always ends up slowing down my Emacs with various lockups
because of all the parsing it does. Perhaps it works better in 24.3?

I am not specifically talking about C++, that what just an example. I
would like see the TAGS file extended with a "type" field so that my
imagined guess-class-name-at-point function would work for *all*
programming languages. It would be nice if Emacs had a generic API(*)
for semantic information so that for example auto completion system
could be written without specific knowledge of the major-mode (~
programming language).

*) guess-class-name-at-point, find-class-for-identifier-at-point, etc.

--
Vagn Johansen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 6 2012, 8:55 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sat, 06 Oct 2012 14:53:21 +0200
Local: Sat, Oct 6 2012 8:53 am
Subject: Re: IDE versus emacs

> From: Vagn Johansen <gonz...@hotmail.com>
> Date: Sat, 06 Oct 2012 14:09:27 +0200

> I triede ebrowse when it came out. It is a flop and no one uses/talks
> about it anymore. It might as well be removed from Emacs.

It works for me.  If it doesn't for you, how about reporting bugs?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom  
View profile  
 More options Oct 6 2012, 2:13 pm
Newsgroups: gnu.emacs.help
From: Tom <adatgyu...@gmail.com>
Date: Sat, 6 Oct 2012 18:13:36 +0000 (UTC)
Local: Sat, Oct 6 2012 2:13 pm
Subject: Re: IDE versus emacs
Philipp Haselwarter <philipp <at> haselwarter.org> writes:

> > The Eclipse developers should be persuaded somehow to separate
> > the completion/refactoring stuff into a separate library. Is
> > there a reason why this part is tied to their GUI editor? If it
> > were a separate library then any editor could use it, not just
> > Eclipse.

> That would be Eclipse headless. Check out eclim.

Yes, Eclim is a good workaround, but it's not the same thing
as having a separate library in the official Eclipse tree. As far as I
know Eclim supports only a subset of Eclipse features. If the
completing/refactoring part were officially an independent
part of Eclipse then its interface would support all available
features (because the Eclipse IDE would also use this interface),
so it would only be the matter of creating an Emacs interface to
have all the features available in Emacs.

Currently, eclim is an outside effort to gain access to Eclipse
features, therefore it lags behind Eclipse and does not support
all features, probably because of lack of resources which would
not be a problem if separating the language intelligence part
was done within the Eclipse project itself in the first place.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Lewan  
View profile  
 More options Oct 9 2012, 8:47 am
Newsgroups: gnu.emacs.help
From: Doug Lewan <do...@shubertticketing.com>
Date: Tue, 9 Oct 2012 12:48:17 +0000
Local: Tues, Oct 9 2012 8:48 am
Subject: RE: IDE versus emacs
I recently discovered that CYGWIN delivers "Exuberant Ctags" (Yes, etags too.) and it is used instead of emacs' etags. (GPL, available at http://ctags.sourceforge.net.)

Exuberant Ctags can be extended to look for other things via regular expression. It is a wonderful thing!

I can now look for tags in my shell code to by running:
    etags --langdef=shell --regex-shell='/function [_[:alnum:]]+/[_[:alnum:]]+/' --language-force=shell
(Unfortunate side-effect: That can also pick up comments, so I also have to fix things:
    sed -n -e '/#/d' -ep < TAGS > TTT && mv TTT TAGS
Oh, well.)
Shell programming is suddenly almost pleasant!

,Doug


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steinar Bang  
View profile  
 More options Oct 19 2012, 3:55 am
Newsgroups: gnu.emacs.help
From: Steinar Bang <s...@dod.no>
Date: Fri, 19 Oct 2012 09:55:07 +0200
Local: Fri, Oct 19 2012 3:55 am
Subject: Re: IDE versus emacs

>>>>> Eli Zaretskii <e...@gnu.org>:
> At least in C and C++, tags never miss a definition for me.  My only
> problem with tags is that they sometimes show me more definitions
> other than what I had in mind that match the symbol I type, either
> because of case insensitivity or because of partial matches.

Can tags filter out those symbols that would match what you're typing,
but aren't reachable from the point in the code where you are typing?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sohail Somani  
View profile  
 More options Oct 19 2012, 12:28 pm
Newsgroups: gnu.emacs.help
From: Sohail Somani <soh...@taggedtype.net>
Date: Fri, 19 Oct 2012 12:27:47 -0400
Local: Fri, Oct 19 2012 12:27 pm
Subject: Re: IDE versus emacs
On 19/10/2012 3:55 AM, Steinar Bang wrote:

>>>>>> Eli Zaretskii <e...@gnu.org>:

>> At least in C and C++, tags never miss a definition for me.  My only
>> problem with tags is that they sometimes show me more definitions
>> other than what I had in mind that match the symbol I type, either
>> because of case insensitivity or because of partial matches.

> Can tags filter out those symbols that would match what you're typing,
> but aren't reachable from the point in the code where you are typing?

No. tags is mostly horrible. I can only use it for finding definitions
and even that, only sometimes. Modern C++ codebases (lots of templates)
just do not do well with tags.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 19 2012, 12:42 pm
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Fri, 19 Oct 2012 18:42:23 +0200
Local: Fri, Oct 19 2012 12:42 pm
Subject: Re: IDE versus emacs

> From: Steinar Bang <s...@dod.no>
> Date: Fri, 19 Oct 2012 09:55:07 +0200

> >>>>> Eli Zaretskii <e...@gnu.org>:

> > At least in C and C++, tags never miss a definition for me.  My only
> > problem with tags is that they sometimes show me more definitions
> > other than what I had in mind that match the symbol I type, either
> > because of case insensitivity or because of partial matches.

> Can tags filter out those symbols that would match what you're typing,
> but aren't reachable from the point in the code where you are typing?

I don't understand the question.  Tags don't "match symbols", they
show you the definition of the symbol.  That definition is not related
to scope.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Drew Adams  
View profile  
 More options Oct 19 2012, 1:23 pm
Newsgroups: gnu.emacs.help
From: "Drew Adams" <drew.ad...@oracle.com>
Date: Fri, 19 Oct 2012 10:22:39 -0700
Local: Fri, Oct 19 2012 1:22 pm
Subject: RE: IDE versus emacs

> No. tags is mostly horrible. I can only use it for finding
> definition and even that, only sometimes. Modern C++
> codebases (lots of templates) just do not do well with tags.

Not to disagree, but I would just like to point out where (I think) the real
problem is.  It is not with the Emacs tags mechanism or with the ability to look
up and navigate among tags.  It is with the generation of the TAGS file.

Emacs tags can really be anything at all.  The mechanism is quite general.  The
term "definition" is appropriate for most existing tags: what is indexed are in
fact definitions of functions, structs, whatever.

But that need not be the case.  Really, anything at all can be indexed.  And
tags need not even be limited to programming languages - you could tag a
thesaurus or Shakespeare's works in various ways, if you wanted to.

So what's needed (again, just trying to clarify) are programs to generate tags
(i.e. a TAGS file) that are appropriate for your use.  No doubt the existing
tag-generating programs (ctags, etags, ...) are too limited at present to index
the kinds of things you and others would like.

That's where I think the problem lies.  And guess what?  AFAIK, that has very
little to do with Emacs (see below).

Think of that as an opportunity (for Someone(TM)) to write a program that
generates a more useful TAGS file for your context/environment.  Once that's
done, I expect that you will find the existing Emacs tags mechanism and
navigation among your (appropriate) tags to be satisfactory.

Yes, there are other limitations, which you hinted at by mentioning wanting to
limit searches based on your current context.  There is currently no way AFAIK
to filter a set of candidate tags to those you might consider appropriate based
on where you are currently.

But that could be done, and it probably would not be difficult to do, depending
on precisely what you mean.  It is trivial to get hold of all of the tags
matching your input and filter those - you just need to be able to define that
filtering, based on your context and what you mean/want.  That, at least, is an
Emacs-Lisp job, unlike the rest of what I expect is needed for you.

(Of course, prefiltering, i.e., limiting the tags to search before matching your
input (presumably for better performance), could be more involved.)

One design limitation of the tags mechanism is that a TAGS file is a static
snapshot, which might not be up-to-date when you use it.  Navigating to existing
tag locations is typically not a problem, even if the file is not up-to-date.
But being out of date means that it does not index thingies that were created
after the file was generated, obviously.  

This is an inherent limitation, but of course the TAGS file can be regenerated
on demand, provided users have the program to do so.

The Emacs tags mechanism is pretty good, I think.  The main thing that's missing
for you is an up-to-date program that generates tags for the kinds of things you
are interested in.

That really has little to do with Emacs itself (depending on one's point of
view), and it just awaits some interested programmer to get 'er done.

To do that requires knowledge of your programming language (syntax, and
semantics to some extent).  And it requires general programming knowledge to
write the program (e.g. a program somewhat like etags).  And it requires
knowledge of the TAGS file structure.  And it requires some time and motivation.

But AFAIK it does not really require any knowledge of Emacs or Emacs Lisp.
That's why I say that it in fact has little to do with Emacs itself.

Of course, Emacs _users_ like yourself will be grateful, once it's done.  Since
we see such complaints here from time to time, perhaps this task would make a
good school, or summer of code, project.  Dunno.

One part of the task would be deciding just what it is that you would like to
index, for what languages, etc.  IOW, specify the requirements.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sohail Somani  
View profile  
 More options Oct 19 2012, 1:40 pm
Newsgroups: gnu.emacs.help
From: Sohail Somani <soh...@taggedtype.net>
Date: Fri, 19 Oct 2012 13:40:30 -0400
Local: Fri, Oct 19 2012 1:40 pm
Subject: Re: IDE versus emacs
On 19/10/2012 1:22 PM, Drew Adams wrote:

> One design limitation of the tags mechanism is that a TAGS file is a static
> snapshot, which might not be up-to-date when you use it.  Navigating to existing
> tag locations is typically not a problem, even if the file is not up-to-date.
> But being out of date means that it does not index thingies that were created
> after the file was generated, obviously.

I agree with everything you have said and here is what I do to keep my
TAGS file up to date:

   http://paste.lisp.org/display/132935

It requires the use of prosjekt. When the project is opened, TAGS are
re-generated and whenever a file is saved, that TAGS file is updated.

Good enough for me most of the time, but yeah, it would be beyond
awesome if Someone (TM) would use clang or something that understands
C++ better to generate the TAGS files...

Sohail


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brandon Betances  
View profile  
 More options Oct 19 2012, 1:54 pm
Newsgroups: gnu.emacs.help
From: Brandon Betances <syrinx.optimi...@gmail.com>
Date: Fri, 19 Oct 2012 13:54:01 -0400
Local: Fri, Oct 19 2012 1:54 pm
Subject: Re: IDE versus emacs

> Good enough for me most of the time, but yeah, it would be beyond awesome

if Someone (TM) would use clang or something that understands C++ better to
generate the TAGS

Sounds like you have a lot of work to do.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom  
View profile  
 More options Oct 20 2012, 2:02 am
Newsgroups: gnu.emacs.help
From: Tom <adatgyu...@gmail.com>
Date: Sat, 20 Oct 2012 06:01:29 +0000 (UTC)
Local: Sat, Oct 20 2012 2:01 am
Subject: Re: IDE versus emacs
Sohail Somani <sohail <at> taggedtype.net> writes:

> Good enough for me most of the time, but yeah, it would be beyond
> awesome if Someone (TM) would use clang or something that understands
> C++ better to generate the TAGS files...

As an alternative you can give a try to eclim. It supports the
following features for C++:

Context sensitive code completion.
Searching.
Source code validation.

http://eclim.org/features.html

AFAIK the emacs eclim interface supports only Java currently,
but if you know Elisp then it should not be hard to add
C++ too (the infrastructure is there, you only have to add
the calls for the C++ commands of the eclim interface).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jai Dayal  
View profile  
 More options Oct 20 2012, 10:07 am
Newsgroups: gnu.emacs.help
From: Jai Dayal <dayals...@gmail.com>
Date: Sat, 20 Oct 2012 10:07:13 -0400
Local: Sat, Oct 20 2012 10:07 am
Subject: Re: IDE versus emacs

Isn't this for Vim????


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom  
View profile  
 More options Oct 20 2012, 10:55 am
Newsgroups: gnu.emacs.help
From: Tom <adatgyu...@gmail.com>
Date: Sat, 20 Oct 2012 14:55:19 +0000 (UTC)
Local: Sat, Oct 20 2012 10:55 am
Subject: Re: IDE versus emacs
Jai Dayal <dayalsoap <at> gmail.com> writes:

> Isn't this for Vim????

Originally it is, but the frontend is separated from the backend,
so any editor can implement a frontend for it.

Here's the emacs frontend:

https://github.com/senny/emacs-eclim

It is quite usable, especially for Java, but it does not implement
all the features of eclim, so it can even be better if people
help out.

The emacs-eclim authors welcome contributions, see the bottom of
the page at the above link.

Here are the full list of eclim features from which only the Java-related
things are implemented in emacs and not all of those either, so those who
know elisp can help making emacs-eclim better:

http://eclim.org/features.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jai Dayal  
View profile  
 More options Oct 20 2012, 11:07 am
Newsgroups: gnu.emacs.help
From: Jai Dayal <dayals...@gmail.com>
Date: Sat, 20 Oct 2012 11:07:23 -0400
Local: Sat, Oct 20 2012 11:07 am
Subject: Re: IDE versus emacs

Okay, eclim looks interesting.

All I really want is the following:

Our group has a set of C "projects", and some of them build off of each
other (for example, there's ffs, atl, genthread, and evpath requires the
previous 3.. something like that).  When i come across a struct or
something, I just want to be able to jump to it.. I used to be able to do
it (only within a specific project though.. evpath could only jump to
evpath things), but is there a way via CEDET and semantic to do this?  I
feel like I should be able to set it up, I just don't know how...

Jai


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steinar Bang  
View profile  
 More options Nov 2 2012, 4:55 am
Newsgroups: gnu.emacs.help
From: Steinar Bang <s...@dod.no>
Date: Fri, 02 Nov 2012 09:27:44 +0100
Local: Fri, Nov 2 2012 4:27 am
Subject: Re: IDE versus emacs

>>>>> Eli Zaretskii <e...@gnu.org>:
>> From: Steinar Bang <s...@dod.no>
>> Can tags filter out those symbols that would match what you're
>> typing, but aren't reachable from the point in the code where you are
>> typing?
> I don't understand the question.  Tags don't "match symbols", they
> show you the definition of the symbol.  That definition is not related
> to scope.

I was thinking of something along the lines of what eclipse does with
Java files: when you type, it suggests symbols from what's currently
available (depending on scope and what you are doing) and what matches
what you have typed so far.

I have used tags for navigation only, not for helping create new code.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »