caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] taggage 1.1
@ 2003-08-26  6:38 Issac Trotts
  2003-08-26 14:59 ` Cuihtlauac ALVARADO
  0 siblings, 1 reply; 5+ messages in thread
From: Issac Trotts @ 2003-08-26  6:38 UTC (permalink / raw)
  To: caml-list

This version fixes the problem I mentioned earlier.  The new version is 
up at


  http://redwood.ucdavis.edu/~issac/taggage-1.1.ml


Version 1.0 has been removed. 


Re: Karl Zilles' question about how taggage compares to otags.  otags 
uses camlp4 macros to convert abstract syntax trees into tag files.  
taggage uses regular expressions, uses no camlp4, and has many fewer 
lines of code. 


- ijt







-------------------
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] 5+ messages in thread

* Re: [Caml-list] taggage 1.1
  2003-08-26  6:38 [Caml-list] taggage 1.1 Issac Trotts
@ 2003-08-26 14:59 ` Cuihtlauac ALVARADO
  2003-08-26 22:09   ` taglet 1.0 (was Re: [Caml-list] taggage 1.1) Issac Trotts
  0 siblings, 1 reply; 5+ messages in thread
From: Cuihtlauac ALVARADO @ 2003-08-26 14:59 UTC (permalink / raw)
  To: Issac Trotts; +Cc: caml-list

Cool, yet another tag generator for ocaml :-) 

Did you experienced trouble with otags for vim? In case you do, just
send me a bug report. Quoting a famous post on this mailing list, it
would make me feel like if I was not :
  student-turned-professional-maker-of-animated-powerpoint-slideshows

BTW, otags 3.06.8 (hopefully the last for 3.06) is there :

  http://perso.rd.francetelecom.fr/alvarado/soft/otags-3.06.8.tar.gz

Includes some fresh patches sent by Chris Hecker and Hendrik Tews,
thanks for contributions.

Ciao.

On Mon, Aug 25, 2003 at 11:38:24PM -0700, Issac Trotts wrote:
> This version fixes the problem I mentioned earlier.  The new version is 
> up at
> 
> 
>  http://redwood.ucdavis.edu/~issac/taggage-1.1.ml
> 
> 
> Version 1.0 has been removed. 
> 
> 
> Re: Karl Zilles' question about how taggage compares to otags.  otags 
> uses camlp4 macros to convert abstract syntax trees into tag files.  
> taggage uses regular expressions, uses no camlp4, and has many fewer 
> lines of code. 

-- 
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] 5+ messages in thread

* taglet 1.0 (was Re: [Caml-list] taggage 1.1)
  2003-08-26 14:59 ` Cuihtlauac ALVARADO
@ 2003-08-26 22:09   ` Issac Trotts
  2003-08-27  8:13     ` Hendrik Tews
  0 siblings, 1 reply; 5+ messages in thread
From: Issac Trotts @ 2003-08-26 22:09 UTC (permalink / raw)
  To: caml-list

Cuihtlauac ALVARADO wrote:

>Cool, yet another tag generator for ocaml :-) 
>
>Did you experienced trouble with otags for vim? In case you do, just
>send me a bug report. Quoting a famous post on this mailing list, it
>would make me feel like if I was not :
>  student-turned-professional-maker-of-animated-powerpoint-slideshows
>
>BTW, otags 3.06.8 (hopefully the last for 3.06) is there :
>
>  http://perso.rd.francetelecom.fr/alvarado/soft/otags-3.06.8.tar.gz
>
>Includes some fresh patches sent by Chris Hecker and Hendrik Tews,
>thanks for contributions.
>
>Ciao.
>
Yes, when I first downloaded otags, I carelessly copied its executable 
to my ~/bin directory without knowing that I also needed to install the 
pr_*.cma files.  When it gave an error message, I was too lazy to track 
down the problem so I wrote my own tagger.

Your message inspired me to try again, so I installed otags the right 
way, using "make install."  It works fine now.

