caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] exuberant ctags for ocaml ?
@ 2002-11-08 23:20 Alan Schmitt
  2002-11-09 17:41 ` Michal Moskal
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Schmitt @ 2002-11-08 23:20 UTC (permalink / raw)
  To: caml-list

Hi,

I was wondering if someone uses exuberant ctags with ocaml ...

Thanks,

Alan

-- 
The hacker: someone who figured things out and made something cool happen.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Caml-list] exuberant ctags for ocaml ?
  2002-11-08 23:20 [Caml-list] exuberant ctags for ocaml ? Alan Schmitt
@ 2002-11-09 17:41 ` Michal Moskal
  2002-11-10 12:14   ` Ava Arachne Jarvis
                     ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Michal Moskal @ 2002-11-09 17:41 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: caml-list

On Fri, Nov 08, 2002 at 06:20:27PM -0500, Alan Schmitt wrote:
> Hi,
> 
> I was wondering if someone uses exuberant ctags with ocaml ...

I'm using OCaml-otags, that, with little patche, works very nice 
with vi. Another patch is need to compile it with ocaml 3.05+.
You can find the patches in question in:

ftp://ftp.nest.pld.org.pl/test/SRPMS/ocaml-otags-3.04.3-2.src.rpm

(or in cvs.pld.org.pl).

-- 
: Michal Moskal ::::: malekith/at/pld-linux.org :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Caml-list] exuberant ctags for ocaml ?
  2002-11-09 17:41 ` Michal Moskal
@ 2002-11-10 12:14   ` Ava Arachne Jarvis
       [not found]   ` <20021110121939.GC711@dan0032.urh.uiuc.edu>
  2002-11-10 23:03   ` Alan Schmitt
  2 siblings, 0 replies; 10+ messages in thread
From: Ava Arachne Jarvis @ 2002-11-10 12:14 UTC (permalink / raw)
  To: caml-list

[Michal Moskal - Sat,  9 Nov 2002 01:41:36 PM CST]
> On Fri, Nov 08, 2002 at 06:20:27PM -0500, Alan Schmitt wrote:
> > I was wondering if someone uses exuberant ctags with ocaml ...
> 
> I'm using OCaml-otags, that, with little patche, works very nice 
> with vi. Another patch is need to compile it with ocaml 3.05+.
> You can find the patches in question in:
> 
> ftp://ftp.nest.pld.org.pl/test/SRPMS/ocaml-otags-3.04.3-2.src.rpm

I added, I believe, sufficient string escaping (escaping '*' seems
unnecessary, and you don't need to escape '^' since they occur after 
the initial '^' in the format string used to print a line in the tag
file, you don't even need to escape []...).  

(vi.ml):
------------------------------------------------
  let escape s = 
    let part_es = String.escaped s in
    let buffer = Buffer.create (String.length part_es) in 
    String.iter (fun c -> 
                    match c with
                    | '.' -> Buffer.add_string buffer "\\."
                    | '$' -> Buffer.add_string buffer "\\$"
                    | _ -> Buffer.add_char buffer c)
                 part_es; 
    Buffer.contents buffer


  (* FIXME: escape ^$/* and probably few more things with \ *)
  let line filename tagname linebeg =
    let etag =
      Printf.sprintf "%s\t%s\t/^%s$/;\n" tagname filename (escape linebeg) in
    etag, (String.length etag)
------------------------------------------------

Also, once you get the patches finished up, remember to submit them to the
author of otags.  :)


-- 
| The one day you'd sell your soul for something, souls are a glut.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Caml-list] exuberant ctags for ocaml ?
       [not found]     ` <20021110130849.GA9168@roke.freak>
@ 2002-11-10 19:07       ` Ava Arachne Jarvis
  2002-11-11 21:21         ` Michal Moskal
  0 siblings, 1 reply; 10+ messages in thread
From: Ava Arachne Jarvis @ 2002-11-10 19:07 UTC (permalink / raw)
  To: caml-list; +Cc: Michal Moskal

[Michal Moskal - Sun, 10 Nov 2002 07:09:21 AM CST]
> I think it's safer to escape everything. For example, consider:
> 
>   let f x y = [x * y]
> 
> So I did it :-) src.rpm available in the same place with release 3.

No, don't do that.  It kills searching -- vi refuses to find the tag.
Apparently a more restricted search is used when searching for tags.

Also, source rpms are a bit annoying for those of us who don't use an
RPM-based distribution.  A tarball would be nice to have on the side as
well, or at least downloadable patches.


> Hm.. I tried, but I failed to contact them. There is no email in source
> distribution, and I had some problems with <moninjf@multimania.com>.
> However I'm going to try again.

Okay.


