From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Emacsclient sends ^J, PicoLisp receives _ Date: Wed, 26 Feb 2014 11:57:11 +0100 Message-ID: <87mwhew394.fsf@gmail.com> References: <87wqgiw5bw.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1393412215 11164 80.91.229.3 (26 Feb 2014 10:56:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2014 10:56:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 26 11:57:00 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WIcAd-0006ik-MX for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Feb 2014 11:56:59 +0100 Original-Received: from localhost ([::1]:39524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIcAd-0000tL-Cm for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Feb 2014 05:56:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIcAM-0000t7-Ao for help-gnu-emacs@gnu.org; Wed, 26 Feb 2014 05:56:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIcAF-0004YP-0s for help-gnu-emacs@gnu.org; Wed, 26 Feb 2014 05:56:42 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:33033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIcAE-0004YF-QM for help-gnu-emacs@gnu.org; Wed, 26 Feb 2014 05:56:34 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WIcAA-0004lo-Na for help-gnu-emacs@gnu.org; Wed, 26 Feb 2014 11:56:30 +0100 Original-Received: from e178059018.adsl.alicedsl.de ([85.178.59.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Feb 2014 11:56:30 +0100 Original-Received: from tjolitz by e178059018.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Feb 2014 11:56:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178059018.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:BaXQItrThbVjWsAqy/Da/Dew57M= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96208 Archived-At: Thorsten Jolitz 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