From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: problem with elisp Date: Wed, 08 Oct 2008 21:05:42 +0200 Message-ID: References: <87od1u7w3z.fsf@poczta.po.opole.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223493395 6097 80.91.229.12 (8 Oct 2008 19:16:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2008 19:16:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Seweryn Kokot Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 08 21:17:33 2008 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.50) id 1KneXK-0003FA-PV for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 21:17:31 +0200 Original-Received: from localhost ([127.0.0.1]:56505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KneWG-00061D-Tx for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 15:16:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KneLz-0008W3-56 for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 15:05:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KneLy-0008VU-DP for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 15:05:46 -0400 Original-Received: from [199.232.76.173] (port=54813 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KneLy-0008VM-AX for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 15:05:46 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:35891) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KneLx-0000s4-Om for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 15:05:45 -0400 Original-Received: from thursday (BAH4242.bah.pppool.de [77.135.66.66]) by dd18200.kasserver.com (Postfix) with ESMTP id EE84B1802B21D; Wed, 8 Oct 2008 21:05:48 +0200 (CEST) In-Reply-To: <87od1u7w3z.fsf@poczta.po.opole.pl> (Seweryn Kokot's message of "Wed\, 08 Oct 2008 20\:57\:52 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) X-detected-operating-system: by monty-python.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:58561 Archived-At: Seweryn Kokot wrote: > Could you explain to me why the following function doesn't work in the first > version and when swapping line > (let ((string-temp (make-temp-name ""))) > with > (let ((string-temp "@temp@")) > it works correctly? Could you specify what's not working? It seems to work for me. `make-temp-name' is not a good idea for what you're doing, though. While the same string will never be returned twice, there is no guarantee that the string doesn't exist in your buffer. So make sure you use a very unique prefix. On the other hand, there's no added benefit from using `make-temp-name' instead of just the prefix. regards, Nikolaj Schumacher