* Is buffer size fixed in batch mode?
@ 2005-12-01 10:37 Brian Elmegaard
2005-12-03 3:26 ` Ian Zimmerman
[not found] ` <mailman.17722.1133580378.20277.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 9+ messages in thread
From: Brian Elmegaard @ 2005-12-01 10:37 UTC (permalink / raw)
Hi,
I have made some simple lisp code that converts xml to
LaTeX. This runs fine when I have emacs open and have the xml in a
buffer.
If instead I run emacs as a batch opening the file and running the
elisp part of runs fine, but not all.
However, if I cleanup multiple spaces first it works.
So, does emacs in batch mode somehow fix the buffer size?
--
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Is buffer size fixed in batch mode?
2005-12-01 10:37 Is buffer size fixed in batch mode? Brian Elmegaard
@ 2005-12-03 3:26 ` Ian Zimmerman
[not found] ` <mailman.17722.1133580378.20277.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 9+ messages in thread
From: Ian Zimmerman @ 2005-12-03 3:26 UTC (permalink / raw)
Cc: help-gnu-emacs
Brian> If instead I run emacs as a batch opening the file and running
Brian> the elisp part of runs fine, but not all.
Please fix the grammar here first; the sense is lost.
--
A true pessimist won't be discouraged by a little success.
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <mailman.17722.1133580378.20277.help-gnu-emacs@gnu.org>]
* Re: Is buffer size fixed in batch mode?
[not found] ` <mailman.17722.1133580378.20277.help-gnu-emacs@gnu.org>
@ 2005-12-03 10:28 ` Brian Elmegaard
2005-12-03 14:32 ` Johan Bockgård
0 siblings, 1 reply; 9+ messages in thread
From: Brian Elmegaard @ 2005-12-03 10:28 UTC (permalink / raw)
Ian Zimmerman <nobrowser@gmail.com> writes:
> Please fix the grammar here first; the sense is lost.
Oops, sorry.
The question is: What differences should or could be expected when
interactively loading and running a lisp function compared to a call
like:
emacs foo.bar -l baz.el -f baz
--
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Is buffer size fixed in batch mode?
2005-12-03 10:28 ` Brian Elmegaard
@ 2005-12-03 14:32 ` Johan Bockgård
2005-12-07 7:53 ` Brian Elmegaard
0 siblings, 1 reply; 9+ messages in thread
From: Johan Bockgård @ 2005-12-03 14:32 UTC (permalink / raw)
Brian Elmegaard <brian@rkspeed-rugby.dk> writes:
> Oops, sorry.
> The question is: What differences should or could be expected when
> interactively loading and running a lisp function compared to a call
> like:
> emacs foo.bar -l baz.el -f baz
It depends on the function. Maybe you could tell us in more details
what you are trying to do?
--
Johan Bockgård
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Is buffer size fixed in batch mode?
2005-12-03 14:32 ` Johan Bockgård
@ 2005-12-07 7:53 ` Brian Elmegaard
2005-12-07 9:39 ` David Kastrup
0 siblings, 1 reply; 9+ messages in thread
From: Brian Elmegaard @ 2005-12-07 7:53 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Is buffer size fixed in batch mode?
2005-12-07 7:53 ` Brian Elmegaard
@ 2005-12-07 9:39 ` David Kastrup
2005-12-07 9:44 ` Brian Elmegaard
0 siblings, 1 reply; 9+ messages in thread
From: David Kastrup @ 2005-12-07 9:39 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-12-07 10:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-01 10:37 Is buffer size fixed in batch mode? Brian Elmegaard
2005-12-03 3:26 ` Ian Zimmerman
[not found] ` <mailman.17722.1133580378.20277.help-gnu-emacs@gnu.org>
2005-12-03 10:28 ` Brian Elmegaard
2005-12-03 14:32 ` Johan Bockgård
2005-12-07 7:53 ` Brian Elmegaard
2005-12-07 9:39 ` David Kastrup
2005-12-07 9:44 ` Brian Elmegaard
2005-12-07 10:21 ` David Kastrup
2005-12-07 10:32 ` Brian Elmegaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).