From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4NwYDLGN52RHBQEASxT56A (envelope-from ) for ; Thu, 24 Aug 2023 19:04:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8EQjDLGN52QrLAEA9RJhRA (envelope-from ) for ; Thu, 24 Aug 2023 19:04:49 +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 004AD445C8 for ; Thu, 24 Aug 2023 19:04:49 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692896689; 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; bh=jcJGiDfybv3U13SS/ZoVHJ+0vwckaNqm/9MHtni82dM=; b=UCchRRkJiPKrOgPIYLB5rhRud633GNB7st9HXC+7hc/l5nBM03dKELnAjPxfxVfWBVCS1b WEUrmb/TasSI73FoQPBEScX/r3+trDDAC/xk2B2XCDFrfFlVT382oGVXu3uy2ca/nFT4v2 YQHvt+d2HaCKHUz3wqYPpMum9lD/O2F8Kg8J8X+6f1urPyRS3Tjnt47Odjgs5fHQAzZSre XVsfK2WdyjESjUjJ+DEbkRp+q4n7RdKvezC7Y2PtTfkePgCzxoEoUhuVvOv6FGkkUc0Ita o3pE6SD6PpdYGsUrvMuNaFtk5UTQJCmOUL1VPGTFGxSybmY28oUCGIwF/3kvTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692896689; a=rsa-sha256; cv=none; b=uZjaqXAtBZ4MSQmmvwAf9aYUqhe46txwZ6xlu5eY73TgMtll0jd26rAsxZkBPG3tcpe7b4 LO0e8JODS2QVW8G+Cxjaqf9z1Co3n96qpx5SlImbMaHFsqzhrT7+wQIz2h5pRLhykDvXtQ giUfenbkQOffh91tSF54R70tUXzKeZm0QkRd8VJut0AzwSwnZEKWiN5ciwagLXB8SCr8SE 9qBpV/pW8/GnYGNKxCcEWxuzSzgyxwkvHjtZ863XnPWvUxMH5BxYJJ1FJXccdc3L1hNzCU oJ4vzdo1jhllHiFFeh9qFJ35C1Nf28r7zjZxadJUSxa+EhAN6AqPdbD8E2lybw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZDkW-0005yL-3x; Thu, 24 Aug 2023 13:04:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZDY6-0002U2-8o for emacs-orgmode@gnu.org; Thu, 24 Aug 2023 12:51:10 -0400 Received: from glacier.snowplains.org ([109.228.56.69]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZDY2-0002N6-Ff for emacs-orgmode@gnu.org; Thu, 24 Aug 2023 12:51:09 -0400 Received: from [62.3.101.252] (sekhmet.ninecats.org [62.3.101.252]) by glacier.snowplains.org (Postfix) with ESMTPSA id 3E3987F894 for ; Thu, 24 Aug 2023 17:51:03 +0100 (BST) Content-Type: multipart/mixed; boundary="------------SnIzDmunFt1lG00BFfiNVOsm" Message-ID: Date: Thu, 24 Aug 2023 17:50:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-GB From: Margaret Patterson Subject: [BUG] org-cite-insert fails to open json format bibliographies that contain entries for books with editors but no authors [9.6.6 (release_9.6.6 @ /snap/emacs/current/usr/share/emacs/29.1/lisp/org/)] To: emacs-orgmode@gnu.org Received-SPF: pass client-ip=109.228.56.69; envelope-from=emacs-m@ninecats.org; helo=glacier.snowplains.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 24 Aug 2023 13:03:58 -0400 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -6.20 X-Spam-Score: -6.20 X-Migadu-Queue-Id: 004AD445C8 X-TUID: wflTCoihxfiN This is a multi-part message in MIME format. --------------SnIzDmunFt1lG00BFfiNVOsm Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Since upgrading to emacs 29.1 org-cite-insert no longer copes with bibliography files in json format where there is an entry for a book that has only editors and no author. Expected behaviour: Running org-cite-insert opens the bibliography file and allows me to search for a citation and insert it in the org file I’m editing. Actual behaviour: Running org-cite-insert fails to open the bibliography file with the following error: org-cite-basic--key-completion-table: Wrong type argument: stringp, (((family . "Asimov") (given . "Isaac")) ((family . "Greenberg") (given . "Martin H."))) (The exact error alters depending on the contents of the entry it fails on.) Reproducing: Attached are two bibliography files, citation-test-only-editor.json and citation-test-author.json, the first of which has a single entry of a book with two editors and no author, the second has the same book but I’ve changed one editor to an author.  Create an org file with “#+bibliography: citation-test-only-editor.json” or “#+bibliography: citation-test-author.json” at the top, and try running org-cite-insert. Notes: - The problem persists with emacs -Q. - It is not a problem if I export my bibliography as a .bib file, just when it’s a .json file. - It worked as I expected in emacs 28.2. - Other parts of using org-cite seem to be unaffected but I haven’t exhaustively tested – I have just noted that manually typing in the citation and exporting the org file with a #+print_bibliography: line worked as expected and fontifying manually entered citations with org-cite-csl-activate works as expected. Best wishes, Margaret Patterson. Emacs  : GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)  of 2023-08-04 Package: Org mode version 9.6.6 (release_9.6.6 @ /snap/emacs/current/usr/share/emacs/29.1/lisp/org/) --------------SnIzDmunFt1lG00BFfiNVOsm Content-Type: application/json; name="citation-test-author.json" Content-Disposition: attachment; filename="citation-test-author.json" Content-Transfer-Encoding: base64 WwogIHsiaWQiOiJhc2ltb3ZJc2FhY0FzaW1vdlByZXNlbnRzMTk4MyIsImF1dGhvciI6W3si ZmFtaWx5IjoiQXNpbW92IiwiZ2l2ZW4iOiJJc2FhYyJ9XSwiY2FsbC1udW1iZXIiOiJDUEIg Qm94IG5vLiAyNzQ0IHZvbC4gMjIiLCJjaXRhdGlvbi1rZXkiOiJhc2ltb3ZJc2FhY0FzaW1v dlByZXNlbnRzMTk4MyIsImVkaXRvciI6W3siZmFtaWx5IjoiR3JlZW5iZXJnIiwiZ2l2ZW4i OiJNYXJ0aW4gSC4ifV0sImV2ZW50LXBsYWNlIjoiTmV3IFlvcmssIE5ZIiwiSVNCTiI6Ijk3 OC0wLTg3OTk3LTgwMi0wIiwiaXNzdWVkIjp7ImRhdGUtcGFydHMiOltbMTk4M11dfSwibm90 ZSI6Ik9DTEM6IG9jbTA5MjQ1MzQ3IiwibnVtYmVyLW9mLXBhZ2VzIjoiMzY2IiwicHVibGlz aGVyIjoiREFXIEJvb2tzIiwicHVibGlzaGVyLXBsYWNlIjoiTmV3IFlvcmssIE5ZIiwic291 cmNlIjoiTGlicmFyeSBvZiBDb25ncmVzcyBJU0JOIiwidGl0bGUiOiJJc2FhYyBBc2ltb3Yg UHJlc2VudHMgdGhlIEdyZWF0IFNjaWVuY2UgRmljdGlvbiBTdG9yaWVzLCBWb2x1bWUgOSwg MTk0NyIsInR5cGUiOiJib29rIn0KXQo= --------------SnIzDmunFt1lG00BFfiNVOsm Content-Type: application/json; name="citation-test-only-editor.json" Content-Disposition: attachment; filename="citation-test-only-editor.json" Content-Transfer-Encoding: base64 WwogIHsiaWQiOiJhc2ltb3ZJc2FhY0FzaW1vdlByZXNlbnRzMTk4MyIsImNhbGwtbnVtYmVy IjoiQ1BCIEJveCBuby4gMjc0NCB2b2wuIDIyIiwiY2l0YXRpb24ta2V5IjoiYXNpbW92SXNh YWNBc2ltb3ZQcmVzZW50czE5ODMiLCJlZGl0b3IiOlt7ImZhbWlseSI6IkFzaW1vdiIsImdp dmVuIjoiSXNhYWMifSx7ImZhbWlseSI6IkdyZWVuYmVyZyIsImdpdmVuIjoiTWFydGluIEgu In1dLCJldmVudC1wbGFjZSI6Ik5ldyBZb3JrLCBOWSIsIklTQk4iOiI5NzgtMC04Nzk5Ny04 MDItMCIsImlzc3VlZCI6eyJkYXRlLXBhcnRzIjpbWzE5ODNdXX0sIm5vdGUiOiJPQ0xDOiBv Y20wOTI0NTM0NyIsIm51bWJlci1vZi1wYWdlcyI6IjM2NiIsInB1Ymxpc2hlciI6IkRBVyBC b29rcyIsInB1Ymxpc2hlci1wbGFjZSI6Ik5ldyBZb3JrLCBOWSIsInNvdXJjZSI6IkxpYnJh cnkgb2YgQ29uZ3Jlc3MgSVNCTiIsInRpdGxlIjoiSXNhYWMgQXNpbW92IFByZXNlbnRzIHRo ZSBHcmVhdCBTY2llbmNlIEZpY3Rpb24gU3RvcmllcywgVm9sdW1lIDksIDE5NDciLCJ0eXBl IjoiYm9vayJ9Cl0K --------------SnIzDmunFt1lG00BFfiNVOsm--