From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#1719: marked as done (23.0.60; Does rx (eval FORM) interfere with byte compiling?) Date: Sun, 28 Dec 2008 04:30:03 +0000 Message-ID: References: <87d4fdhqs4.fsf@cyd.mit.edu> <4956E475.1010104@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1230438603-14926-0" X-Trace: ger.gmane.org 1230439423 10788 80.91.229.12 (28 Dec 2008 04:43:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2008 04:43:43 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 28 05:44:51 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LGnWC-0001fg-6P for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Dec 2008 05:44:48 +0100 Original-Received: from localhost ([127.0.0.1]:36922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGnUy-0005qY-Kl for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Dec 2008 23:43:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGnUv-0005qT-6d for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2008 23:43:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGnUq-0005q2-BP for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2008 23:43:28 -0500 Original-Received: from [199.232.76.173] (port=47170 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGnUq-0005pz-5L for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2008 23:43:24 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55807) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LGnUp-0001gv-K3 for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2008 23:43:23 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBS4hL7w018526; Sat, 27 Dec 2008 20:43:21 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBS4U3lv015017; Sat, 27 Dec 2008 20:30:03 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 1719 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: news.gmane.org gmane.emacs.bugs:23529 Archived-At: This is a multi-part message in MIME format... ------------=_1230438603-14926-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 27 Dec 2008 23:23:07 -0500 with message-id <87d4fdhqs4.fsf@cyd.mit.edu> and subject line Re: 23.0.60; Does rx (eval FORM) interfere with byte compi= ling? has caused the Emacs bug report #1719, regarding 23.0.60; Does rx (eval FORM) interfere with byte compiling? to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 1719: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1719 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1230438603-14926-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 28 Dec 2008 02:29:23 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=3.3 required=4.0 tests=FOURLA,IMPRONONCABLE_1, MURPHY_WRONG_WORD2,PUSSY autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBS2TKqD016400 for ; Sat, 27 Dec 2008 18:29:21 -0800 Received: from mail.gnu.org ([199.232.76.166]:46231 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LGlO9-0000eP-4p for emacs-pretest-bug@gnu.org; Sat, 27 Dec 2008 21:28:21 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LGlP5-00019z-86 for emacs-pretest-bug@gnu.org; Sat, 27 Dec 2008 21:29:19 -0500 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:58431) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LGlP4-00019v-Pv for emacs-pretest-bug@gnu.org; Sat, 27 Dec 2008 21:29:19 -0500 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:64483 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1LGlP3-0006XO-4A for emacs-pretest-bug@gnu.org; Sun, 28 Dec 2008 03:29:17 +0100 Message-ID: <4956E475.1010104@gmail.com> Date: Sun, 28 Dec 2008 03:29:09 +0100 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Subject: 23.0.60; Does rx (eval FORM) interfere with byte compiling? X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 081227-0, 2008-12-27), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1LGlP3-0006XO-4A. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1LGlP3-0006XO-4A b24553ca5fd86fae9668c6d79067fb7a X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6? (barebone, rare!) I believe that rx (eval FORM) interferes with byte compiling. The following code gives an error like this during byte compilation: nxhtml-js.el:118:8:Error: Symbol's value as variable is void: nxhtml-smoothgallery-mark (defconst nxhtml-smoothgallery-mark "") (defun nxhtml-smoothgallery-find () (save-excursion (save-restriction (widen) (goto-char (point-min)) (when (search-forward nxhtml-smoothgallery-mark nil t) (back-to-indentation) (when (looking-at (rx "
"))) ) "\">" (eval nxhtml-smoothgallery-mark) )) (cons (copy-marker (match-beginning 0)) (buffer-substring-no-properties (match-beginning 1) (match-end 1)))))))) In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-12-25 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' ------------=_1230438603-14926-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1719-done) by emacsbugs.donarmstrong.com; 28 Dec 2008 04:23:01 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.1 required=4.0 tests=FOURLA,PUSSY autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBS4Mwqf013654 for <1719-done@emacsbugs.donarmstrong.com>; Sat, 27 Dec 2008 20:22:59 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id E726357E217; Sat, 27 Dec 2008 23:23:07 -0500 (EST) From: Chong Yidong To: "Lennart Borgman \(gmail\)" Cc: 1719-done@emacsbugs.donarmstrong.com Subject: Re: 23.0.60; Does rx (eval FORM) interfere with byte compiling? Date: Sat, 27 Dec 2008 23:23:07 -0500 Message-ID: <87d4fdhqs4.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I believe that rx (eval FORM) interferes with byte compiling. The > following code gives an error like this during byte compilation rx is a Lisp macro, so its arguments are evaluated at compile time. Your defconst is not defined there; that's why there's an error. See "Macros and Byte Compilation" in the Elisp manual for a detailed explanation. I've added a note to the rx docstring making this plainer. Basically, you want to add an eval-when-compile statement of some sort to allow the regexp to be translated at compile time, or, otherwise, use the rx-to-string function and translate the regexp at runtime. ------------=_1230438603-14926-0--