From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Exporter prints strange and unwanted underscore Date: Wed, 26 Feb 2014 12:23:25 +0100 Message-ID: <87a9dew21e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIcZd-0003pW-2g for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 06:22:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIcZS-0005Bz-VR for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 06:22:49 -0500 Received: from plane.gmane.org ([80.91.229.3]:33366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIcZS-0005Bp-LU for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 06:22:38 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WIcZR-0008RA-JV for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 12:22:37 +0100 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 12:22:37 +0100 Received: from tjolitz by e178059018.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Feb 2014 12:22:37 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi List, [This was posted on the Emacs help mailing list too with a different subject - before I figured out it might rather be an Org-mode problem.] This is what I see in a temporary Emacs buffer when I'm in Emacs(client) and let my Org-mode exporter produce a nested list as output that will be sent to PicoLisp: #+begin_src picolisp (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 a strange and unwanted underscore (_) is printed before the ^J. This is how the respective snippet looks in the original Org file: ,--------------------------------------------------------- | * header 2 :TASK: | [2013-06-28 Fr 11:01] | ** subheader 1 `--------------------------------------------------------- It looks like a problem with the Org-mode exporter who produces this nested list from an Org-mode file/buffer. So the questions are probably: 1. what invisible character behind the inactive timestamp 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 in the temporary buffer) then when called from an external program (incorrect output with strange underscore in the file where output was redirected)? Any hints are welcome. -- cheers, Thorsten