From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacsclient sends ^J, PicoLisp receives _
Date: Wed, 26 Feb 2014 11:57:11 +0100 [thread overview]
Message-ID: <87mwhew394.fsf@gmail.com> (raw)
In-Reply-To: 87wqgiw5bw.fsf@gmail.com
Thorsten Jolitz <tjolitz@gmail.com> writes:
ok, I figured out that the problem is actually a different one than
described. This is what I see in an Emacs buffer when I'm in
Emacs(client) and let Emacs produce the nested list that will be sent
to PicoLisp:
> Emacsclient sends this:
>
> #+begin_src picolisp
> ## sent from Emacs
> (section (parent-id 8) "[2013-06-28 Fr 11:01]^J")
> ^J(headline (org-elem-id 12 ...) )
> #+end_src
but when I go to the other side and call Emacsclient from PicoLisp and
redirect what is sent into a file, it looks like this:
#+begin_src picolisp
(section (parent-id 8) \"[2013-06-28 Fr
11:01]^J\")_^J (headline (org-elem-id 12 ...) )
#+end_src
thus the underscore (_) is already present in the nested list before it
is sent to PicoLisp, so it must be a problem on the Emacs side (and it
is not that ^J is transformed into _, ^J is treated correctly, but for
some reason the unexpected _ is printed in this place).
So it might rather be a problem with the Org-mode exporter who
produces this nested list from an Org-mode file/buffer. So the
real questions are probably:
1. what invisible character might be transformed into an _ by the
exporter?
2. Why does the exporter behave differently when called from Emacs on
an open Org-mode buffer (correct output) then when called from an
external program (incorrect output with strange underscore)?
I will post this on the Org-mode mailing list too, but any hints from
this mailing list are still welcome.
--
cheers,
Thorsten
next prev parent reply other threads:[~2014-02-26 10:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 10:12 Emacsclient sends ^J, PicoLisp receives _ Thorsten Jolitz
2014-02-26 10:57 ` Thorsten Jolitz [this message]
2014-02-26 15:54 ` Thorsten Jolitz
[not found] ` <mailman.16107.1393430045.10748.help-gnu-emacs@gnu.org>
2014-02-28 10:17 ` duthen01
2014-02-28 18:59 ` Thorsten Jolitz
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwhew394.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.
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).