From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: problem with elisp Date: 8 Oct 2008 18:59:25 GMT Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223494954 12036 80.91.229.12 (8 Oct 2008 19:42:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2008 19:42:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 08 21:43:32 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 1KnewH-0008Uo-Q9 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 21:43:17 +0200 Original-Received: from localhost ([127.0.0.1]:53254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnevE-00080t-25 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 15:42:12 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: individual.net TqK8bdNR31qQxrva1D8jZwwCcWqHP4UaN+wr9mp9/gNH0OYWRq Cancel-Lock: sha1:Hwcv61NJIlqZfDh+YTTncpExZPw= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.9 (Linux) Original-Xref: news.stanford.edu gnu.emacs.help:163220 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:58566 Archived-At: Seweryn Kokot wrote: > Could you explain to me why the following function doesn't work in the first define "doesn't work". what does happen? > (defun my-swap-string (string-a string-b) > (interactive "sFirst string to swap: \nsSecond string to swap: ") > (save-excursion > (let ((string-temp (make-temp-name ""))) ; this doesn't work include the line (message "%s" string-temp) right after the let, and see what string-temp is set to. FWIW your code works fine for me with make-temp-name... -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)