unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "rgb" <rbielaws@i1.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Problem using with-temp-file
Date: 8 Feb 2007 06:09:44 -0800	[thread overview]
Message-ID: <1170943783.942640.14840@h3g2000cwc.googlegroups.com> (raw)
In-Reply-To: <1170930615.412740.134390@h3g2000cwc.googlegroups.com>

> > After noticing that this
> > (with-temp-file "Test.txt" (insert "More testing"))
> > worked fine.
> > I realized wherein the problem lies
>
> > Debugger entered--entering a function:
> > * write-region(1 2943 "~/Data-2007-02-07-07:17.txt" nil 0)
>
> > The empty file's name is "Data-2007-02-07-07" not
> > "Data-2007-02-07-07:17.txt"
> > write-region must be mishandling an error of some kind.
>
> Looks like your Emacs is mistaking the ":" in the filename for the end
> of the filename.
> On MS Windows with GNU Emacs 21.3 this doesn't happen to me, the above
> works fine.

I've been using 22.0.x for years and really don't know what I'd do
without it.  So many things I take for granted wern't available in
21.3
>
> This could be a bug in filename handling in Emacs, or in the C library
> of the platform it is using.- Hide quoted text -
>
> - Show quoted text -

It's beyond me to tell if the name should have been checked by lisp
code (it wasn't) or the problem is within the C code of write-region
so a general bug report was made.

I can't help but be curious what 'works fine' means since : is
supposedly
illegal in MS filenames.  Do you get a file with : in the name à
la .emacs
or is the : missing but the contents still good or do you get an
error...

  reply	other threads:[~2007-02-08 14:09 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
2007-02-07 18:29     ` rgb
2007-02-08 10:30       ` Robert Thorpe
2007-02-08 14:09         ` rgb [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1170943783.942640.14840@h3g2000cwc.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).