help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Encoding differences between Emacs and Emacsclient?


From: Thorsten Jolitz
Subject: Encoding differences between Emacs and Emacsclient?
Date: Thu, 26 Sep 2013 23:26:43 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Hi List,

I call 'emacs -Q --batch' from another program and let it export an Org
file to html and return the result als string. Works fine so far.

To speed things up, I started an 'emacs -Q --daemon=my-emacs-server' and
now call it via emacsclient. Otherwise I do exactly the same as before.

But know the returned html is full of \n that are printed when loading
the html file in a browser:

,------------------------------------------------------------------------
|
| \n\n
| \nThese and quite a lot other markup types are supported:\n
|
| \n
| \n
| \n
| 1.1 Heading # Heading (level 3)
|
| \n
| \n
|
| \nSome italic words mixed with bold words look nice, while
| underlined\ntext is a bit overkill sometimes. An unordered list like\n
|
| \n\n
| \n
| List item 1 # List items\n
| \n
| List item 2\n
| \n
| \n\n
`------------------------------------------------------------------------

What happened here? Does the emacscient/server combination behave
different than emacs it batch mode? Its the same emacs version, both
started with -Q, in both cases only the relevant Org exporter libs
loaded - but what is printed to stdout/stderr looks quite different.

Any tips would be appreciated.

--
cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]