From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp0 ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms0.migadu.com with LMTPS
	id OIs5Devbr2CfigAAgWs5BA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 27 May 2021 19:50:35 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp0 with LMTPS
	id +kPqCOvbr2DcJwAA1q6Kng
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 27 May 2021 17:50:35 +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 7F3F0AE10
	for <larch@yhetil.org>; Thu, 27 May 2021 19:50:34 +0200 (CEST)
Received: from localhost ([::1]:51520 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	id 1lmK9Q-0003Pf-R8
	for larch@yhetil.org; Thu, 27 May 2021 13:50:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59196)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <moptop99@gmail.com>)
 id 1lmK92-0003NM-3w
 for emacs-orgmode@gnu.org; Thu, 27 May 2021 13:50:08 -0400
Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]:42683)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <moptop99@gmail.com>)
 id 1lmK90-0006un-5G
 for emacs-orgmode@gnu.org; Thu, 27 May 2021 13:50:07 -0400
Received: by mail-vs1-xe2d.google.com with SMTP id j12so801310vsq.9
 for <emacs-orgmode@gnu.org>; Thu, 27 May 2021 10:50:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=O3MvJ0krwoCfaNX50fCqQalkLRSLNSd47JtX3+K2VKQ=;
 b=hVKvLKdrMLWnCeN+M2+JDI4esSUg1biV+vO218Z6pEujFcmH4I3zsMWCt6JnBFDIgG
 vhGmh7k2R3EKcNq/V7G8PguJKEJU0lcpl8D9ASA8RHDoqoG0TYhtAKHDXcDKpFr5EJsw
 278zvTa9Nf0c49DK5MQjjMYY/8CXcZqqi+c+IzTxVU+EENgUuSORem48g845dQydKUTA
 BrmGBmRorDD4sCSx7zu71wpgtudHQk84dfZDt71L1lXD3CBndxo8wq1BF15eWQlMYgSS
 3CrlLghvsRuH7Q2VwBHJ7RHG7ZpBVgBmFd6LDppa94a7Z2b/qmHh9XkiXQ5F4Nr34b6I
 kzrA==
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;
 bh=O3MvJ0krwoCfaNX50fCqQalkLRSLNSd47JtX3+K2VKQ=;
 b=cKSV2ud5k/hj9J+Nguh9FA/Lidw3aeDvgzt1O0xevKigMkliMde+M2xLGlXY6u9kTt
 JwUVaC8IKKg/mKYst0jwgfg8nOq0DsA6TUIQZsg+YmjSm3OWuQ3xqChBJJLr3kzmqxjy
 4CfUtHVCSRcnHWyhvvK+qTivk3zN0mxwhIppen1XQ9jqrnXBhKcJCP1UzzX+pYZUrM9i
 /1SnAidofY6/KwRSfPvRrVuIm+zPvwTlGmkIrVWKAz3MAXw8YjISPV/V7cuGh9bmQSNS
 5o3ytMPftI99dBJhw+kH0PjDPMFWAW7Luc/7NRwxGs4I2nn1K+o4+ivVHe8OtP7bAIWI
 AN/A==
X-Gm-Message-State: AOAM532sQmggCWjtNSY5FfWO/i0b6jpa83bOOjtYccQhxyotKw24mvyR
 rfSexvh0j2CDHlwIDc49qruOnFYQnvP9LTuFjt9eG68egKFjiw==
X-Google-Smtp-Source: ABdhPJyVAf17aD5rW+vuuBO2q8I2uwWAkBMZgv9qsUdvCzfSc8CyPh/siZIRh0na3471Bg7SVjQonJcy+ZkBEAZmSoQ=
X-Received: by 2002:a67:d09a:: with SMTP id s26mr4144565vsi.7.1622137804346;
 Thu, 27 May 2021 10:50:04 -0700 (PDT)
