Re: [cssed-devel] Re: Plugin problems in BSD and MacOsX
Brought to you by:
iagorubio
From: <mic...@ea...> - 2004-09-10 17:52:32
|
Le 10 sept. 2004, =E0 18:12, Iago Rubio a =E9crit : > On Fri, 2004-09-10 at 17:56, Iago Rubio wrote: >> I'm even thinking about two plugins one for ctags and other for >> exuberant ctags. > > Ok, I think it will be the approach. > > I installed exuberant ctags on BSD and the plugin worked fine with a > small patch to rename ctags to exctags in BSD systems, to avoid = clashes > between both programs. > > I was wondering how it works in OsX, as it does not changes the = package > name but uses something called "update-alternatives". > > Michelle any idea ?? > http://fink.sourceforge.net/pdb/package.php/exuberant-ctags > > It's maintained by pogma, can you ask him how we can know the ctags > binary is exuberant ctags or not ? On mac, you can have exuberant-ctags or ctags embedded into emacs and=20 xemacs, so for me the binary should be exuberant ctags, as I don't see=20= a way to use the ctags embedded into xemacs or emacs. The alternative=20 allows to list all packages which uses ctags and defines a priority.=20 Then a symlink is created to the package which has the higher priority.=20= The user can change it as he wants. Example: update-alternatives --display ctags ctags - status is manual. link currently points to /sw/bin/ctags-exuberant /sw/bin/ctags.xemacs - priority 60 slave ctags.1: /sw/share/man/man1/ctags.1.xemacs /sw/bin/ctags.emacs21 - priority 40 slave ctags.1: /sw/share/man/man1/ctags.1.emacs21 /sw/bin/ctags-exuberant - priority 70 slave ctags.1: /sw/share/man/man1/ctags.1-exuberant Current `best' version is /sw/bin/ctags-exuberant. > > The ctags plugin is to come, the current one will be only for = exuberant > ctags and will be - surely - renamed. > > The idea on this plugin, was to use the exuberant ctags support for = web > languages as PHP, HTML and much others (as Java, Javascript, Perl, sh, > python, Makefiles ... ) in cssed. > > ITOH I'm writing support for CSS tags on exuberant ctags, but can not > bind it to ctags. > > Using just the ctags program we can not search anything but C source > code, that's not really useful for cssed. > > Am I wrong with this ? > > Does the ctags program find any other tag than C tags ? > > I've got in mind it can search throught Lisp, Fortran,Pascal, C, lex=20= > and > yacc sources. > > Nothing apropiated to use in cssed. You can maybe search toutdoux and dtags, dtags is an interface for=20 using ctags for xsltproc within toutdoux. It can give you hints. I've patched the line in configure this way, then it works: dnl This plugin needs the ctags program dnl AC_CHECK_PROG([CTAGS], [ctags], [no-ctags]) dnl Exuberant ctags AC_MSG_CHECKING(for Exuberant Ctags) if ctags-exuberant --version > /dev/null 2>&1; then AC_MSG_RESULT(yes)=09 ctags=3Dyes else AC_MSG_ERROR(ctags-exuberant software not found) ctags=3Dno Mich=E8le <http://micmacfr.homeunix.org> |