all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to use a symbol and its value to create alist?
@ 2015-08-11 13:52 Navy Cheng
  2015-08-11 15:21 ` Ian Zimmerman
  0 siblings, 1 reply; 11+ messages in thread
From: Navy Cheng @ 2015-08-11 13:52 UTC (permalink / raw)
  To: help-gnu-emacs

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!




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-08-12  7:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.8135.1439301205.904.help-gnu-emacs@gnu.org>
2015-08-11 14:39 ` How to use a symbol and its value to create alist? Pascal J. Bourguignon
2015-08-12  1:57   ` Navy Cheng
2015-08-12  0:21 ` Barry Margolin
2015-08-12  1:35   ` Navy Cheng
2015-08-11 13:52 Navy Cheng
2015-08-11 15:21 ` Ian Zimmerman
2015-08-12  1:46   ` Navy Cheng
     [not found]   ` <mailman.8160.1439343998.904.help-gnu-emacs@gnu.org>
2015-08-12  2:12     ` Pascal J. Bourguignon
2015-08-12  2:18       ` Pascal J. Bourguignon
2015-08-12  5:06         ` Navy Cheng
     [not found]         ` <mailman.8170.1439355992.904.help-gnu-emacs@gnu.org>
2015-08-12  7:03           ` Pascal J. Bourguignon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.