From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brian Elmegaard Newsgroups: gmane.emacs.help Subject: Re: Is buffer size fixed in batch mode? Date: 07 Dec 2005 08:53:26 +0100 Message-ID: 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 1133943187 25481 80.91.229.2 (7 Dec 2005 08:13:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2005 08:13:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 07 09:13:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjuPj-0003RV-3h for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Dec 2005 09:12:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjuPv-0005ds-Ei for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Dec 2005 03:12:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 32 Original-NNTP-Posting-Host: 80.166.154.230 Original-X-Trace: news.sunsite.dk DXC=PBHdK]eojk<2]0d4PBaYSB=nbEKnk; BkJCK@5_U3; Y@@S3>dFS@9BJoU_UU3>m0?oA4lb0o658eJLdeKRMDo; f_Q`M54Mcb2 Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:136121 Original-To: help-gnu-emacs@gnu.org 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:31732 Archived-At: 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? -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk