From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: About `macroexpand' Date: Sun, 30 Dec 2012 10:39:31 +0800 Organization: The Church of Emacs Message-ID: <20121230103931.f8b844934dbcf3742fd34e21@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356835189 7314 80.91.229.3 (30 Dec 2012 02:39:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Dec 2012 02:39:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 30 03:40:05 2012 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 1Tp8oi-0005Ny-IP for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Dec 2012 03:40:00 +0100 Original-Received: from localhost ([::1]:43609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tp8oT-00032e-K9 for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Dec 2012 21:39:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tp8oO-00032W-Ps for help-gnu-emacs@gnu.org; Sat, 29 Dec 2012 21:39:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tp8oM-0004o0-1i for help-gnu-emacs@gnu.org; Sat, 29 Dec 2012 21:39:40 -0500 Original-Received: from mail-pa0-f49.google.com ([209.85.220.49]:64530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tp8oL-0004n6-Qc for help-gnu-emacs@gnu.org; Sat, 29 Dec 2012 21:39:37 -0500 Original-Received: by mail-pa0-f49.google.com with SMTP id bi1so6623664pad.8 for ; Sat, 29 Dec 2012 18:39:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:organization:x-mailer :mime-version:content-type:content-transfer-encoding; bh=tZsqacafDZaNz6NeP2ok/gmXDs2V4tMGVY3gkGB+LiQ=; b=MaZVNdx2nJPNoA8c2f+L8pLCeg+UFqfSq2zJbGWLt/pOgJPgEWZ4ClgKuNlpx9iKT0 yvfqKHtfBsiRnHrcEJbCNpEzL3Xx2tEJVwUonqzx/M17BoTmQZRNdxlTdKKzoXJBDIP2 6zb4erPdm1bY0hMzQNViEpk+IqrbH2Ofo48a9cZRL3mmffQpHdcPraX63unBjrhXELMn NM6yAgV1MtaIPexcbpc/8R/FajTQVlr01u77b7TjjLReGQbRahv8u7i6skKSM8ir0rea foaUlx0Vxi36ag2KBhGPxVD29EWRIwtmg1WwcU34TeawvSCdztR6QdPmPxS172yn0Olf 3abQ== X-Received: by 10.68.134.132 with SMTP id pk4mr116619849pbb.38.1356835177018; Sat, 29 Dec 2012 18:39:37 -0800 (PST) Original-Received: from Emacs ([123.114.121.222]) by mx.google.com with ESMTPS id gq10sm22339866pbc.54.2012.12.29.18.39.34 (version=SSLv3 cipher=OTHER); Sat, 29 Dec 2012 18:39:36 -0800 (PST) X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.49 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:88341 Archived-At: I wrote the following code: (defmacro t-becomes-nil (variable) (if (eq variable t) (setq variable nil))) (setq foo t) (macroexpand '(t-becomes-nil foo)) The return value of `macroexpand' is nil. I don't know why. I think it should be: (if (eq foo t) (setq foo nil))) Can anybody help? -- Best regards.