[Top][All Lists]

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

Re: /lib/cpp not found in c-mode

From: Stefan Monnier
Subject: Re: /lib/cpp not found in c-mode
Date: Mon, 02 May 2005 11:44:19 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> Not only that, it IMHO shouldn't call "/lib/cpp" unconditionally, but
>> rather try several possible file commands, including "gcc -E", "cpp"
>> (without leading directories), etc.

> Hopefully, it fails gracefully now. I use "gcc -E -dM -" now to generate a
> define list.  Have you any ideas to make it more general?

gcc might not be available either.
And the file may not be local (it may be accessed via Tramp or jka-compr).
I.e. "fails gracefully" can't be obtained without a condition-case.

And AFAICT the result is completely unused unless you happen to also use

You'd be better served postponing execution of such a command to the moment
when it's actually needed (i.e. when gud-tooltips are actually being used).
If the user gets an error when she uses gud-tooltips, he won't mind, but if
she gets the error about something that she won't even ever use, she has
reasons to be upset.


reply via email to

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