From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gnuist006@gmail.com Newsgroups: gmane.emacs.help Subject: Re: How to write a string to a file inside emacs ? Date: Wed, 24 Oct 2007 03:17:17 -0000 Organization: http://groups.google.com Message-ID: <1193195837.604586.170970@q3g2000prf.googlegroups.com> References: <1193156806.446070.169910@i38g2000prf.googlegroups.com> <1193157022.502345.219810@k35g2000prh.googlegroups.com> <1193157722.974559.53510@e34g2000pro.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: ger.gmane.org 1193197236 27772 80.91.229.12 (24 Oct 2007 03:40:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2007 03:40:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 05:40:36 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IkX6h-0002ta-Ta for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2007 05:40:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkX6Z-0003SS-JD for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Oct 2007 23:40:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q3g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 75.39.165.82 Original-X-Trace: posting.google.com 1193195838 10809 127.0.0.1 (24 Oct 2007 03:17:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 24 Oct 2007 03:17:18 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q3g2000prf.googlegroups.com; posting-host=75.39.165.82; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:153263 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48751 Archived-At: On Oct 23, 6:00 pm, Stefan Monnier 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" )