[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replacement for Common Lisp's GENSYM in Emacs Lisp
From: |
tomas |
Subject: |
Re: Replacement for Common Lisp's GENSYM in Emacs Lisp |
Date: |
Sun, 7 Mar 2010 06:48:35 +0100 |
User-agent: |
Mutt/1.5.15+20070412 (2007-04-11) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, Mar 06, 2010 at 05:19:43PM +0200, Teemu Likonen wrote:
> In Common Lisp GENSYM function generates unique symbol names. It seems
> that Emacs Lisp does not have similar function (unless with CL
> extension). In plain Emacs Lisp code and macros, what would you suggest
> as a replacement for GENSYM? Just some very unlikely names?
It seems `make-symbol' is what you are looking for. It generates an
uninterned symbol. Cf. Emacs Lisp manual "13.6.3 Local Variables in
Macro Expansions" to find an usage example.
Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFLkz4zBcgs9XrR2kYRAmYlAJ9u8h6o4RUYyjQrTM2BoHZViWsQ5ACaAsiu
WihLVHls9qY7oDOxCU4ysGM=
=3Ghx
-----END PGP SIGNATURE-----