[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is buffer size fixed in batch mode?
From: |
Brian Elmegaard |
Subject: |
Re: Is buffer size fixed in batch mode? |
Date: |
07 Dec 2005 08:53:26 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
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?
--
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk
- 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 <=
- 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
- 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