From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0Id5CwMiEWHo3QAAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 14:39:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mAVHBwMiEWFlQgAA1q6Kng (envelope-from ) for ; Mon, 09 Aug 2021 12:39:31 +0000 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 E7CEB1E5C1 for ; Mon, 9 Aug 2021 14:39:29 +0200 (CEST) Received: from localhost ([::1]:51092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD4Yy-0002hr-8B for larch@yhetil.org; Mon, 09 Aug 2021 08:39:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD4Xp-0002GO-Vh for emacs-orgmode@gnu.org; Mon, 09 Aug 2021 08:38:17 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:55202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mD4Xn-0002Zd-9t for emacs-orgmode@gnu.org; Mon, 09 Aug 2021 08:38:17 -0400 Received: by mail-wm1-x32c.google.com with SMTP id b128so10497188wmb.4 for ; Mon, 09 Aug 2021 05:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DcU/MyGqD075JKNeV1j6VeLkRnwMQrFmixU3mfKu7To=; b=CUAblpdM8JRtN4bUg4j8lB6uczWEAuvUyvrzFJ+Td3AuPB3ucrU8YIGbyoQI9J/V30 kYbUbkcwl9cbrXq5eS2eNt46fmhKyB7MrW3Wms+d3Q9nN3i88xkN4CmAno09DZqtm044 xYucqh4v6gfk+obe2beiSbZSVyxvZkEAFHJyEYAGEGOwUsEfSb4Lsan5whuKvKU09b6W F0NK4OqKEA/kOn4MGxwoYmBidqB0hcZ9Ff+RDOGcn1uzqHCwvJgI7tprPlIGO6nv4rhN T9N3TeZNKcAzvpOvX5QfeQ2adFDQ+oQErHt/Pmz9rnpvP9MnICqQEMbbjMTOCXit12ce vwDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DcU/MyGqD075JKNeV1j6VeLkRnwMQrFmixU3mfKu7To=; b=WzX8AclnfIP+1P57d5invEe7UoBtO3lIzKseoK26IQuJ31huCbP3dqV2OKtvrsd7Lw OEyKBvRSJH/gC2tU0rTnrP9UKfx6SEom2NWu8YoWTk+yweFfND9DpoEb8h2lhpZtzhBj IdxoSjqOllkFlhQ+/oAmRvwfoLVolh3Q2hfhxh6ooK67DJ+ndZBBsDH2uHCbNefMRd0E QDkj0TnhRn7q7hl8RjZCffAKqqngY+LS8OHSeqZgqRmExePOSUOSae/K3AjwhPLhg5i5 bHOtaQuAHCIgozBSLtrNrp75KxxgMe2D/GWxPXxxQjmuwSUBcZesBaEXtejeUwzuZ/Dl pSqw== X-Gm-Message-State: AOAM531+m1CwbQOkSiQ7Qtd+f0NjH1Ixy2zrkH7NfyFCOmmMKmeK4Xcc 9p0AYpzd5FypqjMn/Zz7i1YyyNoib7ss1kGCTVQ= X-Google-Smtp-Source: ABdhPJwvKMAG8JZAp476xzhLtl3UwTK2/qEqSxFS8ZtGM6TwnALmUz0bkFBYTkt1txrLvJYDvrnXYkayww+4TuYwOq8= X-Received: by 2002:a05:600c:252:: with SMTP id 18mr6141646wmj.61.1628512692974; Mon, 09 Aug 2021 05:38:12 -0700 (PDT) MIME-Version: 1.0 References: <874kc3wxeb.fsf@tsdye.online> <8735rnwszs.fsf@tsdye.online> <87y29fj9nv.fsf@ucl.ac.uk> <87y29einez.fsf@tsdye.online> <87sfzmikps.fsf@tsdye.online> <87pmuqij94.fsf@tsdye.online> <87o8a8syoz.fsf@fastmail.fm> <87h7g0j182.fsf@tsdye.online> <87im0e99sp.fsf@fastmail.fm> In-Reply-To: <87im0e99sp.fsf@fastmail.fm> From: John Kitchin Date: Mon, 9 Aug 2021 08:38:02 -0400 Message-ID: Subject: Re: Org-cite follow function for ebib To: Joost Kremers Content-Type: multipart/alternative; boundary="00000000000093b88805c91fa8dc" Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x32c.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bruce D'Arcus , org-mode-email , Eric S Fraga Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628512770; 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=DcU/MyGqD075JKNeV1j6VeLkRnwMQrFmixU3mfKu7To=; b=OOAnGuta9L7u5j5sZjNHhCdLZn1Ty0lY4egXonZS3fL5Ki+mPIQMaHNbUBbVR1ExyoBHMr KyJIOiIMSjyBXp2n1KqJrmNH8azTmsyUoH4UGIBIQK6tB3N33x1ziW1+0N5Fu5bBzgYJ5u JG8tJ3XpMUofXZKcf2iIn/6ruFytZYQvo4T+S2vAqXWo13uraHXicNDi11DlMQSJs87jVw 5CSZN3ocnfgDYvPAVicopYWWd1jCgOqp/hHinm1ttwQa7KM3pHjMzSjGnrZoIHrX5DStsZ 3J2lVYiLVYNA6nO42w3vHeKNi95MYyMX+BZVUpEor+z1kIt43fEdYYN90LgYgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628512770; a=rsa-sha256; cv=none; b=QXX8m0kbiL8jK3WX9YMFSoWgfULWrBo/UfV8woxzhIh8OLzwamGKHzRxZ7kGPzT5A1OZqr BSRJAr2UW27NR/rWxBmITPVBdR+9s+zgCBzPilSdIID4V3UWXFRAi2v5UeHT7nTI2QfH0m RAFbAEKrSmiIaBYnZTuBddlSkWKGPqIrSg0pOqCKHTqVzEXkbyRqXoz3AJSEL4budDn28B ofkPTUngDpyNhOAx9M1GidljaXbc2kgLNwmiHHZ0vQxoWft6F4K6zl52gVZn5OJMxo+Cfn 9GdCp2IXsk5d9yV1V1fLGvwFnXyDMPNtS9bmgZKUN65dFgGWgo+iuQblvIdaBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=CUAblpdM; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=CUAblpdM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: E7CEB1E5C1 X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: k0US5mIGB8JI --00000000000093b88805c91fa8dc Content-Type: text/plain; charset="UTF-8" If every thing is working right, you can get the file that a key is in like this: #+BEGIN_SRC emacs-lisp (cl-loop for (file . entries) in (org-cite-basic--parse-bibliography) when (gethash "some-key" entries) return file) #+END_SRC This returns the first file that matches. John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, Aug 9, 2021 at 6:45 AM Joost Kremers wrote: > Hi Thomas & others, > > On Sat, Aug 07 2021, Thomas S. Dye wrote: > > Aloha Joost, > > > > Following some pointers from Eric and Bruce I have this in my > > configuration and it seems to work fine, though I haven't had a chance > > to use it very much. > > Thanks for figuring that out. :-) Once I get to implementing support, I'll > use > it as a starting point. There should also be a way to open the correct file > automatically, without the user having to select it. > > > > -- > Joost Kremers > Life has its moments > > --00000000000093b88805c91fa8dc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If every thing is working right, you can get the file= that a key is in like this:

#+BEGIN_SRC emacs-lisp
= (cl-loop for (file . entries) in (org-cite-basic--parse-bibliography)
= when (gethash =C2=A0"some-key" entries)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0return file)
#+END_SRC

This returns the = first file that matches.

John

-----------------------------------Professor John Kitchin (he/him/his)
Doherty Hall A207F
Department of= Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213=
412-268-7803


On Mon, Aug 9, 2021 = at 6:45 AM Joost Kremers <jo= ostkremers@fastmail.fm> wrote:
Hi Thomas & others,

On Sat, Aug 07 2021, Thomas S. Dye wrote:
> Aloha Joost,
>
> Following some pointers from Eric and Bruce I have this in my
> configuration and it seems to work fine, though I haven't had a ch= ance
> to use it very much.

Thanks for figuring that out. :-) Once I get to implementing support, I'= ;ll use
it as a starting point. There should also be a way to open the correct file=
automatically, without the user having to select it.



--
Joost Kremers
Life has its moments

--00000000000093b88805c91fa8dc--