Changes 
http://wiki.axiom-developer.org/144DomainAbbreviationIsNoLongerAssociatedWithFilename/diff
--
Save the following as $AXIOM/lib/SPADEDIT and make it executable, and replace 
the call to emacs by your favorite text editor. In fact, maybe one should 
change the code to call the dvi file or at least the pamphlet::

  #! /bin/bash
  
  ## get the filename (replace spad by spad.pamphlet to work with pamphlets
  ## instead.
  
  f=\$(basename \$1 .spad)
  
  ## get the file and the line number. We can assume that grep produces only one
  ## answer, I guess
  
  h=\$(grep -n ")abb.* \$f " $AXIOM/src/algebra/*)
  
  ## get the filename
  name=\${h%%:*}
  
  ## get the number
  number1=\${h#*:}
  
  number=\${number1%:*}
  
  ## start emacs
  emacs +\$number \$name
--
forwarded from http://wiki.axiom-developer.org/[EMAIL PROTECTED]

Reply via email to