-- 
| One of my advisors will be an average five-year-old child. Any
| flaws in my plan that he is able to spot will be corrected before
| implementation.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Caml-list] exuberant ctags for ocaml ?
  2002-11-09 17:41 ` Michal Moskal
  2002-11-10 12:14   ` Ava Arachne Jarvis
       [not found]   ` <20021110121939.GC711@dan0032.urh.uiuc.edu>
@ 2002-11-10 23:03   ` Alan Schmitt
  2 siblings, 0 replies; 10+ messages in thread
From: Alan Schmitt @ 2002-11-10 23:03 UTC (permalink / raw)
  To: caml-list

* Michal Moskal (malekith@pld-linux.org) wrote:
> On Fri, Nov 08, 2002 at 06:20:27PM -0500, Alan Schmitt wrote:
> > Hi,
> > 
> > I was wondering if someone uses exuberant ctags with ocaml ...
> 
> I'm using OCaml-otags, that, with little patche, works very nice 
> with vi. Another patch is need to compile it with ocaml 3.05+.
> You can find the patches in question in:
> 
> ftp://ftp.nest.pld.org.pl/test/SRPMS/ocaml-otags-3.04.3-2.src.rpm
> 
> (or in cvs.pld.org.pl).

Thanks, it installed ... Now I just need to hack taglist.vim to make it
work with otags ;-)

Alan 

-- 
The hacker: someone who figured things out and made something cool happen.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Caml-list] exuberant ctags for ocaml ?
  2002-11-10 19:07       ` Ava Arachne Jarvis
@ 2002-11-11 21:21         ` Michal Moskal
  0 siblings, 0 replies; 10+ messages in thread
From: Michal Moskal @ 2002-11-11 21:21 UTC (permalink / raw)
  To: Ava Arachne Jarvis; +Cc: caml-list

On Sun, Nov 10, 2002 at 01:07:55PM -0600, Ava Arachne Jarvis wrote:
> [Michal Moskal - Sun, 10 Nov 2002 07:09:21 AM CST]
> > I think it's safer to escape everything. For example, consider:
> > 
> >   let f x y = [x * y]
> > 
> > So I did it :-) src.rpm available in the same place with release 3.
> 
> No, don't do that.  It kills searching -- vi refuses to find the tag.
> Apparently a more restricted search is used when searching for tags.

Yes, you're right. After reading through the vim docs I found that tags
are searched with 'magic' option off, which means only '^' and '$' are
magic. '.' is not. Also '\' as quote character and '/' as a search string 
delimeter needs to be quoted. Therefore current version of patch quotes
any of '$', '\', '/', which seems to work fine.

> Also, source rpms are a bit annoying for those of us who don't use an
> RPM-based distribution.  A tarball would be nice to have on the side as
> well, or at least downloadable patches.

Sure, please check ftp://ftp.kernel.pl/pub/People/malekith/ocaml/ for
patches and patched tarball. Please contact me in case of problems.

-- 
: Michal Moskal ::::: malekith/at/pld-linux.org :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [Caml-list] exuberant ctags for ocaml ?
  2002-11-14  8:00   ` Cuihtlauac ALVARADO
@ 2002-11-14 14:39     ` Mattias Waldau
  0 siblings, 0 replies; 10+ messages in thread
From: Mattias Waldau @ 2002-11-14 14:39 UTC (permalink / raw)
  To: 'Cuihtlauac ALVARADO', 'Michal Moskal'
  Cc: alan.schmitt, caml-list

otags works nicely on Linux, but using cygwin 3.06 I get

Fatal error: exception Invalid_argument("String.sub")

It worked a couple of month ago (probably 3.04)

Am I the only one with this problem?

