home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / emacs / help / 5088 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.4 KB  |  39 lines

  1. Path: sparky!uunet!spool.mu.edu!agate!agate.berkeley.edu!dodd
  2. From: dodd@mycenae.cchem.berkeley.edu (Lawrence R. Dodd)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: Fortran mode
  5. Date: 15 Dec 92 05:14:13
  6. Organization: Dept of Chemical Engineering, Polytechnic Univ, NY, USA
  7. Lines: 26
  8. Message-ID: <DODD.92Dec15051413@mycenae.cchem.berkeley.edu>
  9. References: <92350.103118HAC041@DJUKFA11.BITNET>
  10. NNTP-Posting-Host: mycenae.cchem.berkeley.edu
  11. In-reply-to: HAC041@DJUKFA11.BITNET's message of 15 Dec 92 09:31:18 GMT
  12.  
  13.  
  14. >>>>> "Konrad" == Konrad Hinsen <HAC041@DJUKFA11.BITNET> writes:
  15.  
  16.   Konrad> 1) Why my solution doesn't work?
  17.   Konrad> 2) What can be done to really solve this problem?
  18.  
  19. I asked the same question six months ago.  Stephen Wood the current maintainer
  20. of fortran.el responded with:
  21.  
  22. ....
  23. You can get fortran.el to not indent lines that begin with # by adding the
  24. following to your fortran-mode-hook
  25.  
  26. (setq comment-line-start-skip
  27.       "^[Cc*]\\(\\([^ \t\n]\\)\\2\\2*\\)?[ \t]*\\|^#.*")
  28.  
  29. The purpose of this is to skip over the comment character or character
  30. sequences such as c$$$, before it tries to indent the comment line.  The ^#.*
  31. will skip over the entire line before trying to indent.
  32. ....
  33.  
  34. You should also start using the v19 version of fortran.el available via
  35. anonymous ftp to hallc1.cebaf.gov in directory emacs. There are other
  36. fortran-mode goodies in that directory as well.
  37.  
  38. Larry
  39.