From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kA8SMPr8OWKvxwAAgWs5BA (envelope-from ) for ; Tue, 22 Mar 2022 17:44:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IBRPLPr8OWIPzwAAauVa8A (envelope-from ) for ; Tue, 22 Mar 2022 17:44:42 +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 740152EB34 for ; Tue, 22 Mar 2022 17:44:42 +0100 (CET) Received: from localhost ([::1]:36204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWhcf-00036Z-Cq for larch@yhetil.org; Tue, 22 Mar 2022 12:44:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWhbf-0002zS-Dl for emacs-orgmode@gnu.org; Tue, 22 Mar 2022 12:43:39 -0400 Received: from knopi.disroot.org ([178.21.23.139]:45936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWhbd-0001W0-Ea for emacs-orgmode@gnu.org; Tue, 22 Mar 2022 12:43:39 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 48B94400A8; Tue, 22 Mar 2022 17:43:35 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id KiIvoPJxQTis; Tue, 22 Mar 2022 17:43:34 +0100 (CET) Date: Tue, 22 Mar 2022 17:42:41 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1647967369; bh=cMqIbUTvmsuSy89E4ycnC5M/dmJE5edyfjKv5RgEmug=; h=Date:From:Subject:To:Cc:In-Reply-To:References; b=jj+mTqMsXJq4J2sN6nNbIY1hHCbC4kPGBZ0zIFM6ETZZHhsvWHDyAyR9btIYfxxD3 i4IBJ0VpBlSvr1ZD1KBUQ+Kg2xoY7QLh34FwhC3ElvyUGI5/Sd93+iImyGkmcYRsnl n5j7OTAVoinjSzujsI5E+Hf4ukvn2KCUpbFuQwDJihzi21vo8rvk9jqYMXB/wkpc1p 95CNakV5sGqVm9XUBVQR51Z1pWB44DrohW/hZW+Wxu821IPK/e/rRKTQ+R8fCf4Vxx j7hDYoV+XMvY2KMj0osqX5FMuMgWMX0L/leXbETUmZfwEpnQaNA2mW+06Nfij/Y+8r EqGz2x+mi9yRw== From: psychosis Subject: Re: [PATCH] Re: [BUG] org-cite: 10 second hang opening a ~4k org file with 10MB bibtex library To: Ihor Radchenko Cc: emacs-orgmode@gnu.org, Nicolas Goaziou , Jamie Matthews Message-Id: <5RN59R.HYY84VK9QB122@disroot.org> In-Reply-To: <87zglicguo.fsf@localhost> References: <87pmmifirh.fsf@localhost> <87fsnefg8b.fsf@localhost> <87cziifeo4.fsf@localhost> <87a6dmfd89.fsf@localhost> <877d8qf9k8.fsf@localhost> <8735jef8eg.fsf@localhost> <87zglldzl1.fsf@localhost> <87zglicguo.fsf@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-OKQEdhvRn6q9wBCwF/Qk" Received-SPF: pass client-ip=178.21.23.139; envelope-from=psychosis@disroot.org; helo=knopi.disroot.org 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, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647967482; 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=cMqIbUTvmsuSy89E4ycnC5M/dmJE5edyfjKv5RgEmug=; b=nus6NJRbnNJMXc2YMJGDs/8B0PxMyYwtrE9NSlmpAkDwSPuOsCL1OdI06zl4ywOo8YZYFn NHpdVwylP6FbhDAMKU7yW4U4cPVXoE6/pdHKD/1nw1M7bQZSA4MLVI6lSZAXY2fTWWEmB+ sZpOiAXdmsVdkzXqBtnyfvOWo/ZK3J3g/a9mTqseFOs/rn5kxq5IG8kKcRsNlAx1q5nwIX CXbHLUdxPQ3OdULxt40yT5Zz+EcGpYKYnANH2kqGP/5IiehKhECA1lhJtYIVjdX1aRdrIj HHHhfHKaqRPTS3wAgcIau/Tveupycgk1CynU0gLrq5FkqaijZlZw2nEZfUsoSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647967482; a=rsa-sha256; cv=none; b=pYyB+rpHbe9YaR4ckGpXw5txKCwNtf/wqLhQnTkamjgjij1ejyqWoALjN6UefIMylZM8Ai 8BRdMqlhAZqCxiMHD9NwSRnhCm9WT3JXjvZXO+JUaZa2io/+QGqkWtYPX8rFovMElouvax gd+zHOkGeTlDrQCw+5x05kwavSX0bHIJkrBcqUa0E6C/zZHnVNr3G5YWvUxVk8Vx6Tgcc3 iuyzAW4QOL3FjG75LY/exJOR8qEUkN7SG/Z09vUh2REEomOMNoicqmLDfY2XNGbQ1zrjMk bvpj68WkGhj9R5OujiuX4HgAMy8uNu7rCpy3GPQS+oqMI2nSXyP2dXbuRUIzdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=jj+mTqMs; dmarc=pass (policy=quarantine) header.from=disroot.org; 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: -7.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=jj+mTqMs; dmarc=pass (policy=quarantine) header.from=disroot.org; 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: 740152EB34 X-Spam-Score: -7.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: bIGMCxeyzlfg --=-OKQEdhvRn6q9wBCwF/Qk Content-Type: text/plain; charset=iso-8859-13; format=flowed Content-Transfer-Encoding: quoted-printable Hello, On Di, M=E4r 22 2022 at 20:27:27 +0800, Ihor Radchenko=20 wrote: > To clarify, org-cite must detect changes in your .bib file and if a > citation record key in the .bib files was changed, trying to insert it > should trigger org-cite to mark the new citation in red. Regardless if > the citation gets inserted at the same of other line. >=20 > Or maybe I misunderstand what you did. Ok, for me it does not seem to work as intended. The old cite-key turns=20 immediately red if and if only I insert the new cite-key on the same=20 line. For it to turn red if I insert it on other lines, I have to kill=20 the buffer and reload it. I used =B4emacs -Q=A1 with the attached files. Kind regards Paul --=-OKQEdhvRn6q9wBCwF/Qk Content-Type: multipart/mixed; boundary="=-hORXbE8/9SR1aibvw5v7" --=-hORXbE8/9SR1aibvw5v7 Content-Type: text/x-bibtex Content-Disposition: attachment; filename=test.bib Content-Transfer-Encoding: base64 CkBib29re2FiZWxzb25fZXRfYWxfMjAwMCwKICB0aXRsZSA9IHtTdHJ1Y3R1cmUgYW5kIEludGVy cHJldGF0aW9uIG9mIENvbXB1dGVyIFByb2dyYW1zfSwKICBhdXRob3IgPSB7QWJlbHNvbiwgSGFy b2xkIGFuZCBTdXNzbWFuLCBHZXJhbGQgSmF5IGFuZCBTdXNzbWFuLCBKdWxpZX0sCiAgZGF0ZSA9 IHsyMDAwfSwKICBwdWJsaXNoZXIgPSB7e01JVCBQfX0sCiAgYWJzdHJhY3QgPSB7MjAxMn0KfQoK Cg== --=-hORXbE8/9SR1aibvw5v7 Content-Type: text/plain Content-Disposition: attachment; filename=test.org Content-Transfer-Encoding: base64 IytiaWJsaW9ncmFwaHk6IH4vb3JnL3Rlc3QuYmliCltjaXRlOkBhYmVsc29uX2V0X2FsXzIwMTJd CnRlc3QKW2NpdGU6QGFiZWxzb25fZXRfYWxfMjAwMF0K --=-hORXbE8/9SR1aibvw5v7-- --=-OKQEdhvRn6q9wBCwF/Qk--