From unknown Thu Aug 14 20:52:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#77792 <77792@debbugs.gnu.org> To: bug#77792 <77792@debbugs.gnu.org> Subject: Status: Org-cite incorrectly parses periods after citekeys Reply-To: bug#77792 <77792@debbugs.gnu.org> Date: Fri, 15 Aug 2025 03:52:50 +0000 retitle 77792 Org-cite incorrectly parses periods after citekeys reassign 77792 emacs submitter 77792 Zac E severity 77792 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 14 00:42:17 2025 Received: (at submit) by debbugs.gnu.org; 14 Apr 2025 04:42:17 +0000 Received: from localhost ([127.0.0.1]:45228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u4BeC-00025j-VK for submit@debbugs.gnu.org; Mon, 14 Apr 2025 00:42:17 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38512) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u47FJ-0003nZ-TZ for submit@debbugs.gnu.org; Sun, 13 Apr 2025 20:00:19 -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 1u47FE-0007XQ-7w for bug-gnu-emacs@gnu.org; Sun, 13 Apr 2025 20:00:12 -0400 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u47FC-0003yo-MS for bug-gnu-emacs@gnu.org; Sun, 13 Apr 2025 20:00:11 -0400 Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-6ecfbf1c7cbso54801196d6.2 for ; Sun, 13 Apr 2025 17:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744588808; x=1745193608; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=LofxKl0Tr/OG/4jK2I9PXjXVPcHa1EoV+UQ6ymxYJSs=; b=cyVUr+kxIySldV05l1QlFXeURrD1aaWCu59cHHRzKejEdclvdk9ZJQGWP80gnFRZoh Jl6bgGDmtdjU1ArC2mDRQAVFnyPYKh9HqHrSG8ex0iezsF+9zycLbWDtDPTgis+YuTZc 3trW4PPHtFPuB9zkgZTIkyH3E7ZEMuH+hZznsXJQ/+dTGKMsO2Tw1dVvpjWP++u8Ykcd +uOniVcuIqzLK2U27hQSjheT0nPHhc/6bYHjpB52jiAWqGEWmucE90VF/pjVgYkjlnEn cmmwXpt9Yk7dN9WSypLO43fKzTkz1GJdaZO4QFpC4wKKX4yQ2ZrYcyhAuQuxJhfYTSas KzXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744588808; x=1745193608; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LofxKl0Tr/OG/4jK2I9PXjXVPcHa1EoV+UQ6ymxYJSs=; b=bymmf1VEIW1QgRQ8e2Yf4a78WX2AUvbXV9WwMjPxdvpk5cMuVNkEcnqDQM1xS7z8mi g7EFeR3gRGTe/BayvbE1i6Gjuq0+/MA+bdIxIIM3Ur3xdfY7Eu0dqEsOIrJNb8izQo7i VaE6mpyYGSzBLd+yJjOysL5AAsI1VjwjjNoqIZaw/XnuXkqa3U9flCdRQgEytGAoO0q/ P+bWEZ2i+DtcUM+aMSnLlFm1RolJmolJH/LjpxEBYjS37+XoUaglDfgDcMmBEcrnvxhL u+vZKi/rmBUSA/b0zQXPliSXzWVpyFmaL7+BhwazfSXgnz6oMY61Scdb3kI4L+n8DiA0 v7wg== X-Gm-Message-State: AOJu0YxxuaiN+doKtIeHaP0JPpn+FnXOSefmZT0bjk+78ni0bNvxP6JV J2rQoorqWEMxgrXJuu9SH8SoILawQ2dY5IPTiQohikuowxAKDP1cC/MvvQ== X-Gm-Gg: ASbGnctWqGhxJy8jCfA1rXhZ+3R2OnTSr8ARVTUQlVWQaa1X79CqknumnMig6EPf4/P CdcHGxYvKnnOBk6yxeYZsEGdlB1eREHElNkRimbhSGKqnqc3Rl+XdhKp1rOBemvlAOHxILL2YZZ ZUB9GyWYxSRdwrf4Jn9/GoK90zZ9en5yKk0GAb/2pC/bOme1GPy7xJrhN9I2o3GWWtCBKtikaDv b118PNUG/ps+P21y08YrPsibD/dPVp6nG+QlGB0kRTunnpBPa5mIoAXvFvqKAiaF92OJYhKBXLE HT1kKqXIrSg+a9Q4F6KVn9jvc6bT4k/OuSfzzEx9N4BvOhHdhSJmGppKShEVCd+U72c= X-Google-Smtp-Source: AGHT+IHPQ2/CBMPvDU9TbPDCsP1XgQ0FhZZOpDclZOqs26mkDPnR+04XdrKlozVxnNE7GWBRZmJlIA== X-Received: by 2002:a05:6214:c8b:b0:6d4:25c4:e775 with SMTP id 6a1803df08f44-6f230d24444mr140035546d6.15.1744588807515; Sun, 13 Apr 2025 17:00:07 -0700 (PDT) Received: from smtpclient.apple ([2603:7000:e9f0:170:6540:149:5350:a64f]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6f0dea215adsm72384906d6.120.2025.04.13.17.00.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Apr 2025 17:00:07 -0700 (PDT) From: Zac E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Org-cite incorrectly parses periods after citekeys Message-Id: <191A4764-DD0C-416F-883C-3082EB272F02@gmail.com> Date: Sun, 13 Apr 2025 19:59:55 -0400 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3826.400.131.1.6) Received-SPF: pass client-ip=2607:f8b0:4864:20::f31; envelope-from=zac.endter@gmail.com; helo=mail-qv1-xf31.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 14 Apr 2025 00:42:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) In a list of citations in footnote format, one often needs to separate some of the citations with periods. This is not currently possible with org-cite, although it is possible in other parsers like Pandoc. Org-cite fails to recognize the citekey to which the period is appended, resulting in an undefined-citation error. Escaping the period with a backslash resolves the undefined- citation error, but actually prints the backslash in the final output, which is not correct either. Below, one finds examples of both. My example outputs assume that one is exporting to abbreviated footnotes, but this error is consistent across all citation export modes. EXAMPLE 1: [cite:@cohen2003consum-repub.;@trentmann2016empire-things] EXAMPLE 1 OUTPUT (PRESENT ERROR): cohen2003consum-repub.; Trentmann 2016. EXAMPLE 1 OUTPUT (EXPECTED/CORRECT): Cohen 2003. Trentmann 2016. EXAMPLE 2: [cite:@cohen2003consum-repub.;@trentmann2016empire-things] EXAMPLE 2 OUTPUT (PRESENT ERROR): Cohen 2003, \. Trentmann 2016. EXAMPLE 2 OUTPUT (EXPECTED/CORRECT): Cohen 2003. Trentmann 2016. My system version information is below. However, this behavior has been consistent in all versions of org-cite since at least 2023. I suspect that most testing of org-cite has been tested with the needs of those working in the sciences, who cite parenthetically, in mind, and so this bug could have easily gone unnoticed. I am somewhat competent in elisp but would neither know exactly where to look in the codebase nor feel confident submitting a change myself. Emacs : GNU Emacs 29.4 (build 2, aarch64-apple-darwin24.2.0, NS appkit-2575.30 Version 15.2 (Build 24C101)) of 2025-01-24 Package: Org mode version 9.7.19 (9.7.19-??-5a4686915 @ /Users/mainuser/.config/emacs/.local/straight/build-29.4/org/) From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 15 13:49:09 2025 Received: (at 77792) by debbugs.gnu.org; 15 Apr 2025 17:49:10 +0000 Received: from localhost ([127.0.0.1]:55064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u4kPE-000322-BK for submit@debbugs.gnu.org; Tue, 15 Apr 2025 13:49:09 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54879) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u4kPA-0002zw-AE for 77792@debbugs.gnu.org; Tue, 15 Apr 2025 13:49:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 012E4240028 for <77792@debbugs.gnu.org>; Tue, 15 Apr 2025 19:48:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1744739338; bh=3CZ44g0T/sgDtBBGw3OY6+AhSyWJqL7MOo7C2qp5uEI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=R//WOT/gVRCWJzFoM6RjPhhxeyAcpCvQAHpGxZE+Xtx9C2Iz1GUFYwjEq08EOUzEd WZnet+aejHus9pmitomzBd+0Ba+EHvFNLypdkhlz+xbIhhjfVh2ZEl3lXabqLlFTm9 Kci9gnSaHoTqoRycoIumWHzwNgyAGd5xyAkOmCaIpH0Y/wH2+bQoNfS3/yQaEP5XTQ iu8+mAOGw2G/OVso4Kp4eb7WVLAbFagsdtFK9YXXwb3gKNXGjLxwqkxX+59LVSNUFz PNQrn9Sdb7XOflXn6WgKMI5fJsB+309NhDYZFTPf/YA4usZ6kvei548shgQXMHbHE9 dseetNBH8227g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ZcWqX4P7Mz9rxN; Tue, 15 Apr 2025 19:48:56 +0200 (CEST) From: Ihor Radchenko To: Zac E Subject: Re: bug#77792: Org-cite incorrectly parses periods after citekeys In-Reply-To: <191A4764-DD0C-416F-883C-3082EB272F02@gmail.com> References: <191A4764-DD0C-416F-883C-3082EB272F02@gmail.com> Date: Tue, 15 Apr 2025 17:48:09 +0000 Message-ID: <87h62p1fl2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77792 Cc: 77792@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Zac E writes: > In a list of citations in footnote format, one often needs to > separate some of the citations with periods. This is not > currently possible with org-cite, although it is possible in > other parsers like Pandoc. Org-cite fails to recognize the citekey > to which the period is appended, resulting in an undefined-citation > error. Escaping the period with a backslash resolves the undefined- > citation error, but actually prints the backslash in the final output, > which is not correct either. Below, one finds examples of both. > My example outputs assume that one is exporting to abbreviated > footnotes, but this error is consistent across all citation export > modes. > > EXAMPLE 1: > [cite:@cohen2003consum-repub.;@trentmann2016empire-things] This is ambiguous. "." can be a part of citation key. There is no bug here. Just a limitation that we cannot easily force end of citation key in Org syntax. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 15 14:03:43 2025 Received: (at 77792) by debbugs.gnu.org; 15 Apr 2025 18:03:43 +0000 Received: from localhost ([127.0.0.1]:55183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u4kdJ-0005G4-Ki for submit@debbugs.gnu.org; Tue, 15 Apr 2025 14:03:42 -0400 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:54724) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1u4kdF-0005EM-24 for 77792@debbugs.gnu.org; Tue, 15 Apr 2025 14:03:39 -0400 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-7c081915cf3so731783285a.1 for <77792@debbugs.gnu.org>; Tue, 15 Apr 2025 11:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744740211; x=1745345011; darn=debbugs.gnu.org; h=to:references:message-id:cc:date:in-reply-to:from:subject :mime-version:content-transfer-encoding:from:to:cc:subject:date :message-id:reply-to; bh=iDkREGXaEKgKFJH1qL1W6xIhHQ5yYjgLJ2Hv6FOcOeE=; b=RoJDOZ0cKMasQ21F0eq/IL43Re5mYvLP7fVSNeTZPuWyJZHMc+lQ7eUsCFJ1qnbkpU JbqTwPD38+FNUiUhsjbdoE+jZub3IAOAq2LVQrt4+En7N0U510pgV+nlRhMHb/DFCoNP vdQK6VC+rhRIxRnInUNJeQxKLPf3zHeyinIGJn82px4+8KsM/+ucZNuLh8ppkfwcFIl3 sCTgaA1nfHWO8v5WbUfW7clJhvjlEj1G+8meKyyccEmrjo3UPO4wgJ17MzEjhOtf8B3r d2OyocFtO1E4lJp19pHx1Yw4db9YNvjhJCe1EX0VGIAODCdbG4p8mSPpJyHdFXF0oNB0 z6Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744740211; x=1745345011; h=to:references:message-id:cc:date:in-reply-to:from:subject :mime-version:content-transfer-encoding:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=iDkREGXaEKgKFJH1qL1W6xIhHQ5yYjgLJ2Hv6FOcOeE=; b=t9JYuz5z4jkttiAmOdEGeqXHvBrYGeKxrwjQp7FU0L9//a2N2mujogYId4tOrCkhID srzR6po61+/N9yW3uc78opL1lRwJkprZJQa1O/qrhsjexsTLA3AnziWflqek+UfEDZfQ GmFYwRp1d51JoxFbbjtJOickHGkkp7OLRE3+8rbtdDNkOjnGWCOOFr6EHEjAAOWl+ZHd BhO80cyWH5IfOHpA2k/25L45z1xacbrReabP+Un3ylYyLexBGHDznlPn6Vtxz9/vqDym NV3J4pmcWHwQDLhmPxvTWF15mQ0Bfoc1flAd+IO1BQ5iLsJsFMFBXXzN2GgrFm4SbVMM B/4w== X-Gm-Message-State: AOJu0YyjJuKLDNPjyTiFOnXI6gxXlv3mjmxqMvejlbG2/NzARBYHG2OF xz8l5WbHs8kWlpbfhNG8l/jYfF6XRDevbKsC2gvMaRhrsPAOV9YE X-Gm-Gg: ASbGncuWm/AETeIMnwedewRiy0yywutfhK3LUtxP//aGB+8MTZvEoj+mCemifb0G1Px Ru/iA3hX7ckjwWyCdCJyTVajPMHuGoNqttgiPntfJjo3yei4CWB8g6ocfE0RTva6tIN4660HCM2 zMY8pMgcOnHT3Mm2Oy0L9xMHUp/VZqQKSgiNgUODyk4j3H6vgSf8urgRtl2rINeAfGwRGEzMr/E jsCuxJxQOl9QO+G8kXitl0wCYsIdwVRGhHfdp7jK9hQjMTNas6dwYsuC1bZUHbaAsY9kSojXb9t HFbhiwNXIUQ+7u+tmuJQu4PHicAjeUTw7cOXZGGnVwlYavPM1OnKPQjiXi/WS6l1Hv3m X-Google-Smtp-Source: AGHT+IGvzZPorfifYJOLB/bQACI0dnYmWqKbG+wBS2Wcx2egAGPI8ESYHBDcqgrDBbch025pI/e75A== X-Received: by 2002:a05:620a:458b:b0:7c5:a423:f5b0 with SMTP id af79cd13be357-7c914197d9bmr67395885a.7.1744740211191; Tue, 15 Apr 2025 11:03:31 -0700 (PDT) Received: from smtpclient.apple ([2607:fb91:30aa:dec:ddad:ca41:3dbc:57f8]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7c7a8951718sm938171585a.39.2025.04.15.11.03.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Apr 2025 11:03:30 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: bug#77792: Org-cite incorrectly parses periods after citekeys From: Zac E In-Reply-To: <87h62p1fl2.fsf@localhost> Date: Tue, 15 Apr 2025 14:03:19 -0400 Message-Id: <3624C482-65EB-4F7C-A82B-97F36C70313F@gmail.com> References: <87h62p1fl2.fsf@localhost> To: Ihor Radchenko X-Mailer: iPhone Mail (22D82) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77792 Cc: 77792@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I don=E2=80=99t believe that it is quite that ambiguous.=20 Technically, periods are legal in bibtex or biblatex citekeys. In practice, however, they are rarely=20 used, and they are never used at the end of citekeys (since their only function would be as a divider).=20 There are two options.=20 1) the parser could ignore periods at the end of citekeys. This means breaking strict bibtex compatibility, since technically a period is allowed anywhere=E2=80=94again, not a practical issue, and Pandoc already makes an exception for periods at the end, as I have proposed.=20 2) Org=E2=80=99s parser could allow for a backslash escape character between a citekey and a period. This is a standard escape character, and there is to the best of my knowledge no reason why it could not be implemented. It is absolutely a bug in the general sense, i.e. the software does not behave in the expected way.=20 I would add that this bug is quite literally the only one keeping org-mode from being capable of generating papers in the humanities.=20 > On Apr 15, 2025, at 13:48, Ihor Radchenko wrote: >=20 > =EF=BB=BFZac E writes: >=20 >> In a list of citations in footnote format, one often needs to >> separate some of the citations with periods. This is not >> currently possible with org-cite, although it is possible in >> other parsers like Pandoc. Org-cite fails to recognize the citekey >> to which the period is appended, resulting in an undefined-citation >> error. Escaping the period with a backslash resolves the undefined- >> citation error, but actually prints the backslash in the final output, >> which is not correct either. Below, one finds examples of both. >> My example outputs assume that one is exporting to abbreviated >> footnotes, but this error is consistent across all citation export >> modes. >>=20 >> EXAMPLE 1: >> [cite:@cohen2003consum-repub.;@trentmann2016empire-things] >=20 > This is ambiguous. "." can be a part of citation key. > There is no bug here. Just a limitation that we cannot easily force end > of citation key in Org syntax. >=20 > -- > Ihor Radchenko // yantar92, > Org mode maintainer, > Learn more about Org mode at . > Support Org development at , > or support my work at