From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Olson Newsgroups: gmane.emacs.devel Subject: Eager macroexpansion failure in Emacs 24.3 Date: Mon, 1 Apr 2013 11:40:38 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=089e013c686498ab0004d94a41b1 X-Trace: ger.gmane.org 1364812867 15826 80.91.229.3 (1 Apr 2013 10:41:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Apr 2013 10:41:07 +0000 (UTC) To: Emacs Development Discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 01 12:41:35 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UMcBD-0003f7-5k for ged-emacs-devel@m.gmane.org; Mon, 01 Apr 2013 12:41:35 +0200 Original-Received: from localhost ([::1]:40754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMcAo-0004Sv-KU for ged-emacs-devel@m.gmane.org; Mon, 01 Apr 2013 06:41:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMcAj-0004Sc-A9 for emacs-devel@gnu.org; Mon, 01 Apr 2013 06:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMcAd-0005nX-62 for emacs-devel@gnu.org; Mon, 01 Apr 2013 06:41:05 -0400 Original-Received: from mail-ve0-f181.google.com ([209.85.128.181]:65118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMcAd-0005nD-1D for emacs-devel@gnu.org; Mon, 01 Apr 2013 06:40:59 -0400 Original-Received: by mail-ve0-f181.google.com with SMTP id pa12so2302786veb.26 for ; Mon, 01 Apr 2013 03:40:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:x-originating-ip:from:date :x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=H5y0pgfR/Y25xkGy8+tdRSZeZgCQouu+Cxckgq/l0T0=; b=mqWW7j3rXMnkR16RkLKU4p/L9fyVuTJX5zCcd9oehfOXOAKQ5laD/Ii9KRFAp5sF1G QILJvluHlCbktKEKPDbVo/2owC43D1OztBgTEqosnspDbA3FMr7dXQhKgoZde6RM1Hg7 zmTK+xYz5WQK5UFEGVtefeb/QCkmxMG+g6vYa/0vFg7Tec0xO/LeFXwAVqvmdx2fXJu8 uTElQk6+k4R8bM9PBw9qHeaxMMTVKwcLF8qJxRZFxzgtRnjMRpeiOhSsk/d6IsE9Qi4p Z8HB+F4kg2g72mzPVmMOkAztaCnkYv9H/cKSzA/URLGKT+UBtaVDsg+qtE8bAImHOI9i D8oQ== X-Received: by 10.220.248.200 with SMTP id mh8mr8669718vcb.51.1364812858167; Mon, 01 Apr 2013 03:40:58 -0700 (PDT) Original-Received: by 10.58.188.77 with HTTP; Mon, 1 Apr 2013 03:40:38 -0700 (PDT) X-Originating-IP: [46.252.67.242] X-Google-Sender-Auth: pG3TzsQwFE2fSchqVISB0Dy66us X-Gm-Message-State: ALoCoQk/bE4o6t5I4eDa8OqWXzm7YDDgfD6rZedRJJwsxUOzpCer1W1dTTsseCHAUl3X1AmdtHDk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.128.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158514 Archived-At: --089e013c686498ab0004d94a41b1 Content-Type: multipart/alternative; boundary=089e013c686498aafc04d94a41af --089e013c686498aafc04d94a41af Content-Type: text/plain; charset=UTF-8 emacs --no-init-file --load ~/test-case.el In *Messages* buffer: Eager macro-expansion failure: (error "(erc-response\\.contents parsed) is not a valid place expression") I can work around this by putting (require 'erc) and the function definition in different 'when' blocks, but it's not ideal. The erc-response struct is defined in erc-backend.el, which is loaded by erc.el. Putting (require 'erc) inside of a 'when' statement along with code that relies on functions provided by a struct defined by a file it loads seems to trigger the problem. -- Michael Olson | http://mwolson.org/ --089e013c686498aafc04d94a41af Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
emacs --no-init-file --load ~/test-case.el

<= div>In *Messages* buffer:

Eager macro-expansi= on failure: (error "(erc-response\\.contents parsed) is not a valid pl= ace expression")

I can work around this by putting (require 'e= rc) and the function definition in different 'when' blocks, but it&= #39;s not ideal.

The erc-response stru= ct is defined in erc-backend.el, which is loaded by erc.el.

Putting (require 'erc) inside of a '= ;when' statement along with code that relies on functions provided by a= struct defined by a file it loads seems to trigger the problem.

--
Michael Olson=C2=A0 |=C2=A0 http://mwolson.org/
--089e013c686498aafc04d94a41af-- --089e013c686498ab0004d94a41b1 Content-Type: application/octet-stream; name="test-case.el" Content-Disposition: attachment; filename="test-case.el" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hezi346j0 Cih3aGVuIHQKICAocmVxdWlyZSAnZXJjKQogIChkZWZ1biBteS1lcmMtcmVtb3ZlLXRyYWlsaW5n LXdoaXRlc3BhY2UgKHByb2MgcGFyc2VkKQogICAgIlJlbW92ZSB0cmFpbGluZyB3aGl0ZXNwYWNl IGZyb20gdGhlIGN1cnJlbnQgbWVzc2FnZS4KU29tZSBJTSBjbGllbnRzIHVzZSBhbiBPVFIgcGx1 Zy1pbiB0aGF0IHNlbmRzIHNvbWUgYW5ub3lpbmcKdHJhaWxpbmcgc3BhY2UgdG8gdGhlIHNjcmVl biwgc28gd2Ugd2FudCB0byBjbGVhbiB0aGF0IHVwLiIKICAgIChsZXQgKChtc2cgKGVyYy1yZXNw b25zZS5jb250ZW50cyBwYXJzZWQpKSkKICAgICAgKHdoZW4gKHN0cmluZ3AgbXNnKQogICAgICAg IChzZXRmIChlcmMtcmVzcG9uc2UuY29udGVudHMgcGFyc2VkKQogICAgICAgICAgICAgIChlcmMt cmVwbGFjZS1yZWdleHAtaW4tc3RyaW5nICJbWzpzcGFjZTpdXStcXCciICIiIG1zZykpCiAgICAg ICAgbmlsKSkpCiAgKGFkZC1ob29rICdlcmMtc2VydmVyLVBSSVZNU0ctZnVuY3Rpb25zICdteS1l cmMtcmVtb3ZlLXRyYWlsaW5nLXdoaXRlc3BhY2UpKQo= --089e013c686498ab0004d94a41b1--