From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2PmKKldyrWL1XQEAbAwnHQ (envelope-from ) for ; Sat, 18 Jun 2022 08:36:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uGqAKldyrWIA+wAAauVa8A (envelope-from ) for ; Sat, 18 Jun 2022 08:36:07 +0200 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 6B0482D9D4 for ; Sat, 18 Jun 2022 08:36:07 +0200 (CEST) Received: from localhost ([::1]:54246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2S3y-0006jc-7D for larch@yhetil.org; Sat, 18 Jun 2022 02:36:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2S2C-0006gV-Mq for emacs-orgmode@gnu.org; Sat, 18 Jun 2022 02:34:16 -0400 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:33478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2S2A-0001Gm-1S for emacs-orgmode@gnu.org; Sat, 18 Jun 2022 02:34:15 -0400 Received: by mail-io1-xd30.google.com with SMTP id p69so6541921iod.0 for ; Fri, 17 Jun 2022 23:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=x6URaC26AvsaiFoT4qQ7gbeOcahtfwTtE6YnsYlEXW0=; b=bAzHsa0+ulsQ3UDkBbPdOF6VXhnVBd9Dn2sf+OPuJdqA290oIMc1aV+ajftv0o66k4 9ojqXdcc0lU7LroKxjVM5srsIEnTQ70aX5eqyLS7Ga9gt5NyzqNZjFmQPrxPXxI2C1m0 5sRjbX9MgBlUqbM0YyWZ1k/bxsKcZQ4cfcMBjCLitc1+22y3gqgdCvCv/9cy/DRAQLe0 eFd6h2GgaqzUmdwxZtdykZuu7ZEEhGfKL3ufXT3h0xY7VcTi1oh+QmbIlA/3YyCL8JSI UAs6zgNfCsiLwlK6d+dN151ZP8Felvz0FWRcS9/yHjeLJi0AzwRbjDnO/eoP84Mpn7En J6LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=x6URaC26AvsaiFoT4qQ7gbeOcahtfwTtE6YnsYlEXW0=; b=Qrl2kVNmsyER5APeoXQMsqRPIYgWaCZjvyptyVRi/BI8EyKMZluh6X/b1j0MKB3UDY xWXt+BhJFHw4OcjAA/pFqgcA1QFDzDNL4PWSlgCgyyCkBWu2XSpZIAAngThXt46hbWzH 36VP/jBrldY+ePGuXh370EFV5oyjADHe32IgHQVsaOlwRG5577jgr++0u15qVo7LIive zphPPjHaARS6JwKckZa2pkatLxFXKlZZWiFoU/txg1b6L9uGWRpghJG1ooHudMU2P3HV IZJUwXdVdACiSbIPfMxiw5BL+Qbx6PI1lx6vDrnkY3tTMN89L1WK8HzsWitUt4wQoDo+ IEOQ== X-Gm-Message-State: AJIora+s6UqyTIET923ddubxNMqj/CYdIU6b1UFHGZ/9DHKA6M06DrDS 7ddt2pmmKvVsTItj5doKwIzebDfKe30SN0SvvqWHV21JYT8= X-Google-Smtp-Source: AGRyM1uqSqOCVorqoFtuO3bquWvjSuvzZOxTgHXsIGRDBx0vNPoUxdEdEZmY+NuphqOphhOw5Jjc9MI0B64cgAQ+m+4= X-Received: by 2002:a05:6638:2401:b0:333:f1fe:79ef with SMTP id z1-20020a056638240100b00333f1fe79efmr7212434jat.87.1655534052096; Fri, 17 Jun 2022 23:34:12 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?RGF2aWQgTHVrZcWh?= Date: Sat, 18 Jun 2022 08:34:01 +0200 Message-ID: Subject: oc-basic: CSL-JSON year as number vs. string (nativecomp?) To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d30; envelope-from=dafydd.lukes@gmail.com; helo=mail-io1-xd30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655534167; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=x6URaC26AvsaiFoT4qQ7gbeOcahtfwTtE6YnsYlEXW0=; b=LNv01IjWXPhyyNnB8devqG5EkwtwM9MapTS4trVFvOKSvVhKrQafEc1HajS16Tw1bSnNjY 3iHSr+/Fb5gKpQf7qyEMFMrPZGwvFWI1D9Td96pjQ7Hb8QhL43nCtr/uL6ooivrAeNqN0w SqsvY3wlHzoz26a7jweqZENAAtxyn5C5yRON39ZfJZWCpzVfWSt1fzA5tf7lsh8hRd4K3o 43mFL7F4TLwy2tlGUrmBXwdBUFjmyXePZ9R1sSgGBR5goPAQjLagHUwEzUsX26aIGaQVl8 kl+4L51lXRWTDWQj3HMaLDNGIoKdkK2SMQbTGiL9bF7LMB1pPlCoXUFBi0zsyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655534167; a=rsa-sha256; cv=none; b=REZu9++82YnyU77bhbmhOLDC1+M+amyolpls6OzzwKa3ss14JUadsXOYOu194MwKCbikQ5 gwoaTn9ApfbG92iwn1HmMk8e3EapfVpo1ceKoljifyiky9iVDvEJOKsqlwdVfnfa5doMJz YLSsUfdZlMFzMvOkWf3g3fwFUMA+T9mdpWb4YcJ7HWrLxvudIDLrkb/RfRWTiBtoRwtEx5 Rd4iaiI2AYy7VIrOsaeHtm5VTcAVjD7/CVuQksPiiTtOxg+iI702yIY0tESzu9LRBRXHjw gOpGRQvFx5DgQo4hx5wDVxglAGvRynslwj5jPB600c5zUDy6PnrgcfhYbMrwuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bAzHsa0+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bAzHsa0+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6B0482D9D4 X-Spam-Score: -7.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8SGBdwFkyKS9 Hi all, I've run into more problems with CSL-JSON support in oc-basic (previously: https://list.orgmode.org/CAEPTPExcZKGAm3v-brzezfCwMM4h3hQtOq+89Qg+5ULJq1K4Yw@mail.gmail.com/). I recently started to get errors like the following: Error during redisplay: (jit-lock-function 544) signaled (wrong-type-argument "Argument is not a string or a secondary string: 2007") This patch makes them go away: diff --git a/lisp/oc-basic.el b/lisp/oc-basic.el index a937f7513..9e00310a4 100644 --- a/lisp/oc-basic.el +++ b/lisp/oc-basic.el @@ -189,7 +189,7 @@ Return a hash table with citation references as keys and fields alist as values. (cons 'year (cond ((consp date) - (caar date)) + (number-to-string (caar date))) ((stringp date) (replace-regexp-in-string (rx In this case, date is an array of numbers, so (caar date) is a number (the publication year). Converting it to a string is the obvious fix. Not sure why I haven't run into this error earlier, but I switched to Emacs 28 somewhat recently, so nativecomp may be the problem here? It sure seems plausible it wouldn't like a number where a string is expected. Best, David