[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem using with-temp-file
From: |
rgb |
Subject: |
Re: Problem using with-temp-file |
Date: |
7 Feb 2007 10:05:09 -0800 |
User-agent: |
G2/1.0 |
On Feb 7, 10:52 am, "Robert Thorpe" <rtho...@realworldtech.com> wrote:
> On Feb 7, 3:52 pm, "rgb" <rbiel...@i1.net> wrote:
>
> > When I use with-temp-file I end up with an empty file although the
> > trace doesn't show me any good reason for the file being empty.
>
> > Does anyone see why I get an empty file?
> > I inserted the call to debug and looked at the temp buffer to be sure
> > the correct data really was in the buffer. The arguments to write-
> > region seem to confirm that it's working against the correct
> > buffer....
>
> Could you post your code too? It would help.
By "your code" you must mean the contents of get-my-data?
It's big and messy but I tried to whittle it down.
At that point I found that when I brought it all the way down to
(defun get-my-data () "hello")
I still ended up with an empty file.
At which point I tried this with the same results
(with-temp-file my-data-file (insert "This really sucks"))
- Problem using with-temp-file, rgb, 2007/02/07
- Re: Problem using with-temp-file, Robert Thorpe, 2007/02/07
- Re: Problem using with-temp-file,
rgb <=
- Re: Problem using with-temp-file, rgb, 2007/02/07
- Re: Problem using with-temp-file, Robert Thorpe, 2007/02/08
- Re: Problem using with-temp-file, rgb, 2007/02/08
- Re: Problem using with-temp-file, Robert Thorpe, 2007/02/08
- Re: Problem using with-temp-file, Kevin Rodgers, 2007/02/10
- Re: Problem using with-temp-file, Stefan Monnier, 2007/02/08
- Re: Problem using with-temp-file, Juanma Barranquero, 2007/02/09