From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA20370; Wed, 27 Aug 2003 13:10:03 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA23257 for ; Wed, 27 Aug 2003 13:10:02 +0200 (MET DST) Received: from tcs.inf.tu-dresden.de (tcs.inf.tu-dresden.de [141.76.75.101]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h7RBA1f18486 for ; Wed, 27 Aug 2003 13:10:01 +0200 (MET DST) Received: from ithif51 (ithif51 [141.76.75.51]) by tcs.inf.tu-dresden.de (8.12.9/8.12.9) with ESMTP id h7RB9qub029759; Wed, 27 Aug 2003 13:09:53 +0200 (MET DST) Received: from tews by ithif51 with local (Exim 3.36 #1 (Debian)) id 19ryBU-0005RG-00; Wed, 27 Aug 2003 13:09:52 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0Yst1m4Lp7" Content-Transfer-Encoding: 7bit Message-ID: <16204.37248.620992.569547@ithif51.inf.tu-dresden.de> Date: Wed, 27 Aug 2003 13:09:52 +0200 To: ijtrotts@ucdavis.edu, caml-list@inria.fr Subject: Re: taglet 1.0 (was Re: [Caml-list] taggage 1.1) In-Reply-To: <16204.26678.992081.830682@ithif51.inf.tu-dresden.de> References: <3F4B0060.1060803@ucdavis.edu> <20030826145950.GA19299@francetelecom.com> <3F4BDA9E.2030809@ucdavis.edu> <16204.26678.992081.830682@ithif51.inf.tu-dresden.de> X-Mailer: VM 7.16 under Emacs 21.2.1 From: Hendrik Tews X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) at tcs.inf.tu-dresden.de X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 hendrik:01 tews:01 tews:01 hendrik:01 caml-list:01 otags:01 otags:01 privat:01 getenv:01 basename:01 modulename:01 chop:01 printf:01 sprintf:01 X-Attachments: name="patch" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --0Yst1m4Lp7 Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Hendrik Tews writes: From: Hendrik Tews 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 --0Yst1m4Lp7 Content-Type: text/plain Content-Disposition: inline; filename="patch" Content-Transfer-Encoding: 7bit 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 --0Yst1m4Lp7-- ------------------- 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