🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98638

bug in compilation-grab-filename?

#98638
From: Jim Blandy
Date: Fri, 19 Apr 1991 00:11
26 lines
1744 bytes
Andy Norman writes:
>There appears to be a bug in compilation-grab-filename in that it doesn't
>return the correct filename if the file has a comma in its name (like many RCS
>files do).  This causes next-error to fail to find the file after a successful
>grep command.

compilation-grab-filename sometimes uses the following expression to
return the filename after point as a string:

    (buffer-substring (point)
		      (progn
			(skip-chars-forward "^ :,\n\t(")
			(point)))))

The skip-chars-forward deliberately won't include a comma in the file
name.  I suspect this is because some programs that people want to run
in compilation buffers delimit the filename with a comma, but I can't
think of any such programs.

If you took the comma out of the set, I think your problem would go
away.  But you probably already knew this.  :-)

Roland McGrath <roland@gnu.ai.mit.edu> wrote the compile.el package
that will go into Emacs 19, and it does not suffer from this problem.

-JimB
Technical Details
Message-ID: <9104190011.AA15323@pogo.gnu.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!csus.edu!ucdavis!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage
References: <9104161126.AA21394@anorman.hpl.hp.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,e3125cc8b03fd81f
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-04-19 00:55:08 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!csus.edu!ucdavis!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage
From: jimb@GNU.AI.MIT.EDU (Jim Blandy)
Newsgroups: gnu.emacs.bug
Subject: bug in compilation-grab-filename?
Message-ID: <9104190011.AA15323@pogo.gnu.ai.mit.edu>
Date: 19 Apr 91 00:11:22 GMT
References: <9104161126.AA21394@anorman.hpl.hp.com>
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 26
Approved: bug-gnu-emacs@prep.ai.mit.edu