From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-methods-before-regexp) when ruby-mode is not compiled Date: Sat, 02 Feb 2013 14:07:46 +0400 Message-ID: <510CE572.7060909@yandex.ru> References: <87a9rniv4q.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1359799698 17262 80.91.229.3 (2 Feb 2013 10:08:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Feb 2013 10:08:18 +0000 (UTC) Cc: 13605@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 02 11:08:34 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U1a1S-0000Rx-Fm for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Feb 2013 11:08:34 +0100 Original-Received: from localhost ([::1]:44062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1a1A-0003fE-4f for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Feb 2013 05:08:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1a16-0003eU-1s for bug-gnu-emacs@gnu.org; Sat, 02 Feb 2013 05:08:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1a13-0003Ta-8c for bug-gnu-emacs@gnu.org; Sat, 02 Feb 2013 05:08:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1a13-0003TW-4r for bug-gnu-emacs@gnu.org; Sat, 02 Feb 2013 05:08:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U1a1t-00065D-Ko for bug-gnu-emacs@gnu.org; Sat, 02 Feb 2013 05:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Feb 2013 10:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13605 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13605-submit@debbugs.gnu.org id=B13605.135979972723356 (code B ref 13605); Sat, 02 Feb 2013 10:09:01 +0000 Original-Received: (at 13605) by debbugs.gnu.org; 2 Feb 2013 10:08:47 +0000 Original-Received: from localhost ([127.0.0.1]:60455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1a1e-00064f-Sh for submit@debbugs.gnu.org; Sat, 02 Feb 2013 05:08:47 -0500 Original-Received: from mail-la0-f45.google.com ([209.85.215.45]:62014) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1a1c-00064W-7a for 13605@debbugs.gnu.org; Sat, 02 Feb 2013 05:08:45 -0500 Original-Received: by mail-la0-f45.google.com with SMTP id er20so3371931lab.4 for <13605@debbugs.gnu.org>; Sat, 02 Feb 2013 02:07:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=i6vifbNRU0PbfHP9v8OvcjU3FO8HucwkAaOwpqfCgso=; b=w+AgDI4pSzbGYXeQQf5cmR0VPYWT+X4YPKbd+LMXMIvso3svYwhouT4a7aBQuDA1Om 0kkTzeUDXMwAw/vTjnWzL+T6mJuw4MffaMQilv3DySAuulIRmy3VfSi9XuqN4nsUhXuy te7E3OM35FtN7MBmgtv9WVFCefaxHO11T173wIYET3l3Fvh8CwbNuUFXHGY34cEzpKAL cLM82QxwAEv59YXB+UGkVyp4YS3CT+0PY6jzyuoyV+acz6owFukNFPAWQHW1eeRvLqYe 5gel3AUIm2ZXl1d7M2AHtNSqjmSPirdQmaanMrqeDk4JekVcMBgzXdalM9MzsfxYmX1q zw8A== X-Received: by 10.152.145.37 with SMTP id sr5mr13741812lab.33.1359799670316; Sat, 02 Feb 2013 02:07:50 -0800 (PST) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPS id ft8sm5458771lab.9.2013.02.02.02.07.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 02 Feb 2013 02:07:47 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70597 Archived-At: On 02.02.2013 3:30, Stefan Monnier wrote: >> The constant in question is defined in an `eval-and-compile' block, I >> can't see what else could the interpreter need. Help? > > Eager macro expansion works at the granularity of top-level expressions, > so the whole (if (eval-when-compile (fboundp #'syntax-propertize-rules)) ...) > block is macro-expanded before it gets run. > > The patch below should work around the problem (probably best option > for emacs-24). The patch works fine, thank you, but looks like it's not for emacs-24 anyway. > Maybe the better way to fix it (for trunk) is to change eval-and-compile > (and probably eval-when-compile) so that it evaluates its argument during > macro-expansion. Sounds good. Do I install the patch (after fixing indentation), or wait for the better fix?