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 01:40:17 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Kevin Rodgers <address@hidden> writes:
> Wow, I didn't know compile-command could be an expression that is
> evaluated dynamically!  That feature is not documented in the
> variable's doc string, the Emacs manual, or the NEWS file -- which
> in itself is a bug.

It is documented in the docstring only implicitly by showing an
example where `concat' is evaluated dynamically.

I'm not sure about the Emacs manual, but the docstring could be fixed
like this:

Index: lisp/progmodes/compile.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/compile.el,v
retrieving revision 1.342
diff -u -r1.342 compile.el
--- lisp/progmodes/compile.el   25 Nov 2004 03:02:18 -0000      1.342
+++ lisp/progmodes/compile.el   6 Dec 2004 23:33:33 -0000
@@ -415,6 +415,12 @@
 (defcustom compile-command "make -k "
   "*Last shell command used to do a compilation; default for next compilation.
 
+If it is an expression, 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.
+
 Sometimes it is useful for files to supply local values for this variable.
 You might also use mode hooks to specify it in certain modes, like this:

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





reply via email to

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