home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / emacs / help / 3894 < prev    next >
Encoding:
Text File  |  1992-08-30  |  2.9 KB  |  55 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!cis.ohio-state.edu!spva.PHysics.imperial.ac.UK!ATAE
  3. From: ATAE@spva.PHysics.imperial.ac.UK (The Maverick)
  4. Subject: Looking for some emacs addons..
  5. Message-ID: <9208301249.AA12178@life.ai.mit.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
  8. Date: Sun, 30 Aug 1992 13:35:00 GMT
  9. Lines: 44
  10.  
  11. G'Day Folks
  12.  
  13. I have a lot of Fortran code I want to convert to C. I tried using
  14. the f2c program from AT&T but the code it produces is not exactly
  15. re-editable. Actually it looks like gobldy-gook to me. What I am
  16. doing is writing keyboard macros in Emacs eg: replace all strings
  17. "Integer" with "int" putting ";" at the end of every line etc.. and 
  18. then batch editing the Fortran files and calling these macros. It 
  19. screws up a lot, but the number of changes I have to make before 
  20. everything is OK is actually reasonable (also the code usually comes 
  21. as small modules anyways). I could make great improvements if I knew 
  22. enough Elisp to write some "intelligent" macros. If any Emacs guru 
  23. out there has some routines that do some of the Fortran to C conversion 
  24. features (preferably so they are understandable by a Novice) I'd be 
  25. very grateful for a copy. I'll try and write a package for use by 
  26. anyone else interested.
  27.  
  28. BTW, is there a way to make the query replace feature (or for that
  29. matter any command which accepts a character string) in Emacs 
  30. do completion ? I mean you type M-% fo and when you press some
  31. key (eg C-x) it completes by reading from the file resulting in
  32. M-% foo. Something like filename completion when you press the
  33. space bar after M-x insert-file. I couldn't find an answer in the 
  34. info pages or the FAQ, probably because this is some feature no one 
  35. wants.
  36.  
  37.     regards
  38.         Ata <(|)>.
  39.  ------------------------------------------------------------------------------ 
  40. | Mail          Dr Ata Etemadi, Blackett Laboratory,                          |
  41. |               Space and Atnmospheric Physics Group,                         |
  42. |               Imperial College of Science, Technology, and Medicine,        |
  43. |               Prince Consort Road, London SW7 2BZ, ENGLAND                  |
  44. | Phone         +44 (0)71 589 5111 Ext 6751 or 6752 (secretary/answer phone)  |
  45. | Fax           +44 (0)71 823 8250 Attn. Dr Ata Etemadi,                      |
  46. | Telex         929484 (IMPCOL G)  Attn. Dr Ata Etemadi,                      |
  47.  ------------------------------------------------------------------------------ 
  48. | Janet                     atae@uk.ac.ic.ph.spva  or ata@uk.ac.ucl.mssl.c    |
  49. | Earn/Bitnet               atae@spva.ph.ic.ac.uk  or ata@c.mssl.ucl.ac.uk    |
  50. | Internet/Arpanet          atae%spva.ph.ic.ac.uk  or ata%c.mssl.ucl.ac.uk    |
  51. | Span                      SPVA::atae (19773::atae)                          |
  52. | UUCP/Usenet               atae%spva.ph.ic@nsfnet-relay.ac.uk                |
  53.  ------------------------------------------------------------------------------ 
  54.  
  55.