From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Navy Cheng Newsgroups: gmane.emacs.help Subject: How to use a symbol and its value to create alist? Date: Tue, 11 Aug 2015 21:52:54 +0800 Message-ID: <20150811135254.GA20200@debian> Reply-To: Navy Cheng NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1439301233 2112 80.91.229.3 (11 Aug 2015 13:53:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2015 13:53:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 11 15:53:45 2015 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 1ZP9zt-0001YU-Gd for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Aug 2015 15:53:45 +0200 Original-Received: from localhost ([::1]:34582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP9zs-0000EC-T1 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Aug 2015 09:53:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP9zW-0000B8-53 for help-gnu-emacs@gnu.org; Tue, 11 Aug 2015 09:53:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZP9zR-0002l8-6C for help-gnu-emacs@gnu.org; Tue, 11 Aug 2015 09:53:22 -0400 Original-Received: from m15-113.126.com ([220.181.15.113]:48603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP9zQ-0002K7-CB for help-gnu-emacs@gnu.org; Tue, 11 Aug 2015 09:53:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=uxfhO ntHSlUfqZMT23p39NgH97Zo+Rdx+JfLVFSeyb0=; b=F89dlo25T+/PSxxApYRYP O4JHegeZrPl+Sck7XcXgAov1HfnqsLesg1oEQBBmdygvhNz3laVIfPsidwykyc9y LKkT71aGvGcP0DSaORG5KWaksU3PeNHd0b4O9K4m/+Kv68PdgEOafeUG9RLEViHQ nM8PpL5sbB03yu49I971L0= Original-Received: from localhost (unknown [220.248.63.118]) by smtp3 (Coremail) with SMTP id DcmowABnNC43_slVZLwEAA--.3608S3; Tue, 11 Aug 2015 21:52:56 +0800 (CST) Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-CM-TRANSID: DcmowABnNC43_slVZLwEAA--.3608S3 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUxNB_UUUUU X-Originating-IP: [220.248.63.118] X-CM-SenderInfo: 5qdy5ubk6rjloofrz/1tbi0BhTDVUJSug3agAAs1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.15.113 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:106466 Archived-At: For example: (setq a 1) (setq b 2) (setq c 3) How can I a alist, like: ((a . 1) (b . 2) (c .3)) The value of a, b and c may change, so don't do this like (setq tree ((a . 1) (b . 2) (c .3))) Thank you!