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 YHL6LefN5WTq1gAASxT56A (envelope-from ) for ; Wed, 23 Aug 2023 11:14:15 +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 aLCqLefN5WSx5QAAauVa8A (envelope-from ) for ; Wed, 23 Aug 2023 11:14:15 +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 5085B60A00 for ; Wed, 23 Aug 2023 11:14:15 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="g/1gQmPz"; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692782055; a=rsa-sha256; cv=none; b=HsAMZOZjFVOtr5fzTf62DcHCjUAoxn7I/ob53dgcO6Qagq9zUsJKmDKR2Shlk4i1lqoFCm WNnb6UchdGh68CgQJPL+ehq6E3ER4llb87Awo0EQ7kuHEQnViW13ruq2MZG5uXv3IBQq/D UB9G2wZI29rPQYV47g73sOaihm8oe4ejXWas0VbWgArR7fVkJkUCIJyWEVKZV/E8U0GNaf eORMB6F4OaZcS/6xYKbXhKoF39mbjy7maYRZh9zoDmNJaRn0CvbQfrf5vTF2qEogEvKJ3g cyhBbY8eoeRr1hkRrmzuZSzoxnmMZKVRc5spZwKqYsameOgoYNNSbtJ8RWR6xQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="g/1gQmPz"; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692782055; 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=hQwgh991sA2CTPL9AZNy41QIbAj5CbABIHanKL8QPRs=; b=ctVcEYX2hO5BmUoDXSnpmgLNHzc/nKghizh+UFNnqP4IUWZzajtajm4ZUL04FmgtbvJAmQ 8uiwBThUBC8NcB+tgi/M5buUyvxw0iLlyRcvu1qLIsbv8NO2SvTi2SFje9nMQDuFTc63gK qWuUGCpVZUFuyLMOqBGUq3tGj8oEVr7ZDl6OdEJVPHmvi+ju7BzvnM/i/Hp3zSsANYsG9c 6UmvJqlhIjlBmt4/JYDtlTLwENYguRzC75DEX9dQKR6lCJ2GQ/t7AP6+ciN2HsX0VavfOe VkdMIHgiaaCmOJKLi5dFtVSsUMCBbzj8ur6KbDFzrh5ALj6IWuFIlX/8rzdWuw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYjvS-0003H0-Jo; Wed, 23 Aug 2023 05:13:18 -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 1qYjvR-0003Gn-OM for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 05:13:17 -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 1qYjvP-0003ae-GR for emacs-orgmode@gnu.org; Wed, 23 Aug 2023 05:13:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1E968240028 for ; Wed, 23 Aug 2023 11:13:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692781992; bh=3+l5y0tMAjjDPgYTndeCPttY1Gpqv8Km/xjp849Z92g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=g/1gQmPzGaTOWy26Qj9Sm1Kf1XksuNe5w9n9oSZTx1MLocOYSUbPxU0p+FASc3JKQ RDlrCVzBBmHUGchPvfOz01zm/S3SD78Jg8X57W5RBTsjEl6s0u4Czm/6pWZ3nJyLwx tOIOWUTQmbyUEChx4oWkKzTXIQ66QcM3Y2VSBBN7vO94vwmT979n2IsPew02dyd7i3 BYbRSZjWGgWtejcSuJe68P3a+AxQ99H8EpLG1xgkZWyEGTkQ/B6jrUP/0Yov8kXLJY Qni0ffb9zN1nA6O/oKIIGKh5UqqBXOMUgPdGhBafe+uZh+sCtqRJcoBp8pJtvCWDdY F3kP4wb7n8qCA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RW0qq3K8vz6tyH; Wed, 23 Aug 2023 11:13:11 +0200 (CEST) From: Ihor Radchenko To: Leo Butler Cc: Org Mode Mailing List Subject: Re: org-cite: how to force a reparsing of the .bib file In-Reply-To: <877cpmkds1.fsf@t14.reltub.ca> References: <87edjvj56r.fsf@t14.reltub.ca> <87jztm6hhb.fsf@localhost> <877cpmkds1.fsf@t14.reltub.ca> Date: Wed, 23 Aug 2023 09:13:41 +0000 Message-ID: <87y1i26rzu.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , 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: -9.40 X-Migadu-Queue-Id: 5085B60A00 X-Migadu-Spam-Score: -9.40 X-TUID: OcMusVrDVC2a --=-=-= Content-Type: text/plain 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? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-oc-basic-Fix-detecting-changes-in-symlinked-bibliogr.patch >From 39b503301fc7a3ea68733dfd9e4391e3f84efec8 Mon Sep 17 00:00:00 2001 Message-ID: <39b503301fc7a3ea68733dfd9e4391e3f84efec8.1692781998.git.yantar92@posteo.net> From: Ihor Radchenko Date: Wed, 23 Aug 2023 12:12:13 +0300 Subject: [PATCH] oc-basic: Fix detecting changes in symlinked bibliography * 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) -- 2.41.0 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--