From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Strange behavior of macro Date: Tue, 30 May 2006 16:56:56 +0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1148979540 25366 80.91.229.2 (30 May 2006 08:59:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 08:59:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 30 10:58:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fl03r-00065W-L7 for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 10:58:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fl03r-0006lk-7w for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 04:58:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fl03d-0006l8-02 for emacs-devel@gnu.org; Tue, 30 May 2006 04:58:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fl03b-0006jc-PH for emacs-devel@gnu.org; Tue, 30 May 2006 04:58:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fl03b-0006jJ-Jg for emacs-devel@gnu.org; Tue, 30 May 2006 04:58:31 -0400 Original-Received: from [64.4.26.16] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fl09M-0004XA-ED for emacs-devel@gnu.org; Tue, 30 May 2006 05:04:28 -0400 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 30 May 2006 01:56:59 -0700 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Tue, 30 May 2006 08:56:56 GMT X-Originating-IP: [216.145.54.158] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com Original-To: emacs-devel@gnu.org X-OriginalArrivalTime: 30 May 2006 08:56:59.0935 (UTC) FILETIME=[0309EAF0:01C683C7] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:55469 Archived-At: Hello, Is the following in Emacs a expected behavior of macro? (defmacro m1 (v) (let ((len (length (eval v)))) `(quote ,len))) => m1 (m1 '(1 2 3)) => 3 (setq v1 '(1 2 3)) => (1 2 3) (m1 v1) => 3 (setq v v1) => (1 2 3) (m1 v) => error: (wrong-type-argument sequencep v) Thanks. Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/