Re: Changes to BrTPMVertexModule

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Fri Sep 07 2001 - 09:23:55 EDT

  • Next message: Christian Holm Christensen: "Re: trigger words"

    Hi Trine, et al, 
    
    On Thu, 6 Sep 2001 22:03:16 +0200 (MET DST)
    trine@lynx.uio.no (Trine Tveter) wrote
    concerning "Changes to BrTPMVertexModule":
    > I made a few changes to the vertexing code in modules/vertex
    > Changed files:
    > BrTPMClusterVertexModule.h and .cxx
    > BrVertexModule.h and .cxx
    > 
    > It should now be possible to use BrTPMClusterVertexModule with
    > bratmain in the usual way, e.g. by adding in the bratmain script:
    > 
    >   BrTPMClusterVertexModule* cVertexFinder = new BrTPMClusterVertexModule("TPM1","cVertexFinder");
    >   mainModule->AddModule(cVertexFinder);
    > 
    > The changes are: 
    > - Revised BrTPMClusterVertexModule to work with new TPC code and
    >   table names,  and to run with bratmain.  
    
    Cool!
    
    >   Class version changed to 0 as proper for a module.
    
    Whoops, I though I'd rooted (no pun intended, well a little :-) out
    all those things when we started BRAT2.  Hmm.  If anyone knows of
    similar cases, please correct that ASAP - thanks. 
    
    > I was very much in doubt whether to bump or not to bump the revision 
    > number since these are not large changes, but ended up incrementing to 
    > BRAT-2-0-36 since it's probably better to bump once too much, for
    > the sake of good bookkeeping.
    
    I don't think you really needed to bump, but as you say, rather one
    too many than one too little. 
    
    > I sincerely hope I didn't foul up anything when I (maybe a bit 
    > absent-mindedly) ended up in vi (which I'm not familiar with) ...
    
    He, you're not alone in not being familiar with vi.   A small hint:
    Set your environment variable CVSEDITOR to emacs: 
    
       setenv CVSEDITOR emacs          # CSH-like shells 
    
    or
    
       export CVSEDITOR=emacs          # SH-like shells 
    
    If you're sometimes working on a remote machine with bad X connection,
    you can define a small alias that will open Emacs in the term, rather
    than making a new X client, and then set you CVSEDITOR to that alias:
     
       alias  emacs-nox 'emacs -nw'    # CSH-like shells 
       setenv CVSEDITOR emacs-nox      # CSH-like shells 
         
    or 
    
       alias  emacs-nox='emacs -nw'    # CSH-like shells 
       export CVSEDITOR=emacs-nox      # SH-like shells 
    
    Or, if you're really tricky, make sure you have Emacs running al the
    time (I strongly suspect you have) and set your CVSEDITOR to
    emacsclient.  Note, that some OS distributions, like Redhat Linux,
    already has a program called emacs-nox.  On those platforms, you
    should not define the alias like above ofcourse. 
    
    All that said, I should like to point out, that vi is infact an
    excellent editor (Linus Torvalds uses it I believe), and worth getting
    to know, since it's so much faster to start up than Emacs, especially
    if you're like me and have installed loads of extra packages that need
    some sort of initialisation at Emacs startup time.  Some quick
    references for vi: 
    
      i       Go to insert mode 
      [ESC]   Leave insert mode 
      :q      Quit
      :w      Save 
      ZZ      Save and quit 
      x       Delete at point 
      dd      Delete line 
      d$      Delete to end of line 
      d^      Delete to begining of line 
      P       Yank the last deletion at point 
      j       Join two lines 
    
    and ofcourse 
     
      :h      Help browser. 
    
    > ... instead of emacs when committing configure.in, while following
    > the BratGuide instructions to the letter.  I believe the commitment
    > and tagging finally was completed normally - if this turns out not
    > to be the case, I apologize deeply (I will fetch my asbesto suit
    > from the attic tonight just in case ... ;-))
    
    LOL. 
    
    Yours, 
    
    Christian Holm Christensen -------------------------------------------
    Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91 
             DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
             Denmark                             Office: (+45) 353  25 305 
    Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm
    



    This archive was generated by hypermail 2b30 : Fri Sep 07 2001 - 09:24:19 EDT