[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is buffer size fixed in batch mode?
From: |
David Kastrup |
Subject: |
Re: Is buffer size fixed in batch mode? |
Date: |
Wed, 07 Dec 2005 10:39:55 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Brian Elmegaard <brian@rkspeed-rugby.dk> 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 "<foo>" nil t)
> (replace-match "\\foo[bar]{baz}" nil t))
> )
>
> (save-excursion
> (while (re-search-forward "<foobar>\\(.*\\)</foobar>" 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
- Is buffer size fixed in batch mode?, Brian Elmegaard, 2005/12/01
- Re: Is buffer size fixed in batch mode?, Ian Zimmerman, 2005/12/02
- Message not available
- Re: Is buffer size fixed in batch mode?, Brian Elmegaard, 2005/12/03
- Re: Is buffer size fixed in batch mode?, Johan Bockgård, 2005/12/03
- Re: Is buffer size fixed in batch mode?, Brian Elmegaard, 2005/12/07
- Re: Is buffer size fixed in batch mode?,
David Kastrup <=
- Re: Is buffer size fixed in batch mode?, Brian Elmegaard, 2005/12/07
- Re: Is buffer size fixed in batch mode?, David Kastrup, 2005/12/07
- Re: Is buffer size fixed in batch mode?, Brian Elmegaard, 2005/12/07