help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with elisp


From: Nikolaj Schumacher
Subject: Re: problem with elisp
Date: Wed, 08 Oct 2008 21:05:42 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin)

Seweryn Kokot <sewkokot@gmail.com> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]