From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 WAdPJO6TxmMXOQAAbAwnHQ (envelope-from ) for ; Tue, 17 Jan 2023 13:26:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2El+I+6TxmOQKgAAG6o9tA (envelope-from ) for ; Tue, 17 Jan 2023 13:26:22 +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 6271AF5F9 for ; Tue, 17 Jan 2023 13:26:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHl25-0005T9-Jc; Tue, 17 Jan 2023 07:25:41 -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 1pHl23-0005Sg-V5 for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 07:25:40 -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 1pHl22-0006na-2X for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 07:25:39 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D5C682402BC for ; Tue, 17 Jan 2023 13:25:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673958336; bh=Id4ghRWWylcmKhb5ge/h5D5rGlnU9GB7KPjFFzqnFlA=; h=From:To:Cc:Subject:Date:From; b=BWDhzhi0jt2ly08RUWEfL2qiOP7F47Sa5/CI5uwEL91StKcC2Hh0+EnmDz8wzOLK/ Z9BLC6tXeTMvUSRZETmuTY/oY4qzh6lKxA72WhmxXXbzBQqSPANGsiFV75Zij/Lofj g841CmQfCw1EAkpaoGc+x7H1L+J/kjNgCCtjlFT9bsxkATmM/RM0zw0HqADoSn3YLZ LOCZ6Fsxu6V/GtsOBFMghs5YoIXTSGNa/RfOazfi7LKBUXE835c4aq8HNbdAPEfGEL KEK4ktrEk82L9ZnZGpCyrvn9yQ0trxR6jeEPtHIV8x9qHgYtqYHlcL9w7B2JUCbafz dXMorh8wcz+gQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nx7QS1DdSz6tmp; Tue, 17 Jan 2023 13:25:35 +0100 (CET) From: Ihor Radchenko To: Hugo Cisneros Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Throw an error when bibliography field is not properly parsed (was: [PATCH] oc-basic.el: Fix wrong type for the editors field when parsing JSON.) In-Reply-To: <87r0withnx.fsf@localhost> References: <6964C697-B085-4554-9BA3-54A2E3C6DC22@gmail.com> <87edsnsocj.fsf@localhost> <87r0withnx.fsf@localhost> Date: Tue, 17 Jan 2023 12:26:06 +0000 Message-ID: <87mt6hgxep.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: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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: , 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673958382; a=rsa-sha256; cv=none; b=BGt+PfZr44eqImJndHf2XYW2CqAtDwT/Q0sPNDvtNg2NRr53+yPWaKJUcWF8nr0e35ZPYa k3mnear/WXb0J2GbtgVkAics5PJQB3iLy324adhkkcOr8oYHy6L4sKjvaNFk5XELZWdf6R MSfQ2iu54NYmn75P7ICI+sFtaryxXfCXWd8JXoGAoMCri+MT1qUbjkY4PzsrOCucUJrHbh 2INPAez7/czjwAggWAhFcm53ndCUkj2aW5+kIwm9QN4PAAM6UL6M5X/5L92atYNSljfAN8 kHRY+vhnAS78wsD8LjQA0g4rKKmWQrJUnH2apOj8n7uUeqh0JU1umlbNcodeIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BWDhzhi0; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673958382; 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=s4EPLF/Sab7wzgkaZjAxAa2U7UKXgXi4vkBY3lvX1YI=; b=MSQn57R+BUeqA/Q95YwEn7Buqnd6IqJGUNhaeMgaWJ6nm8GHhFGmBiCFDGD0xUWOJNJFDT migEl6iF5m4gVN6Afzg6yVE5hwPoFYVZ8KFhGJgRnUEKlNDRQL6fLIskdyphIoIZ+yHHeR Ue/tL7oG5K2fXLGWX3y/pVrVInETqtUnoiO9GmJgPcfYtxzleEF1SO+1T96ho1MQAeLAdS Uy8qzhbRXn3JoIJ///nXvo4sCh82DWCALpceJ98WwypDIbTcqCfY52jQ2eURtY77MGAj65 wyqrlwdtGzXjytTOuopy4r3z8i+sRtgt+5O8BOMEt5u6u2iYlCt/47+zg/jNTw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.08 X-Spam-Score: -6.08 X-Migadu-Queue-Id: 6271AF5F9 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BWDhzhi0; 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-TUID: i2+Xcgu8aXTL Ihor Radchenko writes: > I am attaching tentative patch that will make > `org-cite-basic--get-field' throw an error when the filed value is not a > string. Applied, onto main; with minor amendments. I made the new code not throw error on nil return value. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=104311c7f -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at