unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eric Ludlam <eludlam@mathworks.com>
Subject: Re: ECB for LaTeX?
Date: 11 Jun 2003 10:47:17 -0400	[thread overview]
Message-ID: <ko1xy0hdsa.fsf@ludlamelinux.dhcp.mathworks.com> (raw)
In-Reply-To: uy909ca6y.fsf@sdm.de

>>> Klaus Berndl <klaus.berndl@sdm.de> seems to think that:
>>  
>> > I have decided to go the latter approach because then ECB is independent
>> > from speedbar internals and if these are changed....
>>  
>>  yes... ?  if these are changed...what ?  You mean you'd rather not benefit
>>  from the enhancements brought by those changes ?  I don't understand.
>
>The other side... ECB can only display tokens in its method-buffer if the
>tokens are semantic-token, i.h. they must offer the semantic-API to get the
>informations to display. speedbar on the other side has well working and well
>tested code to use imenu and etags to parse files. But then speedbar displays
>these imenu and etags tokens in it's own proprietary display engine.
>
>Conclusion: ECB uses the speedbar code for generating imenu- and etags tokens
>but then ECB has to transform these tokens itself into the semantic-format.
>
>Now if Eric changes the internal format of the tokens speedbar gets with imenu
>and etags and if ECB uses this internal code then probably the
>ECB-transformation-engine (transforming to semantic-format) will be broken.
>
>Is this more understandable?
>
>But maybe Eric could extract the imenu and etags code from speedbar, put on
>top a well defined API and make it therefore less internal...then ECB can
>completely be based on this code.

The mechanism speedbar uses for gathering tags to display is not
secret or internal.  It is documented (perhaps no too well) and public
so that it is easy to write new tag generators.

If you start with `speedbar-dynamic-tags-function-list', you will see
some doc on how to add more taggers that sb-texinfo uses this to
create a new custom tag generator for hierarchical tag list as opposed
to the flat sorted list created by imenu.

The only problem is that when you add to the list, you also provide a
function that will display those tags in speedbar, but most always use
`speedbar-insert-generic-list' which is a pretty simple translator.
Only the semantic speedbar support does something special, and ECB
already has that one covered. ;)

Eric

      reply	other threads:[~2003-06-11 14:47 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-13 13:04 ECB for LaTeX? Kai Großjohann
2003-05-13 13:31 ` Phillip Lord
2003-05-13 16:13   ` Klaus Berndl
2003-05-13 16:19     ` Klaus Berndl
2003-05-13 18:59       ` Martin Stemplinger
2003-05-14  9:04         ` Klaus Berndl
2003-05-15 19:16           ` Martin Stemplinger
2003-05-13 16:30     ` Phillip Lord
2003-05-13 20:01     ` Kai Großjohann
2003-05-14  9:04       ` Klaus Berndl
2003-05-14 19:23         ` Kai Großjohann
2003-05-26  7:21 ` Kai Großjohann
2003-05-26 15:07   ` Stefan Monnier
2003-05-28  9:14     ` Kai Großjohann
2003-05-28 11:13       ` Asmund Ostvold
2003-05-28 16:48         ` Kai Großjohann
2003-06-10 11:30   ` Klaus Berndl
2003-06-10 13:51     ` Stefan Monnier
2003-06-10 14:17       ` Eric Ludlam
2003-06-10 14:27         ` Stefan Monnier
2003-06-10 14:36       ` Klaus Berndl
2003-06-10 15:09         ` Stefan Monnier
2003-06-11  8:03           ` Klaus Berndl
2003-06-11 14:47             ` Eric 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=ko1xy0hdsa.fsf@ludlamelinux.dhcp.mathworks.com \
    --to=eludlam@mathworks.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).