🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #947

Bug in etags for Fortran files?

#947
From: Ulrich Mueller
Date: Mon, 11 Jan 1993 21:16
25 lines
1333 bytes
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
Technical Details
Message-ID: <9301112116.AA01059@vsnhd2.cern.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!mintaka.lcs.mit.edu!ai-lab!prep.ai.mit.edu!gnulists

Show Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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