From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Macro Expansion Inconsistency Date: Tue, 16 Dec 2014 21:57:25 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1418763471 9875 80.91.229.3 (16 Dec 2014 20:57:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2014 20:57:51 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 21:57:45 2014 Return-path: Envelope-to: geh-help-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 1Y0zBf-0007DB-3P for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 21:57:43 +0100 Original-Received: from localhost ([::1]:46829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0zBe-0001rD-H4 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 15:57:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0zBQ-0001pk-AO for help-gnu-emacs@gnu.org; Tue, 16 Dec 2014 15:57:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0zBP-0004S7-Fk for help-gnu-emacs@gnu.org; Tue, 16 Dec 2014 15:57:28 -0500 Original-Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:40363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0zBP-0004RJ-7X for help-gnu-emacs@gnu.org; Tue, 16 Dec 2014 15:57:27 -0500 Original-Received: by mail-la0-f48.google.com with SMTP id gf13so11735387lab.7 for ; Tue, 16 Dec 2014 12:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=27XSMpEFtBf7ifBc8t8UTSZcMA72ex4Py1xMdTZBFGc=; b=WcD6NbG7l6bwoxNCHS+D5DmH9CJzGwn/nMdqyhY3THuVR7Vig1lA89n92EAR2jJGB7 o2gvb0OFKwu/9sRLJLtITZrWE3swxmRUbX0yaf8K2iK0q/vY5jnUn7RHxLXLF2f5+8F5 ik3ocKwJn7rXxIF0vsDHRd0MULgcrFi+8kkYO1uqmyM9MblFWInmsgJnIFAu70jDiqE+ gvAEgk9HzKVu+c7ZlEuNJNQ0BvNhzVEZM2o9X2cWm82XSNw+NOClr38zlIZxuqurxRe9 GmE+SXTqoR1FvNO7AH/oy6npDqWc5iZtqi5GAu8u+Bx6tsG8qysC2iKDkNj/WQdk86i4 sR8A== X-Received: by 10.112.235.67 with SMTP id uk3mr10907943lbc.48.1418763445446; Tue, 16 Dec 2014 12:57:25 -0800 (PST) Original-Received: by 10.112.123.235 with HTTP; Tue, 16 Dec 2014 12:57:25 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::230 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101606 Archived-At: Hello everyone, Just wasted a couple of hours with the following macro: (defmacro test (name) `(let* ((name ',name) (symbol (intern (concat "some" "-" (symbol-name name))))) ,symbol)) Running (test xxx) reports error: (void-variable symbol). What? Refactoring to (defmacro test (name) `(let* ((name ',name)) ,(intern (concat "some" "-" (symbol-name name))))) and running (test xxx) works as expected. Could anybody clarify what's going on? Thanks. Regards, Alexander