From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Is buffer size fixed in batch mode? Date: Wed, 07 Dec 2005 10:39:55 +0100 Organization: Organization?!? Message-ID: <853bl5ckk4.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1133959748 9193 80.91.229.2 (7 Dec 2005 12:49:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2005 12:49:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 07 13:49:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ejyhk-0007jC-59 for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Dec 2005 13:47:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ejyhx-00066H-ST for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Dec 2005 07:47:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!canoe.uoregon.edu!arclight.uoregon.edu!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!news.belwue.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:e5NL0Lua8Xy0aK83UcgDr3c7t4w= Original-Lines: 35 Original-NNTP-Posting-Date: 07 Dec 2005 10:39:37 MET Original-NNTP-Posting-Host: 44b344ce.newsread4.arcor-online.net Original-X-Trace: DXC=clPEXeY?mcH7ej[:C4ig8M:ejgIfPPldDjW\KbG]kaMHFYk:AnJB[CM90; `b1iH8GD1_LiI6ENVaM3>5MOK` 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:31736 Archived-At: Brian Elmegaard writes: > bojohan+news@dd.chalmers.se (Johan Bockgård) writes: > >> It depends on the function. Maybe you could tell us in more details >> what you are trying to do? > > I have auto-generated xml and I want to convert it to latex, so I do > (goto-char 1) > and a lot of > (save-excursion > (while (search-forward "" nil t) > (replace-match "\\foo[bar]{baz}" nil t)) > ) > > (save-excursion > (while (re-search-forward "\\(.*\\)" nil t) > (replace-match "\\\\foobar{\\1}" nil nil)) > ) > > At the end I did several replaces of multiple spaces, end of line > spaces, and so on. > > If I open the xml in a running emacs it works fine, but if I did it > with a batch it part of the tex disappeared in the output. > > The I decided to move the cleanup of multiple spaces and so on to the > beginning of the code and it runs fine. > > Is this to be expected? You likely did something wrong. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum