Xref: utzoo gnu.emacs.help:1468 comp.emacs:10332 Path: utzoo!utgpu!watserv1!watmath!uunet!tut.cis.ohio-state.edu!unreplyable!garbage From: zoo@APS1.SPA.UMN.EDU Newsgroups: gnu.emacs.help,comp.emacs Subject: need lisp function to find filename under point Message-ID: <9103180209.AA01993@grumpy.spa.umn.edu> Date: 18 Mar 91 02:09:52 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: zoo@aps1.spa.umn.edu Followup-To: gnu.emacs.help Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Lines: 15 I'd like to be able to do something on the order of this: 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. Does anyone have code to do the above? Or at the very least find a filename at point? Thanks for the help. david d [zoo] zuhn Univ. of Minnesota Dept. of Astronomy zoo@aps1.spa.umn.edu Automated Plate Scanner Project