It just occurred to me that it would be nice to have tag files 
containing only module names for .mli files.  If the file you're editing 
contains "List.map" and you want to know what it does, you put your 
cursor on top of "List", press ctrl-] , and then search for map.  This 
will take you to the right place more quickly than digging through a 
bunch of entries for "map" that are in other modules.  Here's an 
implementation:

    http://redwood.ucdavis.edu/~issac/taglet-1.0.tar.gz

- ijt



-------------------
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] 5+ messages in thread

* Re: taglet 1.0 (was Re: [Caml-list] taggage 1.1)
  2003-08-26 22:09   ` taglet 1.0 (was Re: [Caml-list] taggage 1.1) Issac Trotts
@ 2003-08-27  8:13     ` Hendrik Tews
  2003-08-27 11:09       ` Hendrik Tews
  0 siblings, 1 reply; 5+ messages in thread
From: Hendrik Tews @ 2003-08-27  8:13 UTC (permalink / raw)
  To: ijtrotts; +Cc: caml-list

Issac Trotts writes:
   From: Issac Trotts <ijtrotts@ucdavis.edu>
   Date: Tue, 26 Aug 2003 15:09:34 -0700
   Subject: taglet 1.0 (was Re: [Caml-list] taggage 1.1)
   
   It just occurred to me that it would be nice to have tag files 
   containing only module names for .mli files.  If the file you're editing 
   contains "List.map" and you want to know what it does, you put your 
   cursor on top of "List", press ctrl-] , and then search for
   map.  

Have you tried with otags? Otags creates a tag with the module
name for every file it processes. So just do "otags ." and search
for any module name.

Bye,

Hendrik

-------------------
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] 5+ messages in thread

* Re: taglet 1.0 (was Re: [Caml-list] taggage 1.1)
  2003-08-27  8:13     ` Hendrik Tews
@ 2003-08-27 11:09       ` Hendrik Tews
  0 siblings, 0 replies; 5+ messages in thread
From: Hendrik Tews @ 2003-08-27 11:09 UTC (permalink / raw)
  To: ijtrotts, caml-list

[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 540 bytes --]

Hendrik Tews writes:
   From: Hendrik Tews <tews@tcs.inf.tu-dresden.de>
   Date: Wed, 27 Aug 2003 10:13:42 +0200
   Subject: Re: taglet 1.0 (was Re: [Caml-list] taggage 1.1)
   
   Have you tried with otags? Otags creates a tag with the module
   name for every file it processes. So just do "otags ." and search
   for any module name.
   
Oops, I was mislead by the assumption that otags generates the
same tags for vi and for emacs. However, the module name is not
generated for vi :-(

I append a patch that fixes this. 

Bye

Hendrik


[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 1025 bytes --]

Index: vi.ml
===================================================================
RCS file: /sun/theorie/tews/Privat/Store/Otags/vi.ml,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 vi.ml
*** vi.ml	22 Apr 2003 13:45:02 -0000	1.1.1.3
--- vi.ml	27 Aug 2003 10:58:16 -0000
***************
*** 109,114 ****
--- 109,115 ----
    let out_file = Sys.getenv Argcamlp4.tmp in 
    let name = Filename.basename in_file in
    let modulename = String.capitalize (Filename.chop_extension name) in
+   let sini = Printf.sprintf "%s\t%s\t1;\n" modulename in_file in
    let lg_file = Entry.size_ml () in
    let fsl = make_strings in_file lg_file in
    Line.lookup fsl;
***************
*** 117,123 ****
    let chan = open_out out_file in
    begin
      header chan;
!     List.iter (output_string chan) lef;
      flush chan;
      close_out chan
    end
--- 118,124 ----
    let chan = open_out out_file in
    begin
      header chan;
!     List.iter (output_string chan) (sini :: lef);
      flush chan;
      close_out chan
    end

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

end of thread, other threads:[~2003-08-27 11:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-26  6:38 [Caml-list] taggage 1.1 Issac Trotts
2003-08-26 14:59 ` Cuihtlauac ALVARADO
2003-08-26 22:09   ` taglet 1.0 (was Re: [Caml-list] taggage 1.1) Issac Trotts
2003-08-27  8:13     ` Hendrik Tews
2003-08-27 11:09       ` Hendrik Tews

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).