all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Eric M. Ludlam" <eric@siege-engine.com>
To: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: CEDET update
Date: Wed, 23 Sep 2009 07:43:44 -0400	[thread overview]
Message-ID: <1253706224.10118.120.camel@projectile.siege-engine.com> (raw)
In-Reply-To: <87k4zqq7x0.fsf@lola.goethe.zz>

On Wed, 2009-09-23 at 12:20 +0200, David Kastrup wrote:
> Juri Linkov <juri@jurta.org> writes:
> 
> >>   > 2. I would like to make it possible to enable the different parts of
> >>   >    CEDET using the menu-bar.  However, CEDET offers too many knobs to
> >>   >    fit in any of our existing menus, so it probably needs its own
> >>   >    top-level menu.  One possibility is to add a "toggle CEDET" menu item
> >>   >    to the Tools menu, which adds or removes a "CEDET" top-level menu.
> >>   >    But this is not "standard menu-bar behavior"-ish.  Thoughts?
> >>
> >> If you do this, please use a more generic name rather than "toggle
> >> CEDET", that means nothing for most users...
> >
> > "Enable IDE"?
> 
> Emacs _is_ an IDE.
> 
> Maybe "IDE mode".  I don't know which major modes are affected by this;
> it may make sense to offer this just in CC modes depending on that.
> 

I would guess it depends on how CEDET is "integrated" into Emacs.  If
CEDET is like GNUs, then users would need something like "Enable Project
features (CEDET)", similar to "Read Net News (Gnus)".

If the pieces of CEDET should be infrastructure (which is how I tried to
build it), then it is a mish-mash of features.  EDE enables detection of
"projects", and a "Project" menu.  I did my best to make "EDE Global
mode" be transparent when not in a project.  Perhaps there are some
tweaks that could be done so it could be on-by-default/out of the way in
the same way that auto-mode-alist is automatic?

The Semantic pieces are different since there is more of a hit when you
enable parsing of files in idle time, but setting up parsing tables for
major modes is also transparent, and has no affect, other than loading
misc Semantic files.  Perhaps there are tweaks that could be done to
allow that also?  I would imagine over time major-modes would set these
variables up on their own, instead of having Semantic specific features,
so the effect would be the same.

Then there are the things Semantic can make better, such as imenu,
which-func, eldoc (via a different mode), hippie-expand, and commands
like "beginning-of-defun".  That is more of a toggle, since users would
want to choose the old vs new implementation.  This is not really "IDE",
those are just aspects of an IDE.  This goes back to the question of ...
should the buffer parsing mechanisms be considered infrastructure, and
have them all there for general use.  In a lot of ways, having access to
the parsing information is a lot like being able to call 'forward-sexp'.
There is a pile of useful data just waiting to be used to do cool stuff
in a buffer.

I think it is way too early to try and call this infrastructure, but it
could be described as "Enable Experimental Buffer Analysis" or "New Code
Parsing Features" for a release or two while people figure out where it
really belongs.  Major modes could choose to use Semantic parsing
information even if the user doesn't turn on the maintenance
infrastructure, the effects will just be local to a single buffer.

Eric

Eric




      reply	other threads:[~2009-09-23 11:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-22  1:39 CEDET update Chong Yidong
2009-09-22  1:48 ` Nick Roberts
2009-09-22  2:53   ` Chong Yidong
2009-09-22  3:13     ` Nick Roberts
2009-09-22  5:04       ` Chong Yidong
2009-09-23 10:29       ` AW: " Berndl, Klaus
2009-09-23 11:05         ` Nick Roberts
2009-09-23 16:00         ` Chong Yidong
2009-09-24  3:28           ` tree-buffer.el [was Re: AW: CEDET update] Glenn Morris
2009-09-24  7:50             ` AW: " Berndl, Klaus
2009-09-22 11:24     ` CEDET update Eric M. Ludlam
2009-09-22 15:30 ` Dan Nicolaescu
2009-09-23  9:08   ` Juri Linkov
2009-09-23 10:20     ` David Kastrup
2009-09-23 11:43       ` Eric M. Ludlam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1253706224.10118.120.camel@projectile.siege-engine.com \
    --to=eric@siege-engine.com \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.