Article View: gnu.emacs.help
Article #189297Re: need lisp function to find filename under point
From: david d [zoo] zuhn
Date: Wed, 20 Mar 1991 21:01
Date: Wed, 20 Mar 1991 21:01
30 lines
2143 bytes
2143 bytes
A few day ago I asked about finding and visiting include files from a
C source file, via lisp code to find the filename under point and a
search path for header files:
// When I'm editing C code, and I want to edit a header file, my cursor
// is often near the #include statement. I'd then like to use some
// function to find the filename of the include statement, and then
// ideally use a search path (local variable with a default to
// ("/usr/local/include" "/usr/include") probably) to visit that file.
There were a few followups via news, and I also received several
responses via e-mail. I have also received some requests for this
code.
The best response was that of Robert Fuhrer at Columbia. His code
(posted to gnu.emacs.sources as well) had the search paths added to
the general (find-filename-at-point) type functions that I received
from everyone.
Thanks to the following (in no particular order) for useful code.
Sebastian Kremer <sk@thp.Uni-Koeln.DE>
Robert M. Fuhrer <rmf@cs.columbia.edu>
Kevin Esler <esler@apollo.hp.com>
Richard Cloutier <cloutier@apus.ece.cmu.edu>
Loic Dachary <loic@axis-design.fr>
david d [zoo] zuhn Univ. of Minnesota Dept. of Astronomy
zoo@aps1.spa.umn.edu Automated Plate Scanner Project
Technical Details
Message-ID:
<ZOO.91Mar20150123@grumpy.spa.umn.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!src.honeywell.com!msi.umn.edu!s16.msi.umn.edu!zooReferences:
<9103180209.AA01993@grumpy.spa.umn.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,e590d84d9c9a65f8 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-03-21 01:15:26 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!src.honeywell.com!msi.umn.edu!s16.msi.umn.edu!zoo From: zoo@aps1.spa.umn.edu (david d [zoo] zuhn) Newsgroups: gnu.emacs.help Subject: Re: need lisp function to find filename under point Message-ID: <ZOO.91Mar20150123@grumpy.spa.umn.edu> Date: 20 Mar 91 21:01:23 GMT References: <9103180209.AA01993@grumpy.spa.umn.edu> Sender: news@s1.msi.umn.edu Reply-To: zoo@aps1.spa.umn.edu Followup-To: gnu.emacs.help Organization: Minnesota Automated Plate Scanner Lab Lines: 30 In-Reply-To: zoo@APS1.SPA.UMN.EDU's message of 18 Mar 91 02:09:52 GMT Nntp-Posting-Host: grumpy.spa.umn.edu