help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to write a string to a file inside emacs ?


From: Stefan Monnier
Subject: Re: How to write a string to a file inside emacs ?
Date: Wed, 24 Oct 2007 10:15:54 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> Can you make any of these work? I tried the non-kludge feature,
> which works and its not the path name. There is some debugger
> error which i cant understand.

> (write-region "astring" 2  "file2" APPEND)

Why 2?

> (write-region "astring"  "file2" APPEND)

You forgot the END argument.

> (write-region "astring"   "file2" )

Same here.

> (write-region "astring" 2  "file2" )

Again, why 2?

I use (write-region "foo" nil "/tmp/toto") and it works dandy.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]