From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WcX6A6RmZ2MuzgAAbAwnHQ (envelope-from ) for ; Sun, 06 Nov 2022 08:47:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0PzaAqRmZ2OfLgAAauVa8A (envelope-from ) for ; Sun, 06 Nov 2022 08:47:48 +0100 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 D98A8460B7 for ; Sun, 6 Nov 2022 08:47:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oraMr-0002Pz-8p; Sun, 06 Nov 2022 02:46:57 -0500 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 1oraMp-0002Pa-7T for emacs-orgmode@gnu.org; Sun, 06 Nov 2022 02:46:55 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oraMn-0002jG-B2 for emacs-orgmode@gnu.org; Sun, 06 Nov 2022 02:46:54 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1B2AA240103 for ; Sun, 6 Nov 2022 08:46:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667720811; bh=C8VP8vwq70hzQwEcYpPumabBVpLu5TDkyuNeCaMpwpU=; h=From:To:Cc:Subject:Date:From; b=VEYnbcaN717ZaBF0UXUFkuSY/N4EUAtZBTSVcDb8zncgaLKdyI8hlBqSrmXuMqUQH ZX+cyCPEhErEPMKMhU8quS9/qFYSfa1z/97h6dfUaXacmWXlvzMzAmUg2Ukymw4uRw e5UR7JgShFfufPU1J3RvK+xyx54omB2a2OJlHUtTX4TI+8JqyDTQgl+6o+0w1/dQgN CHBzjq2AB5GNx5i10p6yMY6FnFqfPtIH2csdpvjK3QH/21hzU5gnxIYJntJOVXZ54I qFkvb+0MHIfdYCKxPzuHrPFqBrhx57r6mQfi7xYoimTsuGA45J0iWPqhAEFcY/Ts2/ mDIej86fKdl+Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N4mf12zpxz6tmW; Sun, 6 Nov 2022 08:46:49 +0100 (CET) From: Ihor Radchenko To: Ihor Radchenko Cc: Kaushal Modi , emacs-org list Subject: Re: [PATCH] Re: oc-basic "Wrong value for ENTRY-OR-KEY" error on emacs master (29.x) [Was: Bibliographies on export with ox-context and ox-epub] In-Reply-To: <87mt9o1hxl.fsf@localhost> References: <2fcf6b95-c3c1-0885-e3b0-99479a580dc2@mailbox.org> <1f18a566-415e-0742-58e3-5a46fc550ae2@mailbox.org> <87o804jo6w.fsf@localhost> <87mt9o1hxl.fsf@localhost> Date: Sun, 06 Nov 2022 07:47:28 +0000 Message-ID: <87wn88a5in.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667720867; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=VUXRgw8yn6giymP0rScwmOh6D18XeQgyxyyrfyjO6sE=; b=eXtoK52UW24QBSMY/S4XgUhgEd5m1xtEvlUrSUzzTCTaxBYkh20CxUrXslubPhM6bqOp7F vKLbwSTUFitdLtMIBKWv6DOMePQcVj+Tg54ZDYm5OzbMt1wq2CYI1uw0YnYlb3hKhrvt0B zbl0hWxQS2eRKRrkt771AQM2TdhoVERwyXXgOg4sDSUD9WE3Y7hl7HYfCE0apgjrV0XLk0 /IPCj0dGhF+i3JwBmBgFEp8gRMqp/xu2DdsN/Q2+9wRb9LRyCrySJSdLA50yy2noj7u4tt c20A8nbWHis5W5pUiRUQrbb0h8gxxG6n7djsboDR53NyuDCrW5M0NYHqFL3pGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667720867; a=rsa-sha256; cv=none; b=sZXzbj7Qmo8yixiKBfAthJ5SzhOf63hRwUjghsOUoT0cafL3blK4nhoz6ltfrCZE7eINTz 2Go1A2x3N1M+PB7nzg0x4DuH2pAeJ2cYH3dXDGNZeaFboEZn5w8fosI5mn/LyEEvRNguZL 4ICE1rawL48mvOtH4Af0hN4mcALXwGTVQt8rfVl+bbZCCTUx/piYAISovb+DDxTQybQQAt wekoQzy3il7+YcN43S6qQZxXjS/Z3z5cNx8Um2k3l8w4t9JKb+W2hyTwo9KrtBCZTinYQ4 Wr/TeN/SlcDlzQF+oyd8oqPrTtvG7aDn1Y0LadOLfa6Ci99BNPY+0Nv+m/Hqsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VEYnbcaN; dmarc=pass (policy=none) header.from=posteo.net; 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: -3.81 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VEYnbcaN; dmarc=pass (policy=none) header.from=posteo.net; 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: D98A8460B7 X-Spam-Score: -3.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: miEl/n5iHwXx Ihor Radchenko writes: > Ihor Radchenko writes: > >> Note that apart from the problem on Emacs side, there appears to be a >> problem with org-cite-basic-export-bibliography. >> >> org-cite-basic-export-bibliography uses org-cite-basic--print-entry, >> which fails to print keys, which are not in .bib files. As a result, >> #+print_bibliography: appears to fail all the time when the document >> contains invalid cite keys. >> >> I consider this as a bug. At least org-cite-basic-export-bibliography >> could provide a more useful error message. Or maybe even skip the >> invalid keys. Or, similar to LaTeX, print ???. I am not sure which way >> will be more canonical according to general oc.el design. > > I am suggesting to merge the attached patch. > It will simply skip keys that are not in the bibliography when printing > it. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=26a2811b06a5916a66d101b10238552db12ff6e7 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at