[Top][All Lists]

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

Re: [Top 10] compile: Suspicious line. Save anyway? [runs anyway]

From: Stefan Monnier
Subject: Re: [Top 10] compile: Suspicious line. Save anyway? [runs anyway]
Date: 19 Jun 2001 08:46:04 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.104

>>>>> "Dan" == Dan Jacobson <address@hidden> writes:
>         Suspicious line 4. Save anyway (y or n)
> well of course the user will answer n do he can check and correct
> whatever Suspicious thing is going on.
> So he answers n... Oh, but the compile command then blunders on do a
> make with an unsaved or old makefile... real schmart. Top 10 for this year.

Indeed, in this particular case, the behavior is wrong.
But the problem is that Emacs can't know why you decided not to save
the file.  You might want to run your `compile' with the old version
of the file because the buffer is not in a consistent state.
Also `compile' asks to save every buffer, so you might just refuse to save
one of the buffers simply because it's unrelated to the current `compile'.

So the user has to tell Emacs what he wants:
- save the file & compile (press `y')
- don't save the file but compile (press `n')
- neither save the file nor compile (press C-g)


reply via email to

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