From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yFCbD3iT9l5mDgAA0tVLHw (envelope-from ) for ; Sat, 27 Jun 2020 00:31:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cFhFC3iT9l44WQAAbx9fmQ (envelope-from ) for ; Sat, 27 Jun 2020 00:31:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CE8939401D0 for ; Sat, 27 Jun 2020 00:31:50 +0000 (UTC) Received: from localhost ([::1]:44024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joyl1-0000Kp-Uw for larch@yhetil.org; Fri, 26 Jun 2020 20:31:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joykb-0000Ke-NU for emacs-orgmode@gnu.org; Fri, 26 Jun 2020 20:31:21 -0400 Received: from mail-ej1-f41.google.com ([209.85.218.41]:37839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joykX-0002Sf-Dw for emacs-orgmode@gnu.org; Fri, 26 Jun 2020 20:31:21 -0400 Received: by mail-ej1-f41.google.com with SMTP id mb16so10992888ejb.4 for ; Fri, 26 Jun 2020 17:31:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EKARFn9olNmUzCmPIc9ZBIurVF0FuZ9o9DjTv5Itce4=; b=VhOxySszb5zPzHrJjZY6TtinckizhI3xFP1My3ajwDLt0Wv/UH/hfabS1MVVHIZCNf W70Iq5IKToK6m0AsKXjIRmcl6rrBodXj4qTlfn3ZSaLcSCJYg5/b6tIscipWZYJiy26+ eJ2ieH8ONzm0RWPg0rDbyBeSwzt11eXn9lSZtfnph1QM+Pw0yLhBBp5DRjBC0baqTfh7 qJGT2I9rm75/0t34dy/Tpv6HOlu07AH2vM299ji2LVN7fhGagrY1uc2DCpAfMdw5EuYI +4R2rRpFxRgTosPc3/mB1LpomaIG3ZcE1mQwwaQkq6D+Cv8F5ql3rJ0fb9J6kZ5sQPt8 wdzw== X-Gm-Message-State: AOAM533IDRxWChxSw8k4VU045luGvehALyDfCqEQgGjyCSe8ptrSNv/K xJh/+vGdt3Z/1Xqppk9LOvjrkpNytaO9VOISgqI= X-Google-Smtp-Source: ABdhPJz+ybGV2IqZQvEWpyRjjGcmBPD5w7nUDDKLZhx18XULBo9p9blJBpdMGRRgNTqpEJ7mOer3ySZFxYM3ZyMRmAs= X-Received: by 2002:a17:906:4d18:: with SMTP id r24mr4727806eju.222.1593217875931; Fri, 26 Jun 2020 17:31:15 -0700 (PDT) MIME-Version: 1.0 References: <87d05nidu1.fsf@iki.fi> In-Reply-To: <87d05nidu1.fsf@iki.fi> From: ian martins Date: Fri, 26 Jun 2020 20:31:04 -0400 Message-ID: Subject: Re: Babel: parse error when output contains opening bracket To: Jarmo Hurri Content-Type: multipart/alternative; boundary="0000000000008b758b05a905f19b" Received-SPF: pass client-ip=209.85.218.41; envelope-from=ianxm1@gmail.com; helo=mail-ej1-f41.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/26 20:31:16 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=jhu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.91 X-TUID: vZS+wUYf1eCL --0000000000008b758b05a905f19b Content-Type: text/plain; charset="UTF-8" I've written an alternative org-java.el that doesn't have that problem. I wanted to add it to contrib/ but haven't been able to get access. if you want to try it I can post it somewhere. On Thu, Jun 25, 2020 at 7:29 AM Jarmo Hurri wrote: > > Greetings. > > In the org file below, the first babel block will evaluate just fine, > while the second will signal "End of file during parsing". The > difference is the opening bracket "[" in output. > > I think am running the most recent stable version: > Org mode version 9.3.7 (release_9.3.7-4-gba6ca7) > > Thanks for any ideas. > > Jarmo > > # > --------------------------------------------------------------------------- > * This will parse just fine > #+name: OK > #+begin_src java :exports results :classname OK :results output > class OK > { > public static void main (String[] args) { System.out.println > ("foo"); } > } > #+end_src > > #+RESULTS: OK > : foo > > * This will generate a parse error when evaluated > #+name: BAD > #+begin_src java :exports results :classname BAD :results output > class BAD > { > public static void main (String[] args) { System.out.println > ("[foo"); } > } > #+end_src > > > --0000000000008b758b05a905f19b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've written an alternative org-java.el that doesn'= ;t have that problem. I wanted to add it to contrib/ but haven't been a= ble to get access. if you want to try it I can post it somewhere.
=
On Thu= , Jun 25, 2020 at 7:29 AM Jarmo Hurri <jarmo.hurri@iki.fi> wrote:

Greetings.

In the org file below, the first babel block will evaluate just fine,
while the second will signal "End of file during parsing". The difference is the opening bracket "[" in output.

I think am running the most recent stable version:
Org mode version 9.3.7 (release_9.3.7-4-gba6ca7)

Thanks for any ideas.

Jarmo

# -------------------------------------------------------------------------= --
* This will parse just fine
=C2=A0 #+name: OK
=C2=A0 #+begin_src java :exports results :classname OK :results output
=C2=A0 =C2=A0 class OK
=C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 public static void main (String[] args) { System.out.p= rintln ("foo"); }
=C2=A0 =C2=A0 }
=C2=A0 #+end_src

=C2=A0 #+RESULTS: OK
=C2=A0 : foo

* This will generate a parse error when evaluated
=C2=A0 #+name: BAD
=C2=A0 #+begin_src java :exports results :classname BAD :results output
=C2=A0 =C2=A0 class BAD
=C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 public static void main (String[] args) { System.out.p= rintln ("[foo"); }
=C2=A0 =C2=A0 }
=C2=A0 #+end_src


--0000000000008b758b05a905f19b--