all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "rgb" <rbielaws@i1.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Problem using with-temp-file
Date: 7 Feb 2007 10:05:09 -0800	[thread overview]
Message-ID: <1170871508.908148.287000@p10g2000cwp.googlegroups.com> (raw)
In-Reply-To: <1170867163.601581.206430@a75g2000cwd.googlegroups.com>

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"))

  reply	other threads:[~2007-02-07 18:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-07 15:52 Problem using with-temp-file rgb
2007-02-07 16:52 ` Robert Thorpe
2007-02-07 18:05   ` rgb [this message]
2007-02-07 18:29     ` rgb
2007-02-08 10:30       ` Robert Thorpe
2007-02-08 14:09         ` rgb
2007-02-08 16:02           ` Robert Thorpe
2007-02-10  9:38             ` Kevin Rodgers
2007-02-09  4:38         ` Stefan Monnier
2007-02-09  9:02           ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1170871508.908148.287000@p10g2000cwp.googlegroups.com \
    --to=rbielaws@i1.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.