RE: doc string of with-temp-file

2005-12-27 Thread Drew Adams
> My point is that the doc string of `with-temp-file' says that > a new buffer is _created_, used to evaluate stuff, and then > written to its file. It says nothing about the buffer being > _temporary_ (i.e., being deleted after being saved). Indeed it doesn&#

Re: doc string of with-temp-file

2005-12-27 Thread Stefan Monnier
> My point is that the doc string of `with-temp-file' says that a new buffer > is _created_, used to evaluate stuff, and then written to its file. > It says nothing about the buffer being _temporary_ (i.e., being deleted > after being saved). Indeed it doesn't a

RE: doc string of with-temp-file

2005-12-27 Thread Drew Adams
> The doc string of with-temp-file should mention that the new buffer > created is killed at the end. > I tried to do this: > (unwind-protect > (with-temp-file "foo" (pp something (current-buffer))) > (kill-buffer "foo"))

Re: doc string of with-temp-file

2005-12-27 Thread Stefan Monnier
> The doc string of with-temp-file should mention that the new buffer > created is killed at the end. > I tried to do this: > (unwind-protect > (with-temp-file "foo" (pp something (current-buffer))) > (kill-buffer "foo")) You seem to also

doc string of with-temp-file

2005-12-26 Thread Drew Adams
The doc string of with-temp-file should mention that the new buffer created is killed at the end. I tried to do this: (unwind-protect (with-temp-file "foo" (pp something (current-buffer))) (kill-buffer "foo")) If the doc string had been clearer, I would only have do