> -----Original Message-----
> From: owner-caml-list@pauillac.inria.fr 
> [mailto:owner-caml-list@pauillac.inria.fr] On Behalf Of 
> Cuihtlauac ALVARADO
> Sent: Thursday, November 14, 2002 9:01 AM
> To: Michal Moskal
> Cc: alan.schmitt@polyechnique.org; caml-list@inria.fr
> Subject: Re: [Caml-list] exuberant ctags for ocaml ?
> 
> 
> Latest release :
> 
> http://perso.wanadoo.fr/cuihtlauac.alvarado/otags-3.06.5.tar.gz
> 
> vi & stdout patches should be ok.
> 
> On Tue, Nov 12, 2002 at 09:25:09PM +0100, Michal Moskal wrote:
> > On Tue, Nov 12, 2002 at 01:18:29PM +0100, Cuihtlauac ALVARADO wrote:
> > > Hi,
> > > 
> > > I'm sorry to realize a bit late that we forget to release for a 
> > > while, you'll find an up to date version of otags here:
> > > 
> > >   http://perso.wanadoo.fr/cuihtlauac.alvarado/otags-3.06.2.tar.gz
> > > 
> > > I've applided Michal Moskal patch (thanks for helping).
> > 
> > Unfortunetely this is wrong version of this patch, it 
> quotes too much 
> > (as pointed by Ava Arachne Jarvis). Attached you'll find little fix 
> > against 3.06.2.
> > 
> > --
> > : Michal Moskal ::::: malekith/at/pld-linux.org :  GCS 
> {C,UL}++++$ a? !tv
> > : PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- 
> {b++,e}>+++ h
> 
> > diff -ur otags-3.06.2-/vi.ml otags-3.06.2/vi.ml
> > --- otags-3.06.2-/vi.ml	Tue Nov 12 21:20:55 2002
> > +++ otags-3.06.2/vi.ml	Tue Nov 12 21:21:07 2002
> > @@ -62,7 +62,7 @@
> >      let buffer = Buffer.create (String.length part_es) in
> >      String.iter (fun c ->
> >                     match c with
> > -                   | '.' | '$' | '*' | '[' | ']' | '/' | '\\' -> 
> > +                   | '$' | '/' | '\\' ->
> >                         Buffer.add_char buffer '\\';
> >                         Buffer.add_char buffer c
> >                     | _ -> Buffer.add_char buffer c)
> 
> 
> -- 
> Cuihtlauac ALVARADO - France Telecom R&D - DTL/TAL
> 2, avenue Pierre Marzin - 22307 Lannion - France
> Tel: +33 2 96 05 32 73 - Fax: +33 2 96 05 39 45
> -------------------
> To unsubscribe, mail caml-list-request@inria.fr Archives: 
http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs
FAQ: http://caml.inria.fr/FAQ/ Beginner's list:
http://groups.yahoo.com/group/ocaml_beginners

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Caml-list] exuberant ctags for ocaml ?
  2002-11-12 20:25 ` Michal Moskal
@ 2002-11-14  8:00   ` Cuihtlauac ALVARADO
  2002-11-14 14:39     ` Mattias Waldau
  0 siblings, 1 reply; 10+ messages in thread
From: Cuihtlauac ALVARADO @ 2002-11-14  8:00 UTC (permalink / raw)
  To: Michal Moskal; +Cc: alan.schmitt, caml-list

Latest release :

http://perso.wanadoo.fr/cuihtlauac.alvarado/otags-3.06.5.tar.gz

vi & stdout patches should be ok.

On Tue, Nov 12, 2002 at 09:25:09PM +0100, Michal Moskal wrote:
> On Tue, Nov 12, 2002 at 01:18:29PM +0100, Cuihtlauac ALVARADO wrote:
> > Hi,
> > 
> > I'm sorry to realize a bit late that we forget to release for a while,
> > you'll find an up to date version of otags here:
> > 
> >   http://perso.wanadoo.fr/cuihtlauac.alvarado/otags-3.06.2.tar.gz
> > 
> > I've applided Michal Moskal patch (thanks for helping).
> 
> Unfortunetely this is wrong version of this patch, it quotes too much
> (as pointed by Ava Arachne Jarvis). Attached you'll find little fix
> against 3.06.2.
> 
> -- 
> : Michal Moskal ::::: malekith/at/pld-linux.org :  GCS {C,UL}++++$ a? !tv
> : PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h

> diff -ur otags-3.06.2-/vi.ml otags-3.06.2/vi.ml
> --- otags-3.06.2-/vi.ml	Tue Nov 12 21:20:55 2002
> +++ otags-3.06.2/vi.ml	Tue Nov 12 21:21:07 2002
> @@ -62,7 +62,7 @@
>      let buffer = Buffer.create (String.length part_es) in
>      String.iter (fun c ->
>                     match c with
> -                   | '.' | '$' | '*' | '[' | ']' | '/' | '\\' -> 
> +                   | '$' | '/' | '\\' -> 
>                         Buffer.add_char buffer '\\';
>                         Buffer.add_char buffer c
>                     | _ -> Buffer.add_char buffer c)


-- 
Cuihtlauac ALVARADO - France Telecom R&D - DTL/TAL
2, avenue Pierre Marzin - 22307 Lannion - France
Tel: +33 2 96 05 32 73 - Fax: +33 2 96 05 39 45
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Caml-list] exuberant ctags for ocaml ?
  2002-11-12 12:18 Cuihtlauac ALVARADO
@ 2002-11-12 20:25 ` Michal Moskal
  2002-11-14  8:00   ` Cuihtlauac ALVARADO
  0 siblings, 1 reply; 10+ messages in thread
From: Michal Moskal @ 2002-11-12 20:25 UTC (permalink / raw)
  To: Cuihtlauac ALVARADO; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

On Tue, Nov 12, 2002 at 01:18:29PM +0100, Cuihtlauac ALVARADO wrote:
> Hi,
> 
> I'm sorry to realize a bit late that we forget to release for a while,
> you'll find an up to date version of otags here:
> 
>   http://perso.wanadoo.fr/cuihtlauac.alvarado/otags-3.06.2.tar.gz
> 
> I've applided Michal Moskal patch (thanks for helping).

Unfortunetely this is wrong version of this patch, it quotes too much
(as pointed by Ava Arachne Jarvis). Attached you'll find little fix
against 3.06.2.

-- 
: Michal Moskal ::::: malekith/at/pld-linux.org :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h

[-- Attachment #2: ocaml-otags-vi-fix.patch --]
[-- Type: text/plain, Size: 547 bytes --]

diff -ur otags-3.06.2-/vi.ml otags-3.06.2/vi.ml
--- otags-3.06.2-/vi.ml	Tue Nov 12 21:20:55 2002
+++ otags-3.06.2/vi.ml	Tue Nov 12 21:21:07 2002
@@ -62,7 +62,7 @@
     let buffer = Buffer.create (String.length part_es) in
     String.iter (fun c ->
                    match c with
-                   | '.' | '$' | '*' | '[' | ']' | '/' | '\\' -> 
+                   | '$' | '/' | '\\' -> 
                        Buffer.add_char buffer '\\';
                        Buffer.add_char buffer c
                    | _ -> Buffer.add_char buffer c)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Caml-list] exuberant ctags for ocaml ?
@ 2002-11-12 12:18 Cuihtlauac ALVARADO
  2002-11-12 20:25 ` Michal Moskal
  0 siblings, 1 reply; 10+ messages in thread
