home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky gnu.emacs.bug:1630 gnu.utils.bug:2373
- Date: Mon, 11 Jan 93 22:16:04 +0100
- From: ulm@vsnhd2.cern.ch (Ulrich Mueller)
- Message-ID: <9301112116.AA01059@vsnhd2.cern.ch>
- To: bug-gnu-emacs@prep.ai.mit.edu, bug-gnu-utils@prep.ai.mit.edu
- Subject: Bug in etags for Fortran files?
- Distribution: world
- Approved: info-gnu@prep.ai.mit.edu
- Path: sparky!uunet!think.com!mintaka.lcs.mit.edu!ai-lab!prep.ai.mit.edu!gnulists
- Newsgroups: gnu.emacs.bug,gnu.utils.bug
- Followup-To: gnu.emacs.bug
- Lines: 26
-
- The etags program which comes with the emacs 18.59 distribution
- contains the following test in function `find_entries':
-
- /* if not a .c or .h or .y file, try fortran */
- if (cp && (cp[1] != 'c' && cp[1] != 'h' && cp[1] != 'y')
- && cp[2] == '\0')
-
- This prevents `.for' files (under VMS) or `.inc' files (I use this
- extension for files which I include from `.f' files) from being parsed
- for Fortran tokens.
-
- Also, the code does something different from what is explained in the
- comment. Probably this should be:
-
- /* if not a .c or .h or .y file, try fortran */
- if (cp && !((cp[1] == 'c' || cp[1] == 'h' || cp[1] == 'y')
- && cp[2] == '\0'))
-
- Best regards
-
- --
- Ulrich Mueller Email: ulm@vsnhd1.cern.ch
- PPE Division ulm@cernvm.bitnet
- CERN Phone: +41-22-767-8658
- CH-1211 Geneva 23 Fax: +41-22-7850314
-
-