all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: bug-gnu-emacs@gnu.org, jidanni@jidanni.org
Subject: Re: region sensitive Makefile compile-command
Date: Tue, 07 Dec 2004 01:40:17 +0200	[thread overview]
Message-ID: <87zn0rro66.fsf@jurta.org> (raw)
In-Reply-To: <31jhpbF39lamsU1@individual.net> (Kevin Rodgers's message of "Mon, 06 Dec 2004 10:04:41 -0700")

Kevin Rodgers <ihs_4664@yahoo.com> 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	other threads:[~2004-12-06 23:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-27  1:12 region sensitive Makefile compile-command Dan Jacobson
2004-12-01 20:37 ` Juri Linkov
2004-12-02 23:33   ` Dan Jacobson
2004-12-05 20:52     ` Juri Linkov
     [not found]     ` <mailman.3743.1102280901.27204.bug-gnu-emacs@gnu.org>
2004-12-06 17:04       ` Kevin Rodgers
2004-12-06 23:40         ` Juri Linkov [this message]
     [not found]         ` <mailman.4029.1102377320.27204.bug-gnu-emacs@gnu.org>
2004-12-07  0:20           ` Kevin Rodgers
2004-12-07  1:23             ` Juri Linkov
2004-12-09  0:33         ` Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zn0rro66.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=jidanni@jidanni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.