From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: Re: region sensitive Makefile compile-command Date: Tue, 07 Dec 2004 03:23:46 +0200 Organization: JURTA Message-ID: <87zn0qon05.fsf@jurta.org> References: <87653syu15.fsf@jidanni.org> <87eki9oiu7.fsf@jurta.org> <87pt1suvfj.fsf@jidanni.org> <31jhpbF39lamsU1@individual.net> <31kbb0F3cqtdtU1@individual.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1102387714 24533 80.91.229.6 (7 Dec 2004 02:48:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Dec 2004 02:48:34 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 07 03:48:27 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CbVOt-0002Xh-00 for ; Tue, 07 Dec 2004 03:48:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbVYf-00086b-N3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Dec 2004 21:58:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CbVVC-0006tO-De for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2004 21:54:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CbVUh-0006hS-2T for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2004 21:54:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbVUd-0006eC-IS for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2004 21:54:23 -0500 Original-Received: from [194.126.101.111] (helo=MXR-5.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CbVER-0002DM-CQ for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2004 21:37:39 -0500 Original-Received: from mail.neti.ee (80-235-35-149-dsl.mus.estpak.ee [80.235.35.149]) by MXR-5.estpak.ee (Postfix) with ESMTP id 1FEADEA7EE; Tue, 7 Dec 2004 04:37:35 +0200 (EET) Original-To: Kevin Rodgers In-Reply-To: <31kbb0F3cqtdtU1@individual.net> (Kevin Rodgers's message of "Mon, 06 Dec 2004 17:20:46 -0700") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at neti.ee X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9957 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9957 Kevin Rodgers 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/