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