From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oG/FGzwUD2F0bAAAgWs5BA (envelope-from ) for ; Sun, 08 Aug 2021 01:16:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gPdmFzwUD2HXNwAA1q6Kng (envelope-from ) for ; Sat, 07 Aug 2021 23:16:12 +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 90C106581 for ; Sun, 8 Aug 2021 01:16:11 +0200 (CEST) Received: from localhost ([::1]:32778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCVY2-0004UY-9P for larch@yhetil.org; Sat, 07 Aug 2021 19:16:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCVXb-0004So-Vs for emacs-orgmode@gnu.org; Sat, 07 Aug 2021 19:15:44 -0400 Received: from gateway36.websitewelcome.com ([192.185.186.5]:33827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCVXZ-0000Hg-LF for emacs-orgmode@gnu.org; Sat, 07 Aug 2021 19:15:43 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway36.websitewelcome.com (Postfix) with ESMTP id CCB0F400D919D for ; Sat, 7 Aug 2021 18:15:28 -0500 (CDT) Received: from box2035.bluehost.com ([74.220.219.237]) by cmsmtp with SMTP id CVXMmAeDNLjoRCVXMmDkGW; Sat, 07 Aug 2021 18:15:28 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tsdye.online; s=default; h=Content-Type:MIME-Version:Message-ID:Date: In-reply-to:Subject:Cc:To:From:References:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7BYJcWWyj5I75xZrLG3T+1WupVkKQt3SEVOEm75gXtg=; b=e0NEkieoZFaMl880vokF2AS7lD C2g1tcqKHedDCZBdtKeM4wGuqjY9R1hiz5gCZmgV9dPjjohv+Af31Nw6YCvIb1rwYgJ7QpZOOnaOf xcoQ1Vv6Mx2D0cxTS+zmN0CR9KU7x1KD/ZRscTNEoaPVE/tgxqxB9o8YScqlJRji7Mb4T2IeALtBj Qf+AWWh0FgR1TAvQgpdByzwybAKtZf0jXcn/mozhukC3OrL+VjQ3Or2JTmCDOrRpkRLPf79bYJJCz LEGYrwP6fwjnB1O+/e2yHPf1ib7zWyWJmznBvb2XG6L4T9auDJEStf0kSUHg8giRE34NktOdLsJ7W m5C8Xz5g==; Received: from cpe-50-113-36-248.hawaii.res.rr.com ([50.113.36.248]:46616 helo=lekeleka.tsdye.online) by box2035.bluehost.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mCVXL-003Kgj-T0; Sat, 07 Aug 2021 17:15:28 -0600 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> User-agent: mu4e 1.4.15; emacs 27.1 From: "Thomas S. Dye" To: Joost Kremers Subject: Re: Org-cite follow function for ebib In-reply-to: <87o8a8syoz.fsf@fastmail.fm> Date: Sat, 07 Aug 2021 13:15:25 -1000 Message-ID: <87h7g0j182.fsf@tsdye.online> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box2035.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tsdye.online X-BWhitelist: no X-Source-IP: 50.113.36.248 X-Source-L: No X-Exim-ID: 1mCVXL-003Kgj-T0 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-50-113-36-248.hawaii.res.rr.com (lekeleka.tsdye.online) [50.113.36.248]:46616 X-Source-Auth: tsdyeonl X-Email-Count: 4 X-Source-Cap: dHNkeWVvbmw7dHNkeWVvbmw7Ym94MjAzNS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Received-SPF: pass client-ip=192.185.186.5; envelope-from=tsd@tsdye.online; helo=gateway36.websitewelcome.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.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, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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: emacs-orgmode@gnu.org, Bruce D'Arcus , 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=1628378172; 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=7BYJcWWyj5I75xZrLG3T+1WupVkKQt3SEVOEm75gXtg=; b=acsPmU5tOveP81tgMMBa0hoAz+4SeefOSLQWBDbbDkb8HFuavC2Ss7XGDr62UFvZaTi9Pz tEh8afoTgDaAEZtbuhaThorwasAAMSWslTVYFVZm3BR/FM7j9XMi5jCBJTEWjj23aYAytX 7TYp0zaV/+Tr2IEwn87tLo15pShlPrp0JJBTExPBQ0N3VKQwMbMAwNMqK6dq9kNou4kKcx HKqvfLefIPGjHbc2gEeN730vbsPBsbRLzJNpX7fbMjc0oYUqsLZPF6OD2rI6tqBLxpV2do puqeIAao9GVDS5Xyb292ggSgUAQmZ6IgFRyhrS6HkZGGVIIawFvATcXddTuU+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628378172; a=rsa-sha256; cv=none; b=t+oAQFhkzhV6hHBopb8pClDJypo+H4f2Rv+EY3hs6QfuXctDMpc3h52qQV5labNxOVn9be vYynrg6oYkSZb2nonL2KSv9fPPa3TWbzDsyEltvLqKWOwoa0O/6r1eZdKIG/G8cUXthxDH ZoEWijQaSGV52WHIQY3XoSl63oK7i9tzkG/4T9mTS0/5H2gE6PoSt3hXIrsl6cT2ZobWEC ZtNv6YZYz4x9ojs4NS11V+Zwxpl7f/StFyrgtPK4y2YvyL5vc2qxMCaSnqVCJ0jiYfqfzo FgdIYFn9XmzoMtnMXwpjA5RazK7h+2w3e89Y/lE3e7giQ4mj0Nrs+5s36tKj2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tsdye.online header.s=default header.b=e0NEkieo; 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: 0.08 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tsdye.online header.s=default header.b=e0NEkieo; dmarc=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: 90C106581 X-Spam-Score: 0.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: fbXW870t3DRB 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. ;; Citations (defun tsd/choose-file (candidates) (interactive) (org-completing-read "Choose file: " candidates)) (defun tsd/ebib-follow (datum _) "Follow citation or citation reference DATUM. When DATUM is a citation reference, open ebib to the entry referencing the citation key." (let* ((key (if (eq 'citation-reference (org-element-type datum)) (org-element-property :key datum) (user-error "Not a citation reference"))) (files (org-cite-list-bibliography-files)) (file (if (> (length files) 1) (tsd/choose-file files) (nth 0 files)))) (ebib file key))) (require 'oc-biblatex) (require 'oc-csl) (org-cite-register-processor 'ebib :follow #'tsd/ebib-follow) (setq org-cite-follow-processor 'ebib) Also, it was easy to configure ebib to insert citations with the org-cite syntax. All the best, Tom Joost Kremers writes: > On Fri, Aug 06 2021, Thomas S. Dye wrote: >> Yes, I have set the basic follow processor and org-open-at-point takes >> me to the .bib file at the entry for the key at point. > > Unfortunately, I haven't had the time yet to update Ebib for the new > functionality. Ebib needs to implement a follow processor so that > `org-open-at-point` takes you to the entry in Ebib. > >> Surprisingly (to me), M-x ebib sometimes displays the entry for the key >> at point, too. > > That's because when you start Ebib with `M-x ebib` (or a key bound to that > function, of course), it checks to see if point is at something that looks like > a key and tries to find a corresponding entry in the current database. That > functionality is not customisable and not very well implemented, so it doesn't > always work. (Also, if point is at the `cite` prefix, it doesn't work.) -- Thomas S. Dye https://tsdye.online/tsdye