From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +FSlDfW2V2NnJwEAbAwnHQ (envelope-from ) for ; Tue, 25 Oct 2022 12:14:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +MrBDPW2V2OfzgAAG6o9tA (envelope-from ) for ; Tue, 25 Oct 2022 12:14:13 +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 E23BB22C63 for ; Tue, 25 Oct 2022 12:14:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onGs1-0004qY-2D; Tue, 25 Oct 2022 06:09:17 -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 1onGrt-0004oO-Na for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 06:09:09 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onGrr-000550-5u for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 06:09:09 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E026224002A for ; Tue, 25 Oct 2022 12:09:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666692544; bh=AN5YsAHho78no7OyFLAm7hhJ2KJ5MZqiDUvmHeaYW3k=; h=From:To:Cc:Subject:Date:From; b=dF48aBvj4zR7xbBpHYKG2HDHelOwIFs1+KVSCOAoVBLzhlyWuxAXofl4wBTzMp/zp pkmjcbSo0J5S6IkGQuSb7KJ6CD1WFoZCIDaLWPSI/VFsDERImlcMULrojYyrpyp6a/ Bd2igJn29fv71QBrbNN3UQv2n6drYmNGvzYGR3sjPQ0vpvH12YIWVU4uIBDzxN9dro xnYvKLIgvFI1YlkYcDNjokAzvjEPgpHoPjOnZy7KeVGpwqDcwXwWtFsd/0FdLrNTXg q5K1yyv7ItrMi5aWjdHZpTVgXm5vTIyPAZp2n0ugDNX80eEKKjgUZa5laAqOAHOt5b myhEZ21BZKphw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MxSMf59rTz6tqC; Tue, 25 Oct 2022 12:09:02 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?Andr=C3=A1s?= Simonyi Cc: emacs-orgmode list Subject: Re: [BUG?] Wrong quote positions in exported CSL bib items when export is done with C-u C-e In-Reply-To: References: Date: Tue, 25 Oct 2022 10:09:45 +0000 Message-ID: <87pmegrz86.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, 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=1666692852; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xWRr+fC4vqTrUesaDnQv7gQWlIng2xZi0xsbhKkxyqY=; b=XKlrwYiSznU7Y9dTHeeNhEhGwpWr1vetDxRrfv63knbHpjFC1IYU2EafFI4Vbyk2CbdqXL D/KFc5HDeLZ6YrMw/VjSMrHDEPgWl3JSA2aR/I88Gtt1vvMjuqwqsmnmahQaYQ9X8CNuLx tWVHqzXY1t9TwIUbFo2IuH8M6lSbasRRVfjMjyW2x4ktU0oly8zkuWLRJTEVhJwKu7GDKx qXWBDYUeIjjYbiYtQiLn2laWPAdePoS1x9AMpZ8+KabRwrqUnm7A0Fr/HaBZxrTCWZa5u1 a4fVeJh1oOqERETpdWGAEOTbRlN0zkcP1Py7MhpgeUvAoLb/j3iVfW/hwDdB+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666692852; a=rsa-sha256; cv=none; b=s0XJarGMSfTyay8+UypDyTgBe0S/fJvlaq4hMN65shPc4t5S1jkiOPlUGPalVMUI7yn68g Xc+Qy/0CdxOYlybzG3MeYblaPy4VeCJI1lUhdtPE1fFOZAQQ4jxit2XozPqqYSchR9VLmv bkQEQgwGZNa+skLjrGKpvB47e/HDEniDmkng7BmQhmDz8oFhWMiBS/+oNhqEUsSONl9gNs z9zz2QCzvbpksROPRKcKiEg++VLDKuwTAY9yZTV2oc3Gb+BlUn5Gd4FpVzj0qKO+di3/Pl KoaUqVQ+RJNFk5l7tEtsqk3znTbsyPrk7FSkazsNr9rcDT3BXzxxnvFs0H56jQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dF48aBvj; 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.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dF48aBvj; 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: E23BB22C63 X-Spam-Score: -3.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: BH373RVuKqQB Andr=C3=A1s Simonyi writes: > Dear All, > > I'm experiencing the following mysterious problem with the csl > citation export processor: exporting using the export dispatcher > without a prefix argument works fine, but when I repeat the export > action using C-u before C-e the exported bibliography items containing > quotes have the quotes shifted to incorrect places, seemingly with a > fix offset. > > Minimal example: > ... > The single bibliography item is the correct > > Hobbs, Jerry R. 1985. =E2=80=9COntological Promiscuity.=E2=80=9D In /Pr= oceedings of > the 23rd Annual Meeting of the Association for Computational > Linguistics/, 61=E2=80=9369. Chicago: Association for Computational > Linguistics. > > when exported with C-e and as an UTF-8 buffer > > but contains an incorrectly places quote: > > Hobbs, Jerry R. 1985. =E2=80=9COntological Promiscuity. In=E2=80=9D /Pr= oceedings of > the 23rd Annual Meeting of the Association for Computational > Linguistics/, 61=E2=80=9369. Chicago: Association for Computational > Linguistics. > > when exported (again) with C-u C-e. > > Emacs version: 28.1 > Org version: 9.5.4 > (Citeproc version is Melpa 20220702.2132) > > is anybody else seeing this behaviour? Confirmed. I managed to trace this down to the output value of org-cite-csl--rendered-bibliographies (using M-x trace-function + M-x diff-= buffers). I suspect that it might be something to do with destructive list modifications in some kind of cache. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at