From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: Replacement for Common Lisp's GENSYM in Emacs Lisp Date: Sun, 7 Mar 2010 06:48:35 +0100 Message-ID: <20100307054835.GB13731@tomas> References: <87r5nx1nqo.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1267961726 23467 80.91.229.12 (7 Mar 2010 11:35:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Mar 2010 11:35:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Teemu Likonen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 07 06:46:48 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1No9KA-0003rU-95 for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Mar 2010 06:46:46 +0100 Original-Received: from localhost ([127.0.0.1]:39482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1No9K9-0003ie-Al for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Mar 2010 00:46:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1No9Ji-0003gX-Od for help-gnu-emacs@gnu.org; Sun, 07 Mar 2010 00:46:18 -0500 Original-Received: from [140.186.70.92] (port=51407 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1No9Jh-0003fl-Gl for help-gnu-emacs@gnu.org; Sun, 07 Mar 2010 00:46:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1No9Jc-0005Gj-Ub for help-gnu-emacs@gnu.org; Sun, 07 Mar 2010 00:46:17 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:45988 helo=www.elogos.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1No9Jc-0005GR-OZ for help-gnu-emacs@gnu.org; Sun, 07 Mar 2010 00:46:12 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id B52869004F; Sun, 7 Mar 2010 06:48:35 +0100 (CET) Content-Disposition: inline In-Reply-To: <87r5nx1nqo.fsf@mithlond.arda> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72380 Archived-At: -----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=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLkz4zBcgs9XrR2kYRAmYlAJ9u8h6o4RUYyjQrTM2BoHZViWsQ5ACaAsiu WihLVHls9qY7oDOxCU4ysGM=3D =3D3Ghx -----END PGP SIGNATURE-----