unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: gnuist006@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: How to write a string to a file inside emacs ?
Date: Wed, 24 Oct 2007 03:17:17 -0000	[thread overview]
Message-ID: <1193195837.604586.170970@q3g2000prf.googlegroups.com> (raw)
In-Reply-To: <jwvlk9twcn9.fsf-monnier+gnu.emacs.help@gnu.org>

On Oct 23, 6:00 pm, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> > Kludgy feature: if START is a string, then that string is written
> > to the file, instead of any buffer contents, and END is ignored.
> > <--------It does not seem to work
>
> I'd be happy to help, but I need more info than "does not seem to work".
>
>         Stefan

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)

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

(write-region "astring"   "file2" )

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

  reply	other threads:[~2007-10-24  3:17 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 [this message]
2007-10-24 14:15         ` Stefan Monnier

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=1193195837.604586.170970@q3g2000prf.googlegroups.com \
    --to=gnuist006@gmail.com \
    --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).