help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically finding foo.h.in instead of foo.h (autoconf)


From: Stefan Monnier
Subject: Re: Automatically finding foo.h.in instead of foo.h (autoconf)
Date: Wed, 28 Mar 2012 19:24:46 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

> I am wondering if anyone has some elisp code which when finding a file 
> say foo.h it will find foo.h.in instead.  The idea is that when I have a 
> source using autoconf I do not want to edit the foo.h, instead I want to 
> edit the foo.h.in file.  It seems to me that the find-file-hook could be 
> used to do this.  
> I just want to know if someone else has a find-file-hook that does this.

I don't have such a hook (or any actual solution either), sorry.  But it
occurred to me that maybe another way to attack the problem is to change
the completion so that TAB completes to foo.h.in directly without
stopping at foo.h.  Obviously, that depends on whether completion is
involved in finding foo.h.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]