Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Hendrik Tews <tews@tcs.inf.tu-dresden.de>
To: ijtrotts@ucdavis.edu, caml-list@inria.fr
Subject: Re: taglet 1.0 (was Re: [Caml-list] taggage 1.1)
Date: Wed, 27 Aug 2003 13:09:52 +0200	[thread overview]
Message-ID: <16204.37248.620992.569547@ithif51.inf.tu-dresden.de> (raw)
In-Reply-To: <16204.26678.992081.830682@ithif51.inf.tu-dresden.de>

[-- 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

      reply	other threads:[~2003-08-27 11:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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=16204.37248.620992.569547@ithif51.inf.tu-dresden.de \
    --to=tews@tcs.inf.tu-dresden.de \
    --cc=caml-list@inria.fr \
    --cc=ijtrotts@ucdavis.edu \
    /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