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

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

Re: region sensitive Makefile compile-command


From: Juri Linkov
Subject: Re: region sensitive Makefile compile-command
Date: Tue, 07 Dec 2004 03:23:46 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Kevin Rodgers <address@hidden> writes:
> No, in the example (concat ...) is evaluated when the hook is run,
> not when `M-x compile' is run:

I didn't notice it has no quote.  It could be added to the example
before (concat ...) to demonstrate this feature.

> No, compile-command is eval'ed unconditionally:

Strictly speaking, there is no condition.  On the other hand, it
correctly describes the behavior.  In any case, wording could be
improved, e.g.

"It can be any expression, not just a string.  It is evaluated
to the command string before `compile' prompts for the command.
When the value of the command specified at the command prompt is
not the same as evaluated from the expression, then this variable
gets overwritten with the value of the last specified command string."

I see also that this feature conflicts with the defcustom type
of this variable which currently is :type 'string.  It should
be changed to :type 'sexp.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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