all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How to write a string to a file inside emacs ?
Date: Wed, 24 Oct 2007 10:15:54 -0400	[thread overview]
Message-ID: <jwvwstctx9m.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 1193195837.604586.170970@q3g2000prf.googlegroups.com

> 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	other threads:[~2007-10-24 14:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-23 16:26 How to write a string to a file inside emacs ? gnuist006
2007-10-23 16:30 ` gnuist006
2007-10-23 16:42   ` gnuist006
2007-10-23 16:45     ` Rainer Joswig
2007-10-23 17:00       ` gnuist006
2007-10-24  8:45       ` Xah Lee
2007-10-24  8:49       ` Xah Lee
2007-10-24 11:05         ` Bastien
2007-10-24 21:17         ` George Neuner
2007-10-24 22:16         ` Rainer Joswig
2007-10-23 17:05     ` gnuist006
2007-10-24  1:00     ` Stefan Monnier
2007-10-24  3:17       ` gnuist006
2007-10-24 14:15         ` Stefan Monnier [this message]

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=jwvwstctx9m.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.