From unknown Sun Jun 22 17:17:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-methods-before-regexp) when ruby-mode is not compiled Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Feb 2013 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13605 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13605@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.135975458019928 (code B ref -1); Fri, 01 Feb 2013 21:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Feb 2013 21:36:20 +0000 Received: from localhost ([127.0.0.1]:59919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1OHT-0005BL-F7 for submit@debbugs.gnu.org; Fri, 01 Feb 2013 16:36:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33602) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1OHQ-0005BB-Sb for submit@debbugs.gnu.org; Fri, 01 Feb 2013 16:36:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1OD7-0001F4-9Q for submit@debbugs.gnu.org; Fri, 01 Feb 2013 16:35:27 -0500 Received: from lists.gnu.org ([208.118.235.17]:42836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1OD7-0001Em-4u for submit@debbugs.gnu.org; Fri, 01 Feb 2013 16:31:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1O8n-0007TM-8o for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 16:31:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1O7j-0002NA-6P for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 16:27:21 -0500 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:45053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1O7i-0002KL-RG for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 16:26:15 -0500 Received: by mail-la0-f48.google.com with SMTP id fq13so3125449lab.7 for ; Fri, 01 Feb 2013 13:26:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:mime-version :content-type; bh=iAn/RpHMiMwpEXc0mRKg1+Zn7Zgl6CaTGVJNSfY3aig=; b=czb/CG39+ZZ0pOmp1R3nDkb7RsE8iuu1fsP8bnN5HK6pe2DhRVcmkBAyF41c5GFTVu T7MtcF9qLKBE74x3s6HY7u88A6nspEdu7UQ8d4monT2PlwqMvVLVG/Yhh56wcGcYmXGO h6ydZqtQCGLJvJf5WD6EsH/kFQYogU/tBJsNiZSI0BF7VoIfSftMPTCz+LDtU0s3f41T xixmLqpWQMrnvJCA4NcBRAx7AWrgsm73oS6C4cx0eBVpbj508tdmYwe9fFO/C9e4L+U9 LZZrzritZpmrmTID9XqC3MUBMBzXW40tnSnDcjc50lZ9G6t6nyu2ASlYS03sRYSNcEZm GFGA== X-Received: by 10.112.11.33 with SMTP id n1mr5385789lbb.18.1359753972950; Fri, 01 Feb 2013 13:26:12 -0800 (PST) Received: from vbx ([178.252.98.87]) by mx.google.com with ESMTPS id pk1sm4759890lab.0.2013.02.01.13.26.10 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 01 Feb 2013 13:26:11 -0800 (PST) From: Dmitry Gutov Date: Sat, 02 Feb 2013 01:25:57 +0400 Message-ID: <87a9rniv4q.fsf@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) This applies both to trunk and emacs-24. ruby-mode compiles without warnings, and ruby-syntax-propertize-function works fine either way, but when ruby-mode is not compiled, it shows the subject warning upon loading, and ruby-syntax-propertize-function is an order of magnitude slower (not very noticeable in the simple cased, though), due to syntax-propertize-rules not being expanded. The constant in question is defined in an `eval-and-compile' block, I can't see what else could the interpreter need. Help? In GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0) of 2013-01-27 on vbx Bzr revision: 111609 michael.albinus@gmx.de-20130127104333-93qmx98ovt4m0y5q Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.10 From unknown Sun Jun 22 17:17:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-methods-before-regexp) when ruby-mode is not compiled Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Feb 2013 23:32: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: To: Dmitry Gutov Cc: 13605@debbugs.gnu.org Received: via spool by 13605-submit@debbugs.gnu.org id=B13605.13597614921788 (code B ref 13605); Fri, 01 Feb 2013 23:32:01 +0000 Received: (at 13605) by debbugs.gnu.org; 1 Feb 2013 23:31:32 +0000 Received: from localhost ([127.0.0.1]:60082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1Q4u-0000Sh-G3 for submit@debbugs.gnu.org; Fri, 01 Feb 2013 18:31:32 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:30408) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1Q4o-0000ST-U3 for 13605@debbugs.gnu.org; Fri, 01 Feb 2013 18:31:27 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJgcLFBgNJIgeBsEtjRqDcAOIYZwZgV6DFYFJ X-IPAS-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJgcLFBgNJIgeBsEtjRqDcAOIYZwZgV6DFYFJ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="244724" Received: from 69-165-153-237.dsl.teksavvy.com (HELO pastel.home) ([69.165.153.237]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Feb 2013 18:30:31 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9F1405943E; Fri, 1 Feb 2013 18:30:31 -0500 (EST) From: Stefan Monnier Message-ID: References: <87a9rniv4q.fsf@yandex.ru> Date: Fri, 01 Feb 2013 18:30:31 -0500 In-Reply-To: <87a9rniv4q.fsf@yandex.ru> (Dmitry Gutov's message of "Sat, 02 Feb 2013 01:25:57 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > 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). 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. Stefan === modified file 'lisp/progmodes/ruby-mode.el' --- lisp/progmodes/ruby-mode.el 2013-01-28 02:07:42 +0000 +++ lisp/progmodes/ruby-mode.el 2013-02-01 23:24:39 +0000 @@ -1211,10 +1211,8 @@ (declare-function ruby-syntax-enclosing-percent-literal "ruby-mode" (limit)) (declare-function ruby-syntax-propertize-percent-literal "ruby-mode" (limit)) -(if (eval-when-compile (fboundp #'syntax-propertize-rules)) - ;; New code that works independently from font-lock. - (progn - (eval-and-compile + +(eval-and-compile (defconst ruby-percent-literal-beg-re "\\(%\\)[qQrswWx]?\\([[:punct:]]\\)" "Regexp to match the beginning of percent literal.") @@ -1225,6 +1223,10 @@ "Methods that can take regexp as the first argument. It will be properly highlighted even when the call omits parens.")) +(if (eval-when-compile (fboundp #'syntax-propertize-rules)) + ;; New code that works independently from font-lock. + (progn + (defun ruby-syntax-propertize-function (start end) "Syntactic keywords for Ruby mode. See `syntax-propertize-function'." (goto-char start) From unknown Sun Jun 22 17:17:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-methods-before-regexp) when ruby-mode is not compiled Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Feb 2013 02:24: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: To: Dmitry Gutov Cc: 13605@debbugs.gnu.org Received: via spool by 13605-submit@debbugs.gnu.org id=B13605.135977178424985 (code B ref 13605); Sat, 02 Feb 2013 02:24:01 +0000 Received: (at 13605) by debbugs.gnu.org; 2 Feb 2013 02:23:04 +0000 Received: from localhost ([127.0.0.1]:60174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1Sky-0006Uw-Lk for submit@debbugs.gnu.org; Fri, 01 Feb 2013 21:23:04 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:18759) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1Skv-0006UW-RW for 13605@debbugs.gnu.org; Fri, 01 Feb 2013 21:23:02 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJgcLFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJgcLFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="253223" Received: from 69-165-153-237.dsl.teksavvy.com (HELO ceviche.home) ([69.165.153.237]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Feb 2013 21:22:09 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 65B9C66130; Fri, 1 Feb 2013 21:22:09 -0500 (EST) From: Stefan Monnier Message-ID: References: <87a9rniv4q.fsf@yandex.ru> Date: Fri, 01 Feb 2013 21:22:09 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 01 Feb 2013 18:30:31 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.5 (/) > The patch below should work around the problem (probably best option > for emacs-24). Actually, this is sufficiently minor that it's not worth fixing for emacs-24, I think. Stefan From unknown Sun Jun 22 17:17:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-methods-before-regexp) when ruby-mode is not compiled 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: To: Stefan Monnier Cc: 13605@debbugs.gnu.org Received: via spool by 13605-submit@debbugs.gnu.org id=B13605.135979972723356 (code B ref 13605); Sat, 02 Feb 2013 10:09:01 +0000 Received: (at 13605) by debbugs.gnu.org; 2 Feb 2013 10:08:47 +0000 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 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 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) 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) Message-ID: <510CE572.7060909@yandex.ru> Date: Sat, 02 Feb 2013 14:07:46 +0400 From: Dmitry Gutov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 References: <87a9rniv4q.fsf@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) 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? From unknown Sun Jun 22 17:17:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-methods-before-regexp) when ruby-mode is not compiled Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Feb 2013 03:10: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: To: Dmitry Gutov Cc: 13605@debbugs.gnu.org Received: via spool by 13605-submit@debbugs.gnu.org id=B13605.135994738014629 (code B ref 13605); Mon, 04 Feb 2013 03:10:01 +0000 Received: (at 13605) by debbugs.gnu.org; 4 Feb 2013 03:09:40 +0000 Received: from localhost ([127.0.0.1]:34751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U2CRA-0003nt-0n for submit@debbugs.gnu.org; Sun, 03 Feb 2013 22:09:40 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34780) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U2CR7-0003nm-Mo for 13605@debbugs.gnu.org; Sun, 03 Feb 2013 22:09:38 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCw4mBwsUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCw4mBwsUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="358689" Received: from 69-165-153-237.dsl.teksavvy.com (HELO ceviche.home) ([69.165.153.237]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Feb 2013 22:08:34 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 1EFB966109; Sun, 3 Feb 2013 22:08:34 -0500 (EST) From: Stefan Monnier Message-ID: References: <87a9rniv4q.fsf@yandex.ru> <510CE572.7060909@yandex.ru> Date: Sun, 03 Feb 2013 22:08:34 -0500 In-Reply-To: <510CE572.7060909@yandex.ru> (Dmitry Gutov's message of "Sat, 02 Feb 2013 14:07:46 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.5 (/) >> 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? I think we'd better aim for the better fix. Stefan From unknown Sun Jun 22 17:17:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dmitry Gutov Subject: bug#13605: closed (Re: bug#13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-methods-before-regexp) when ruby-mode is not compiled) Message-ID: References: <87a9rniv4q.fsf@yandex.ru> X-Gnu-PR-Message: they-closed 13605 X-Gnu-PR-Package: emacs Reply-To: 13605@debbugs.gnu.org Date: Fri, 08 Feb 2013 16:19:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1360340342-8272-1" This is a multi-part message in MIME format... ------------=_1360340342-8272-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-= methods-before-regexp) when ruby-mode is not compiled which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13605@debbugs.gnu.org. --=20 13605: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13605 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1360340342-8272-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13605-done) by debbugs.gnu.org; 8 Feb 2013 16:18:49 +0000 Received: from localhost ([127.0.0.1]:44448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3qf3-000293-IF for submit@debbugs.gnu.org; Fri, 08 Feb 2013 11:18:49 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:20037) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3qf1-00028w-AM for 13605-done@debbugs.gnu.org; Fri, 08 Feb 2013 11:18:47 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCw4mBwsUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFFpZnt/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCw4mBwsUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="776926" Received: from 69-165-153-237.dsl.teksavvy.com (HELO pastel.home) ([69.165.153.237]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Feb 2013 11:18:42 -0500 Received: by pastel.home (Postfix, from userid 20848) id B0CC15919F; Fri, 8 Feb 2013 11:18:42 -0500 (EST) From: Stefan Monnier To: Dmitry Gutov Subject: Re: bug#13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-methods-before-regexp) when ruby-mode is not compiled Message-ID: References: <87a9rniv4q.fsf@yandex.ru> <510CE572.7060909@yandex.ru> Date: Fri, 08 Feb 2013 11:18:42 -0500 In-Reply-To: (Stefan Monnier's message of "Sun, 03 Feb 2013 22:08:34 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 13605-done Cc: 13605-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>> 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. I've installed the patch below which fixes this problem and hopefully won't introduce others. Stefan === modified file 'lisp/emacs-lisp/byte-run.el' --- lisp/emacs-lisp/byte-run.el 2013-01-03 02:37:57 +0000 +++ lisp/emacs-lisp/byte-run.el 2013-02-08 16:13:13 +0000 @@ -392,15 +392,15 @@ Thus, the result of the body appears to the compiler as a quoted constant. In interpreted code, this is entirely equivalent to `progn'." (declare (debug t) (indent 0)) - ;; Not necessary because we have it in b-c-initial-macro-environment - ;; (list 'quote (eval (cons 'progn body))) - (cons 'progn body)) + (list 'quote (eval (cons 'progn body) lexical-binding))) (defmacro eval-and-compile (&rest body) "Like `progn', but evaluates the body at compile time and at load time." (declare (debug t) (indent 0)) - ;; Remember, it's magic. - (cons 'progn body)) + ;; When the byte-compiler expands code, this macro is not used, so we're + ;; either about to run `body' (plain interpretation) or we're doing eager + ;; macroexpansion. + (list 'quote (eval (cons 'progn body) lexical-binding))) (put 'with-no-warnings 'lisp-indent-function 0) (defun with-no-warnings (&rest body) ------------=_1360340342-8272-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Feb 2013 21:36:20 +0000 Received: from localhost ([127.0.0.1]:59919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1OHT-0005BL-F7 for submit@debbugs.gnu.org; Fri, 01 Feb 2013 16:36:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33602) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U1OHQ-0005BB-Sb for submit@debbugs.gnu.org; Fri, 01 Feb 2013 16:36:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1OD7-0001F4-9Q for submit@debbugs.gnu.org; Fri, 01 Feb 2013 16:35:27 -0500 Received: from lists.gnu.org ([208.118.235.17]:42836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1OD7-0001Em-4u for submit@debbugs.gnu.org; Fri, 01 Feb 2013 16:31:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1O8n-0007TM-8o for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 16:31:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1O7j-0002NA-6P for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 16:27:21 -0500 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:45053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1O7i-0002KL-RG for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2013 16:26:15 -0500 Received: by mail-la0-f48.google.com with SMTP id fq13so3125449lab.7 for ; Fri, 01 Feb 2013 13:26:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:mime-version :content-type; bh=iAn/RpHMiMwpEXc0mRKg1+Zn7Zgl6CaTGVJNSfY3aig=; b=czb/CG39+ZZ0pOmp1R3nDkb7RsE8iuu1fsP8bnN5HK6pe2DhRVcmkBAyF41c5GFTVu T7MtcF9qLKBE74x3s6HY7u88A6nspEdu7UQ8d4monT2PlwqMvVLVG/Yhh56wcGcYmXGO h6ydZqtQCGLJvJf5WD6EsH/kFQYogU/tBJsNiZSI0BF7VoIfSftMPTCz+LDtU0s3f41T xixmLqpWQMrnvJCA4NcBRAx7AWrgsm73oS6C4cx0eBVpbj508tdmYwe9fFO/C9e4L+U9 LZZrzritZpmrmTID9XqC3MUBMBzXW40tnSnDcjc50lZ9G6t6nyu2ASlYS03sRYSNcEZm GFGA== X-Received: by 10.112.11.33 with SMTP id n1mr5385789lbb.18.1359753972950; Fri, 01 Feb 2013 13:26:12 -0800 (PST) Received: from vbx ([178.252.98.87]) by mx.google.com with ESMTPS id pk1sm4759890lab.0.2013.02.01.13.26.10 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 01 Feb 2013 13:26:11 -0800 (PST) From: Dmitry Gutov To: bug-gnu-emacs@gnu.org Subject: 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 01:25:57 +0400 Message-ID: <87a9rniv4q.fsf@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) This applies both to trunk and emacs-24. ruby-mode compiles without warnings, and ruby-syntax-propertize-function works fine either way, but when ruby-mode is not compiled, it shows the subject warning upon loading, and ruby-syntax-propertize-function is an order of magnitude slower (not very noticeable in the simple cased, though), due to syntax-propertize-rules not being expanded. The constant in question is defined in an `eval-and-compile' block, I can't see what else could the interpreter need. Help? In GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0) of 2013-01-27 on vbx Bzr revision: 111609 michael.albinus@gmx.de-20130127104333-93qmx98ovt4m0y5q Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.10 ------------=_1360340342-8272-1-- From unknown Sun Jun 22 17:17:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13605: 24.3.50; Eager macro-expansion failure: (void-variable ruby-syntax-methods-before-regexp) when ruby-mode is not compiled Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Feb 2013 19:16: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: To: Stefan Monnier Cc: 13605-done@debbugs.gnu.org Received: via spool by 13605-done@debbugs.gnu.org id=D13605.136035093327804 (code D ref 13605); Fri, 08 Feb 2013 19:16:01 +0000 Received: (at 13605-done) by debbugs.gnu.org; 8 Feb 2013 19:15:33 +0000 Received: from localhost ([127.0.0.1]:44662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3tQ4-0007EP-LE for submit@debbugs.gnu.org; Fri, 08 Feb 2013 14:15:33 -0500 Received: from mail-lb0-f177.google.com ([209.85.217.177]:42249) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3tQ1-0007EH-Us for 13605-done@debbugs.gnu.org; Fri, 08 Feb 2013 14:15:30 -0500 Received: by mail-lb0-f177.google.com with SMTP id go11so3171764lbb.22 for <13605-done@debbugs.gnu.org>; Fri, 08 Feb 2013 11:15:24 -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=cxtElYA7Rx5l48MayhEbycRwBOySMRy4FPoZwkQjCPw=; b=ibr7EyPaAVReupF432mHeysJh3sto5EYONYqz4mVGQGWj4axuBY/ArUDq2yHtiZ/B2 Qt2l9hL8iwdevJoww8aNYPZgG25YpYPl9QBqzvcbC1pfF4g14YqqJ1bh+eZQIbhWWp8P 9Ow9Lm6VKOIyWzkknkBSmuymvZbhjsJH9yTYocL2Z8HIsmvHmm6/yOHLAXZMa9YC4TPS j51km5zZ6OG1CbLMGAr7jFw83Pp+Y2I0G2+F6UWSYvo8m40eJui08CRM4zApzl2IEE72 GRCESyOmkmIGdbzFc7iugcWhTY7/6XqnXARg3Jf7z12z1N4IrPKn5BNSV8RoJoFQv2B5 n29w== X-Received: by 10.152.114.66 with SMTP id je2mr5793379lab.40.1360350924385; Fri, 08 Feb 2013 11:15:24 -0800 (PST) Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPS id ns7sm17297089lab.5.2013.02.08.11.15.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Feb 2013 11:15:20 -0800 (PST) Message-ID: <51154EC8.2030208@yandex.ru> Date: Fri, 08 Feb 2013 23:15:20 +0400 From: Dmitry Gutov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 References: <87a9rniv4q.fsf@yandex.ru> <510CE572.7060909@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 08.02.2013 20:18, Stefan Monnier wrote: >>>> 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. > > I've installed the patch below which fixes this problem and hopefully > won't introduce others. Thanks!