home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / emacs / help / 5085 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.4 KB

  1. Path: sparky!uunet!wupost!sdd.hp.com!think.com!yale.edu!ira.uka.de!Sirius.dfn.de!zam103!djukfa11!hac041
  2. From: HAC041@DJUKFA11.BITNET (Konrad Hinsen)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Fortran mode
  5. Message-ID: <92350.103118HAC041@DJUKFA11.BITNET>
  6. Date: 15 Dec 92 09:31:18 GMT
  7. Organization: Forschungszentrum Juelich
  8. Lines: 21
  9.  
  10. Many of my Fortran programs make use of the C preprocessor to get
  11. around some of Fortran's limitations. This works fine, but I do have
  12. some problems editing such files with Emacs in Fortran mode. Whenever
  13. a subroutine contains preprocessor directives (starting with a # in
  14. the first column), it can't be indented with META-CTRL-Q; reformatting
  15. stops with the error message "No comment syntax defined".
  16.  
  17. The easiest solution seemed to me to tell Emacs to ignore such lines
  18. alltogether, i.e. treat them as comments (my setup is such that
  19. comments are never modified in Fortran mode). After a short look
  20. at fortran.el (I am by no means an Emacs-Lisp expert!) I decided that
  21. adding # to the first letter group (Cc*) in comment-line-start-skip
  22. should suffice; however it didn't have the desired effect. Now I still
  23. get the same error message, but in addition all preprocessor directives
  24. are indented to column 6!
  25.  
  26. Does anyone know
  27. 1) Why my solution doesn't work?
  28. 2) What can be done to really solve this problem?
  29.  
  30. Konrad Hinsen (hac041@zam001.zam.kfa-juelich.de)
  31.