MIME-Version: 1.0
References: <87y2c1dym9.fsf@nicolasgoaziou.fr>
 <CAF-FPGPKYojRS7qTXgjABnDnvQYAU9H=R7VsuHvOmPGbLYohoA@mail.gmail.com>
 <878s41du82.fsf@nicolasgoaziou.fr>
 <CAF-FPGPO1COA1i3yq-GaZeVXMHQOwyknRj=nxaWUdjKNhGPgEg@mail.gmail.com>
 <CAF-FPGPgzewE+1ZhVYeWsxoHR8S9MYQ7+7WcV8LFSw7zUyKY5A@mail.gmail.com>
 <71d2f700-2b9b-d911-6012-30550a969b87@mailbox.org>
 <CAF-FPGMLQrPAZC3ZtGWxwFX2vDN6L-fXHPS8xNFrRixhRn4Hcg@mail.gmail.com>
 <87k0nkcocq.fsf@nicolasgoaziou.fr>
 <CAF-FPGMN-6OtohEEK71tkNfafapA3_CSt6RZUjvHQ-3gWKUncQ@mail.gmail.com>
 <CAF-FPGM_y_i4+OwACb1pp9nHFP0e-XGpK-54Vv10o9zBsPxONw@mail.gmail.com>
 <CAF-FPGP8nX39wcx0fXmnEN+f2zBCE2CDVTSq-4JmjPpCCToxJQ@mail.gmail.com>
 <CAF-FPGPz5ecQjQLsYXpGOBrO0jpwJM_rEjiXhZDAP==6eH+SMA@mail.gmail.com>
