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: A question about macro bindings in cl-lib Date: Wed, 24 Apr 2013 16:17:42 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1366791477 484 80.91.229.3 (24 Apr 2013 08:17:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2013 08:17:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 24 10:18:01 2013 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 1UUuts-0004Mk-MV for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Apr 2013 10:18:00 +0200 Original-Received: from localhost ([::1]:59070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUuts-0001zQ-8m for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Apr 2013 04:18:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUutg-0001yr-9B for help-gnu-emacs@gnu.org; Wed, 24 Apr 2013 04:17:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUutb-00012W-Jf for help-gnu-emacs@gnu.org; Wed, 24 Apr 2013 04:17:48 -0400 Original-Received: from mail-ie0-x22c.google.com ([2607:f8b0:4001:c03::22c]:65244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUutb-00012N-Ef for help-gnu-emacs@gnu.org; Wed, 24 Apr 2013 04:17:43 -0400 Original-Received: by mail-ie0-f172.google.com with SMTP id c12so1765121ieb.31 for ; Wed, 24 Apr 2013 01:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=2hJxNDc86ZCBKHXvnuHC8i+Sb1PmOrky1Y+fClzS08Q=; b=R3cfZSrGhmoANrJ4aUlqgC43E99b2HQ3CjF/URsl3YOGZ6gtouLgtyGicjaml/K7Ud wpz6/hkBau2toCA2hvFZjSA3hfauinfHFCIe9JUEnwBRtocfolg1+eHtp1KZRUnAZhyG iPHOY9i7fEL42rpzFOpOa+WdSDWWouq6PY4Pc8AlqtP/29PX3csDPxWRBf6UmXhx7oGl /9HR2Q6S7vcziPH97cUsgpFvYIp8jcUtywMS9BrTCTfhBetixyXRtQD4qrAc0jTRpXlD sS07o6AKxge1Ca3uWOfGWyu0p2SppqPLLsK2aqWdNMcJQ/DC4rf+fQikGx2ZZUIdO/IL rLRg== X-Received: by 10.50.2.40 with SMTP id 8mr13914146igr.78.1366791462605; Wed, 24 Apr 2013 01:17:42 -0700 (PDT) Original-Received: by 10.43.18.10 with HTTP; Wed, 24 Apr 2013 01:17:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22c 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:90321 Archived-At: In (info "(cl) Macro Bindings"): (cl-defmacro my-dolist ((x list) &rest body) (let ((var (cl-gensym))) (list 'cl-loop 'for var 'on list 'do (cl-list* 'cl-symbol-macrolet (list (list x (list 'car var))) body)))) (setq mylist '(1 2 3 4)) (my-dolist (x mylist) (cl-incf x)) mylist => (2 3 4 5) The `my-dolist' call shown here expands to (cl-loop for G1234 on mylist do (cl-symbol-macrolet ((x (car G1234))) (cl-incf x))) I understand what this macro does, but what does "G1234" mean here? (I have searched the archives, but "No document matching your query".) -- Best regards, Xue Fuqiao. http://www.gnu.org/software/emacs/