From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#55342: 29.0.50; org-cite-basic--get-field: Wrong value for ENTRY-OR-KEY: nil Date: Tue, 10 May 2022 12:52:52 +0800 Message-ID: <871qx2kmzf.fsf__32751.5489816264$1652158651$gmane$org@localhost> References: <83czgmt93n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38137"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55342@debbugs.gnu.org, Kaushal Modi To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 10 06:57:26 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noHw6-0009oQ-6P for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 May 2022 06:57:26 +0200 Original-Received: from localhost ([::1]:44082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noHw5-0001IJ-1c for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 May 2022 00:57:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noHrq-0007TK-Qs; Tue, 10 May 2022 00:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37923) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noHrq-0001wo-GG; Tue, 10 May 2022 00:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noHrq-00029E-Az; Tue, 10 May 2022 00:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Tue, 10 May 2022 04:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55342 X-GNU-PR-Package: emacs,org-mode Original-Received: via spool by 55342-submit@debbugs.gnu.org id=B55342.16521583368192 (code B ref 55342); Tue, 10 May 2022 04:53:02 +0000 Original-Received: (at 55342) by debbugs.gnu.org; 10 May 2022 04:52:16 +0000 Original-Received: from localhost ([127.0.0.1]:60053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noHr6-000284-0K for submit@debbugs.gnu.org; Tue, 10 May 2022 00:52:16 -0400 Original-Received: from mail-ot1-f54.google.com ([209.85.210.54]:39552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noHr4-00027n-JI for 55342@debbugs.gnu.org; Tue, 10 May 2022 00:52:14 -0400 Original-Received: by mail-ot1-f54.google.com with SMTP id z15-20020a9d65cf000000b00605f064482cso11508093oth.6 for <55342@debbugs.gnu.org>; Mon, 09 May 2022 21:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=DVsn3zbmQ8uddlGT59N48G5hbWsnVQbB7ey4sX3aWf0=; b=Gxpztc9t+UODQ+f6PeY7aj1yPiQo5jnJImKBQaz12pPsk8Y/ZRRZyRFyL0KDKEDl+5 omg3THFeUMBPQLHdIpUAerBxbJS71Cfe9817ZpAXOZISjuDnXW7GpgmjqYjSH+tg1yFz Zf5+AMZzxUBV3LeWrOsf8WNDaCgI4Aav6GZP5XdFMDTSWDWV0Ht8krJV6WtpWJ12Ss2S BzQIGHT+aTr32Em6FxapZN+7TF9EYH6+qE7VZ9lMMR0oLAPqUfRqsSB3xQ0vde2KJeo6 4rpQE2O6Ghd3e/fsKjBvpFysfrIqwUTPulESUglqKwiAT8AXGgqDnk/foMMPdOjfpvnA Yczg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=DVsn3zbmQ8uddlGT59N48G5hbWsnVQbB7ey4sX3aWf0=; b=gXqPctHnDW211ehCJAVA2n58sHDRoWh+MJi4A2U0jtITLG0jZDYRbJd7AiPQooRjNz a5uo/12t7UFn8fA/wOOhOJcqP404j+x6+rdK1VcDiM2AhNfkmJ3ulbW9kNWWUC33jjud 4Z6g/iTm/ivDusMDeK+cPyKJDvLv/+bvrF24bsz/OTXpVCzm5CVsFqCjM9/M3Ip4nVC5 GW6qVm/jQXd6k00MaoKwnpw/U/kcKrv+NBD98MfaqnG8RqAOqIFo4SGce0L3LqxI2BIb pkFZCThiEKCfZCTaDOj960zeus5jGVEtDy6+FzNiXS1K6Mu+SpYOpIxlrscTSutpLx6z mAZA== X-Gm-Message-State: AOAM533bGCWcuwBhJrUxMgoolDb94FEaZif8tT4vQlxyDjiamc148NEr AOWj6RmNBqoZpchTORTW/dA= X-Google-Smtp-Source: ABdhPJxd5wqUksf6HhLT27bQ5BeWQBfZBFim0tIin37hmd19VSU09S1oms+Q9Cdt2WAtBqvlCNyChg== X-Received: by 2002:a05:6830:1157:b0:606:e6c:d89b with SMTP id x23-20020a056830115700b006060e6cd89bmr7405853otq.132.1652158328960; Mon, 09 May 2022 21:52:08 -0700 (PDT) Original-Received: from localhost ([104.223.98.2]) by smtp.gmail.com with ESMTPSA id g18-20020a056870c15200b000e9364288bfsm5109475oad.45.2022.05.09.21.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 21:52:08 -0700 (PDT) In-Reply-To: <83czgmt93n.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231814 Archived-At: Eli Zaretskii writes: >> From: Kaushal Modi >> Date: Mon, 9 May 2022 17:41:32 -0400 >> >> Exporting an Org file with citations on Emacs 29 now throws the error >> "Wrong value for ENTRY-OR-KEY: nil". This error can be reproduced with >> the Org version shipped with Emacs on the master branch. > > Shouldn't this be reported to Org developers first? It has been. However, part of the problem lies in the bibtex-map-entries: ;; If we have invalid entries, ensure that we have forward ;; progress so that we don't infloop. (if (= (point) prev) (forward-line 1) The code above always skips a bibtex entry starting at bob. Hence, the provided example bibliography is parsed as empty, which is not expected by Org. While handling empty bibfiles should be fixed on Org side, the current behaviour of bibtex-map-entries should indeed be fixed on Emacs side. Best, Ihor