all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Linefeeds (\n) to stdout
Date: Thu, 10 Oct 2013 19:17:50 +0200	[thread overview]
Message-ID: <87mwmhkptt.fsf@gmail.com> (raw)
In-Reply-To: jwvzjqhxs4u.fsf-monnier+gmane.emacs.help@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I would call that at least strange behaviour, if not a bug.
>
> M-x report-emacs-bug

I can file a bug-report later, but currently I would rather need to know
what is the matter with emacsclient? And find some kind of work-around
pretty soon ...

I output the html produced by Emacs with `princ', and with standalone
Emacs, this is received by the calling program as expected - \n are
actual line-breaks, \" are printed as  " (unquoted) etc.

But with emacsclient, \n are printed verbatim, just like the \" etc.
Furthermore, the whole html string send by Emacs is printed enclosed in
double-quotes. And there are some random underscores in the text parts
of the html page, but I'm not sure if this only happens with
emacsclient.

To me it seems 'the right thing' to do

,---------------------------------------------
| (princ (function-that-returns-a-string ...))
`---------------------------------------------

and since emacsclient isn't really a brandnew feature, I wonder if
nobody witnessed the same problem before? The guys who wrote
'org-protocol.el' obviously dealt with this problem, but on the Emacs
side, when processing input from another application.

I hacked together some code on the calling PicoLisp-program side that
post-processes the html-string received from Emacs (via emacsclient) -
but is this really the only way to deal with this problem?

--
cheers,
Thorsten




      reply	other threads:[~2013-10-10 17:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-07 20:24 Linefeeds (\n) to stdout Thorsten Jolitz
2013-10-10  9:42 ` Thorsten Jolitz
2013-10-10 11:49   ` Stefan Monnier
2013-10-10 17:17     ` Thorsten Jolitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwmhkptt.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.