In-Reply-To: <CAF-FPGPz5ecQjQLsYXpGOBrO0jpwJM_rEjiXhZDAP==6eH+SMA@mail.gmail.com>
From: Matt Price <moptop99@gmail.com>
Date: Thu, 27 May 2021 13:49:53 -0400
Message-ID: <CAN_Dec97y4kU2M0wQ=LrZ=MqhGrxFepm5_y9D4Dh6BmfiQvbHw@mail.gmail.com>
Subject: Re: [wip-cite-new] Initial implementation of `csl' citation processor
To: Org Mode <emacs-orgmode@gnu.org>
Content-Type: multipart/alternative; boundary="0000000000009ad9c905c3536336"
Received-SPF: pass client-ip=2607:f8b0:4864:20::e2d;
 envelope-from=moptop99@gmail.com; helo=mail-vs1-xe2d.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: "Emacs-orgmode" <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
X-Migadu-Flow: FLOW_IN
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1622137834;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=O3MvJ0krwoCfaNX50fCqQalkLRSLNSd47JtX3+K2VKQ=;
	b=nfxm2KTDsmGfAnXEKT0tX9ktYfR5KMnmZYizWcy4I7GEGfKCUzD54gFmRW2I7UO/0FrLvu
	X+DjESt8AeQo4rIX1IQnh2uaQyxzg2qpE6xVPlE/Ka92J7rHsJ2topzzOjED9DujTiQ+0/
	swra08+fL7mnvvWDqle4DeKn8XBZ7OoDOY0M1YdM9F29p34luquvG46zirjrtZQdDi+1OO
	s3ey0/iZUTwtvX7/qH7gTuB7hOdkBs8t3eUKBOGc7nBa2gd6G+398Jf0c7VAtjP3UJml4Z
	26v7acSNi3X+pB/81a1oQgZpsBzpWi+yAwpB/iquh+HdKq25TOX59ZqiX6er8w==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622137834; a=rsa-sha256; cv=none;
	b=jcknEabL0QN4M1cKTG5d/QW4t+objtFsNNHO4Gwstls9Pproh3xxQGKe/golfKTyyDLvmw
	uBz2yiWdAnSetDz6rdjQl+gsOBHQxldxZcEow63kIG1nYzHFU4ffbdGbV829OhnL6vwoXU
	E3OfWtmgDx7nSCkYdlF65C0hFEBiQKoAf75huWSjsetBl40QJ8BeRsb8ErTdLaFsv5xKCl
	El/c+9IeZfF0Ed1PLOW4xguek3P+VN6E35U4Pxjt5iSOknKtDJpLHnN45LdnfVt+3miqfF
	SnYdQVc9l9ASFtkPyntsGkNHNQiJwcCYSTZllHqOPzR8Sd1LNv+nV4SatvlrYw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20161025 header.b=hVKvLKdr;
	dmarc=pass (policy=none) header.from=gmail.com;
	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-Migadu-Spam-Score: -3.13
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20161025 header.b=hVKvLKdr;
	dmarc=pass (policy=none) header.from=gmail.com;
	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-Migadu-Queue-Id: 7F3F0AE10
X-Spam-Score: -3.13
X-Migadu-Scanner: scn0.migadu.com
X-TUID: e0UZO731H+WS

--0000000000009ad9c905c3536336
Content-Type: text/plain; charset="UTF-8"

I'm trying to run this on a fairly recent emacs-master w/ native-comp
enable, using  ~emacs -Q ~/test-cites.org~, where test-cites.org is this:

#+cite_export: csl
"/home/matt/Zotero/styles/chicago-manual-of-style-16th-edition-inline-notes-for-syllabi.csl"
#+bibliography: /home/matt/.emacs.d/zotero-refs.bib
#+begin_src emacs-lisp
  (package-initialize)
  (add-to-list 'package-archives
      '("melpa" . "https://melpa.org/packages/"))
  (add-to-list 'load-path "~/src/org-mode/emacs/site-lisp/org")

  (org-reload)
  (add-to-list 'load-path "~/src/org-mode/lisp")
  (require 'oc)
  (require 'citeproc)
  (require 'oc-csl)
#+end_src

[cite:@zittrain_future_2008]

trying to execute the src block gives me a segfault on org-reload, with
different messages each time. Any idea how I should diagnose, or am I
perhaps doing something wrong?

On Thu, May 27, 2021 at 12:18 PM Bruce D'Arcus <bdarcus@gmail.com> wrote:

> On Thu, May 27, 2021 at 11:02 AM Bruce D'Arcus <bdarcus@gmail.com> wrote:
>
> > One other thing I tested just now not yet accounted for: a locator
> > whose values is a list; for example, that renders as (Doe 2019, pp.
> > 23, 25).
> >
> > Is there an easy way to handle that?
>
> Nevermind; this works as expected.
>
> [cite:@latexcompanion p.23, 24]
>
> Bruce
>
>

--0000000000009ad9c905c3536336
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I&#39;m trying to run this on a fairly recent emacs-m=
aster w/ native-comp enable, using=C2=A0 ~emacs -Q ~/<a href=3D"http://test=
-cites.org">test-cites.org</a>~, where <a href=3D"http://test-cites.org">te=
st-cites.org</a> is this:</div><div><br></div><div>#+cite_export: csl &quot=
;/home/matt/Zotero/styles/chicago-manual-of-style-16th-edition-inline-notes=
-for-syllabi.csl&quot;<br>#+bibliography: /home/matt/.emacs.d/zotero-refs.b=
ib<br>#+begin_src emacs-lisp<br>=C2=A0 (package-initialize)<br>=C2=A0 (add-=
to-list &#39;package-archives<br>	 =C2=A0 =C2=A0 =C2=A0 &#39;(&quot;melpa&q=
uot; . &quot;<a href=3D"https://melpa.org/packages/">https://melpa.org/pack=
ages/</a>&quot;))<br>=C2=A0 (add-to-list &#39;load-path &quot;~/src/org-mod=
e/emacs/site-lisp/org&quot;)<br>=C2=A0<br>=C2=A0 (org-reload)<br>=C2=A0 (ad=
d-to-list &#39;load-path &quot;~/src/org-mode/lisp&quot;)<br>=C2=A0 (requir=
e &#39;oc)<br>=C2=A0 (require &#39;citeproc)<br>=C2=A0 (require &#39;oc-csl=
)<br>#+end_src<br><br>[cite:@zittrain_future_2008]<br></div><div><br></div>=
<div>trying to execute the src block gives me a segfault on org-reload, wit=
h different messages each time. Any idea how I should diagnose, or am I per=
haps doing something wrong? <br></div><div><br></div><div class=3D"gmail_qu=
ote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, May 27, 2021 at 12:18 PM=
 Bruce D&#39;Arcus &lt;<a href=3D"mailto:bdarcus@gmail.com">bdarcus@gmail.c=
om</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
">On Thu, May 27, 2021 at 11:02 AM Bruce D&#39;Arcus &lt;<a href=3D"mailto:=
bdarcus@gmail.com" target=3D"_blank">bdarcus@gmail.com</a>&gt; wrote:<br>
<br>
&gt; One other thing I tested just now not yet accounted for: a locator<br>
&gt; whose values is a list; for example, that renders as (Doe 2019, pp.<br=
>
&gt; 23, 25).<br>
&gt;<br>
&gt; Is there an easy way to handle that?<br>
<br>
Nevermind; this works as expected.<br>
<br>
[cite:@latexcompanion p.23, 24]<br>
<br>
Bruce<br>
<br>
</blockquote></div></div>

--0000000000009ad9c905c3536336--