From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6H2LHeg45mRJCwAASxT56A (envelope-from ) for ; Wed, 23 Aug 2023 18:50:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4FkwHeg45mRcegEAauVa8A (envelope-from ) for ; Wed, 23 Aug 2023 18:50:48 +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 D650351A94 for ; Wed, 23 Aug 2023 18:50:47 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umanitoba.ca header.s=selector2 header.b=E3peVswi; arc=pass ("microsoft.com:s=arcselector9901:i=1"); 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"; dmarc=pass (policy=none) header.from=umanitoba.ca ARC-Seal: i=2; s=key1; d=yhetil.org; t=1692809448; a=rsa-sha256; cv=pass; b=kCmrwGaxKhwuJddzgQ+ZsHadHceiwkChEPsCVscjLiq5pKquU5rCCzLVYps5N8YNnKTYhw iM2Whd3UVUnIDdudeV9INftp/ZKyovgVuW4Vf4r0aqps6ksxWQoMpHXE4SAcp7Br1a1eBZ /xjjLZ7sul5dfJKw7Ftv84ceEN8KgXdM3vAfJAp3JdLpZXY+77kL09GHxsSUGNbGCKFJOK CsxjlPkbRiwf8xer1UaqTNKkrNEbriWfftkfaMdwTtSxaQloXIkPW2jh5MNdA3DMDT490+ Mvl/YSnsI/U3nXQFHfsuM8fWaMHlkGTt+pL64A4ki+XhAaULYhtVCllJmE/n/g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=umanitoba.ca header.s=selector2 header.b=E3peVswi; arc=pass ("microsoft.com:s=arcselector9901:i=1"); 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"; dmarc=pass (policy=none) header.from=umanitoba.ca ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692809448; 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=ZHMzEX63UxauXZeGoN1rrjbBknBa/1uTOghF4Io83R0=; b=dHQa30oUPlfkEUDW1RCeTr7t9ufsUrSuLVmELsxOKN4Kqo7/6mi536cKHiGXXStHNkIiEu NqtcW3K2TQDRa/X7o4POI9imKk8iW89pji1DT+HQ6kgxV5lBllCqC3CE3bV5yYPDkVvoJ6 ExSuBn9bL8akyZ4aHfth1eurluc1AnxDNL64Qjmhm7wp8AWBX79d2DqLFI0P8wKtXpR9QH 7xAmMnBPDTk5lOpAM4bX7jYeqJ9viwL2dsVIzrM43ZSGEC4jX4U8l5V+u9AxdcKdjxyY0t r86aFCnx8Y7ewWRiiM73lxVHtOBqU30gUcMbuwPTyudeNOJuaVxub9Sc7X1upw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYr3c-0007ik-Dg; Wed, 23 Aug 2023 12:50:12 -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 1qYr1A-00063z-EY for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 12:47:40 -0400 Received: from mail-yqbcan01on2128.outbound.protection.outlook.com ([40.107.116.128] helo=CAN01-YQB-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYr17-0005fD-D0 for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 12:47:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ELk0eltmvKVFODVSCEjLQlS62oVX6q36dzIOFBKYNdl5gS6lcqTFetpPOuHe+ss0hDK6OGK8w2gpmV3X13oywYSvtH0/z7Q9V/BaYKiAxkHGEb4KHLO8sAOV9CFd4KR6vyZZ41mXRa5iYmGkbNLm/h9qEa7jQESaZDJacQgC0blviAijRmYVBbOWtNXCMLRWznErUIEmO0iZm5yvUUUJJu+HS9MfRkDmSwr2hHk5npokDmxb3ku6+j2LnijsSSK+K/iqGrMoVlZBJ/JDZyuBYo5Mg6TVSqFyd9yc6oKhjjnpI4uf58Nd8C16Se94ZhIvTGKNlELm0on7qQe58RRDyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZHMzEX63UxauXZeGoN1rrjbBknBa/1uTOghF4Io83R0=; b=PzxWG32dVnBQdyD4XUtbqgcxCsktt77AO+6kVmryGEXFn+Ed36XH3zSsN+lVzhwLAsLZFmGvGZi9/08lFESWlh/LRJ+QRHCQuBY6D933le8yAYn2dQCRvbPU2kGqKouUZO16DtAivGI2kwxEEF2w+EeKIe8+ZRL7Uaghqh4f2AKF8xA9WM7nj1bOFvu8ARmqk5Bynoq7n15uerIbqT0jh/5/WOqx0qzDukfA1ZvlaNBpR3Fv5Li0oufZHfTF8RNXNbbghqbgSHzSOOc5SUAqqX6c7wIU8tlQgJbjBvt2l1h/A/YCmWAHzA6HhRxMDq0KCLB/J1mZFQQb4SJt3/F8KA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.ca; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZHMzEX63UxauXZeGoN1rrjbBknBa/1uTOghF4Io83R0=; b=E3peVswioF/xqeviSpjP/g4RCi4Sa09Y5FyPw67WKdM/ZqyZhgTcU6jWS1ToW3RM/Iy7PLfURqSum8jiIgtSFJ4Gnr+Rk7AVFogNpXJQDwmSrdiAjHHEdQehf2uc+sL52NIv+vOW2JVMYA5qDo8KAsoFEGsv5BCHxjzx0EeZ0L+KGKT//pVbbYoWyaFjiU5TOcTSMNuyyu8vYwsx+ftTBQUGUk0/nORvUwdJFbju4U+gdMLbuyyctBuw34/8R+2O3NGJJomtMzzOadf28UwXs+d+gDqM4kqRHPD8yx5kE6iH1oOnuvFxZXwPkfyAB96vKTtpcZApv5PF82BBJ0VB8w== Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:90::5) by YQBPR0101MB8623.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:56::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.26; Wed, 23 Aug 2023 16:47:33 +0000 Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::6b6a:be90:9c28:1cce]) by YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::6b6a:be90:9c28:1cce%4]) with mapi id 15.20.6678.031; Wed, 23 Aug 2023 16:47:33 +0000 From: Leo Butler To: Ihor Radchenko CC: Org Mode Mailing List Subject: Re: org-cite: how to force a reparsing of the .bib file Thread-Topic: org-cite: how to force a reparsing of the .bib file Thread-Index: AQHZ1Sd0BIIvCmZXd0Wnebax26dKkw== Date: Wed, 23 Aug 2023 16:47:33 +0000 Message-ID: <871qftk8nv.fsf@t14.reltub.ca> References: <87edjvj56r.fsf@t14.reltub.ca> <87jztm6hhb.fsf@localhost> <877cpmkds1.fsf@t14.reltub.ca> <87y1i26rzu.fsf@localhost> In-Reply-To: <87y1i26rzu.fsf@localhost> (Ihor Radchenko's message of "Wed, 23 Aug 2023 09:13:41 +0000") Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) x-ms-publictraffictype: Email x-ms-traffictypediagnostic: YT3PR01MB9964:EE_|YQBPR0101MB8623:EE_ x-ms-office365-filtering-correlation-id: 55d3bca8-52ed-4a04-2d48-08dba3f8a60a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Me3AHLi7C2r2Yv48b6btt1QXsVEYZ53yQgwC9QajhUHPGysh8zbkvgMtLQz4MH43J9LIjnoltfzgi0iDjT4MEYkHP6UH8XtXyCRSYNh717UJmquUeHnc91I+fC7X/qYyBuZ6SybnNIoKsOj4kSLECickvy/EnN7vtdjBzIU8LMkIfUwk9ade2penYmwNE5KN3d/uIfTPtqIV9/cAKMgdveG6Zob67o2nlso2hErApLW8q9I4zdQkvMINqFffkdEmZMbt3zdFgqLD8Ql55Yh/+fjMjdaQAgfZ+pT30qczEo0LwWaQK9U3keLdMd5c1xV+vVEQDnYyww8OEnDA555HotDglHNRY+qYh7LChJ6pf5bkwn45RArRG2ySVw5guqf+YW5O3OTBGS2rwQySm8ycXRE4YkfTVyhtwqXzzmlmP9bZgu2G5Nz3zT1Qb3T7KuME8Vyv55y6qRoJlZ6LME7DxivKOv4BpSCImh0jTl47H/q847Rj1NdRAVLRJ0Vg+xNFnTly8vABS/Y9fHsKRc+iGO5Whamo0q84aFmxFT/Bh8pJeswxQBsMAtbO+6czqWhNz6LH+iEnIYSEDrSVO6U2U2ZgzIUuaOumuU5bJKkg+3FzGwJ3Ktyt628MlUD+dpqA x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(136003)(396003)(376002)(346002)(366004)(186009)(451199024)(1800799009)(6486002)(6506007)(786003)(316002)(6916009)(53546011)(4326008)(8936002)(8676002)(66946007)(66476007)(66556008)(76116006)(64756008)(66446008)(41300700001)(9686003)(6512007)(26005)(5660300002)(71200400001)(478600001)(966005)(83380400001)(86362001)(2906002)(38100700002)(38070700005)(122000001)(142923001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?r24rEXqhjNVLNIDsjSxq0ETzyV9Lx5wDDtynXJzw3qq0gU4k0PExkmrCLz?= =?iso-8859-1?Q?wt0w844Xh3pjyzos0lvtE4fF4T82vvmWqkNpc/Py8q0d2R2B+86dPagjbN?= =?iso-8859-1?Q?l+17jNSKjBnl+IYqWDC15QCdlMr6Rnp0c7GiavcIMPKxb66lqcKTksmrDr?= =?iso-8859-1?Q?tSMoDJ8+KLN+oK34LU4wohNl1SbThoOptDQvPcAv1zwZdAIk+D29ZwGmcS?= =?iso-8859-1?Q?nmdlafm9qJcE3JZnNG6952nlg0qaEq50jJmi3KHEKglRCIX+FJuvjhyeWt?= =?iso-8859-1?Q?BPqvjHusIulJyuJtisGZZWnUhyj7C/+VI65T9vST5WuMNYDOhh8lk/Dz83?= =?iso-8859-1?Q?f4paKYD9IPi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YDU0BE++BKxZdVW?= =?iso-8859-1?Q?z3TFm+f1jI5CZOkkXUdAk5V2XUsM9nyvvezZyp2tvhVNdqAYWbTtpfbYJi?= =?iso-8859-1?Q?z8ItRuh7dfhKkMuq8UNVRFm5NjdTqacFEcv9HyJO6r+BvcJgR/5wtkCgSJ?= =?iso-8859-1?Q?MGITRCHEcsvXQDZZzDHKXHslzSVrXxtZLO2/9dATclDjBSk9gshLAzpDqo?= =?iso-8859-1?Q?BLfVz/goOkX6szWPnNEIejX3tXkh0gtDDXxcw1ccQT72AuBJ416Dx5KPGB?= =?iso-8859-1?Q?y+BY9A4N2VxfT+qnMbSppSySbmcCuQKq4SKC5ibfeTyozQIprI30bht+Bd?= =?iso-8859-1?Q?lz8/vIr2L9tY4y+s/M+6qqtk5D+Hb//4k0v8Rg8cjp5GZT9Dn+q916Dyea?= =?iso-8859-1?Q?0O9UNEySmiPyHyz5O3v5+49VNWF6MwU3HO4hRyNWSHfvabG5LJGXmyBg?= =?iso-8859-1?Q?=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 55d3bca8-52ed-4a04-2d48-08dba3f8a60a X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2023 16:47:33.5577 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: adX9Z4hdngxx+fRvxRjdaXoBUi0ls5EMfJHLUxMy0ajB8fEUUul0fy9IgpW/K75YPJKRHHhfTBk0FiGKsqfWBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB8623 Received-SPF: pass client-ip=40.107.116.128; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-YQB-obe.outbound.protection.outlook.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -11.81 X-Migadu-Queue-Id: D650351A94 X-Migadu-Spam-Score: -11.81 X-TUID: dk2vi1Iy6Z9S On Wed, Aug 23 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> Does org-cite monitor contents or the timestamp? >> I am using a symlink to the bib file. > > Timestamp. > > Does the attached patch fix the problem? Thanks, Ihor. To avoid an unneeded setq, I applied the patch: (dolist (file (mapcar #'file-truename (org-cite-list-bibliography-fil= es))) This caused the bibtex file to be re-parsed when I changed it. Best, Leo > > From 39b503301fc7a3ea68733dfd9e4391e3f84efec8 Mon Sep 17 00:00:00 2001 > Message-ID: <39b503301fc7a3ea68733dfd9e4391e3f84efec8.1692781998.git.yant= ar92@posteo.net> > From: Ihor Radchenko > Date: Wed, 23 Aug 2023 12:12:13 +0300 > Subject: [PATCH] oc-basic: Fix detecting changes in symlinked bibliograph= y > > * lisp/oc-basic.el (org-cite-basic--parse-bibliography): Use > `file-truename' to follow symlinks first before checking bibliography > file change times. > > Reported-by: Leo Butler > Link: https://orgmode.org/list/877cpmkds1.fsf@t14.reltub.ca > --- > lisp/oc-basic.el | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lisp/oc-basic.el b/lisp/oc-basic.el > index 84d9492ea..c4468e5a8 100644 > --- a/lisp/oc-basic.el > +++ b/lisp/oc-basic.el > @@ -272,6 +272,9 @@ (defun org-cite-basic--parse-bibliography (&optional = info) > (plist-get info :cite-basic/bibliography) > (let ((results nil)) > (dolist (file (org-cite-list-bibliography-files)) > + ;; Follow symlinks, to look into modification time of the > + ;; actual file, not its symlink. > + (setq file (file-truename file)) > (when (file-readable-p file) > (with-temp-buffer > (when (or (org-file-has-changed-p file) > --=20 > 2.41.0=