From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron Newsgroups: gmane.emacs.devel Subject: Question about eval and compile-command Date: Thu, 03 Aug 2023 12:29:38 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31681"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 03 11:31:11 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qRUfm-00080C-OM for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Aug 2023 11:31:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRUeQ-0005Xx-Pk; Thu, 03 Aug 2023 05:29:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRUeP-0005XZ-Ce for emacs-devel@gnu.org; Thu, 03 Aug 2023 05:29:45 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRUeN-0005Fq-K8 for emacs-devel@gnu.org; Thu, 03 Aug 2023 05:29:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1691054982; bh=iLXgAmcX+TB3fIaiSfuyxDU+gvR6qMUgSghMbQBupAU=; h=From:To:Subject:Date:From; b=RHAGcC6s1ZtOTVWdVCU6U5GGkTwuyE30rqy0hO2fHpxOj+8OHDLFU+bb1sr90Pc4P Ch4uv7jGyHxQBliiQjjeTn5MVkih+iztToUy9ohMTIquoGPwvfTM5qren39oHeDMIZ fJ+lgST6KW1rB21q9WEbVA8ZqLY5cZhzZefggVXdxES0C2V4zjy46wOv8cOTb59DCU CcNsQ35VSJg4Oq9ijW/9fm8g56NEsxzMInB/sq3YzrbjYKISbebG/JKC7l66RXZB1A CScj1tKN9OPzHk9QDIPnF4cz5nypLbXtLQ2u2XpEHg0fKkH1zmiV3AztkajusBdheR ZDoM0IZEyQOEg== Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308253 Archived-At: Hi all, I'm curious as to why `compile` and `recompile` use `eval` to evaluate the value of `compile-command`. AFAICT since commit 5b6858da26e4e6671ee93b67b921a86309b3d6a2 (July 19 2001), these commands evaluate `compile-command`, as if it's expected to be an expression that evaluates to a string rather than just a plain string. The commit message says: (compilation-parse-errors): `linenum' might return a this-error using the alternative format (a pair of markers). But I don't quite understand how that relates to `compile-command`. Also, the `:type` of `compile-command` remains `string`, and I couldn't find any mention of the value of `compile-command` being evaluated that way in the relevant documentation. I wonder if this is just a remnant of a past experiment or an undocumented feature. Or maybe there's something else I'm missing? Thanks, Eshel