From: Cuihtlauac ALVARADO @ 2002-11-12 12:18 UTC (permalink / raw)
  To: Michal Moskal, caml-list

[-- Attachment #1: Type: text/plain, Size: 1569 bytes --]

Hi,

I'm sorry to realize a bit late that we forget to release for a while,
you'll find an up to date version of otags here:

  http://perso.wanadoo.fr/cuihtlauac.alvarado/otags-3.06.2.tar.gz

I've applided Michal Moskal patch (thanks for helping).

If someone have a patch and/or a feature request and/or a bug fix,
please mail me and jeanfrancois.monin@francetelecom.com, one of us
will handle. I can release old versions for Ocaml 3.04 or 3.05 if
needed.

Hope it helps

On Sat, Nov 09, 2002 at 06:41:02PM +0100, Michal Moskal wrote:
> On Fri, Nov 08, 2002 at 06:20:27PM -0500, Alan Schmitt wrote:
> > Hi,
> > 
> > I was wondering if someone uses exuberant ctags with ocaml ...
> 
> I'm using OCaml-otags, that, with little patche, works very nice 
> with vi. Another patch is need to compile it with ocaml 3.05+.
> You can find the patches in question in:
> 
> ftp://ftp.nest.pld.org.pl/test/SRPMS/ocaml-otags-3.04.3-2.src.rpm
> 
> (or in cvs.pld.org.pl).
> 
> -- 
> : Michal Moskal ::::: malekith/at/pld-linux.org :  GCS {C,UL}++++$ a?
!tv
> : PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}--
{b++,e}>+++ h
> -------------------
> To unsubscribe, mail caml-list-request@inria.fr Archives:
http://caml.inria.fr
> Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ:
http://caml.inria.fr/FAQ/
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

-- 
Cuihtlauac ALVARADO - France Telecom R&D - DTL/TAL
2, avenue Pierre Marzin - 22307 Lannion - France
Tel: +33 2 96 05 32 73 - Fax: +33 2 96 05 39 45

[-- Attachment #2: Type: text/html, Size: 3284 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-11-14 14:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-08 23:20 [Caml-list] exuberant ctags for ocaml ? Alan Schmitt
2002-11-09 17:41 ` Michal Moskal
2002-11-10 12:14   ` Ava Arachne Jarvis
     [not found]   ` <20021110121939.GC711@dan0032.urh.uiuc.edu>
     [not found]     ` <20021110130849.GA9168@roke.freak>
2002-11-10 19:07       ` Ava Arachne Jarvis
2002-11-11 21:21         ` Michal Moskal
2002-11-10 23:03   ` Alan Schmitt
2002-11-12 12:18 Cuihtlauac ALVARADO
2002-11-12 20:25 ` Michal Moskal
2002-11-14  8:00   ` Cuihtlauac ALVARADO
2002-11-14 14:39     ` Mattias Waldau

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 NNTP newsgroup(s).