From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id APIBB2lZv2AZlQAAgWs5BA (envelope-from ) for ; Tue, 08 Jun 2021 13:50:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oKBEAmlZv2DJbQAAbx9fmQ (envelope-from ) for ; Tue, 08 Jun 2021 11:50:01 +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 6F1B41676E for ; Tue, 8 Jun 2021 13:50:00 +0200 (CEST) Received: from localhost ([::1]:46354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqaF4-0004Nq-PM for larch@yhetil.org; Tue, 08 Jun 2021 07:49:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqa1z-0001sT-9V for emacs-orgmode@gnu.org; Tue, 08 Jun 2021 07:36:27 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:33427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqa1x-0007Kk-KO for emacs-orgmode@gnu.org; Tue, 08 Jun 2021 07:36:27 -0400 Received: by mail-wr1-x432.google.com with SMTP id a20so21260792wrc.0 for ; Tue, 08 Jun 2021 04:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/SM3Xh1fo84c91EmhtwNu3HHkgIEqq5n47TiRv+Jrf4=; b=ongFpyE6/4ufyuyv2SqnmnEHJB2d48avTF/o6bwdyAtSgEx8b/A178Mriib/wuOyQW WBKbcKKpulF5/ASVelRGsAkTTCrSautbam24EhK1oVQ7HBFMGNLQGd5MkwmQhLcLBfdJ cieTqMlOSUkSenZ8Jtpsq8nvMjaJgAYoxK516ygm6O8vfe/4+aO7kKxow3vioIqw4B+s QQGtndQHjCZw69XkqO+b2ZXmh/NGXu2rEYS1jKb3ElBArnN/T0lMIRgz3NGmItw50Ojw /WoN7UrsV/wBztkePvxOAuhdnKMJI+JRfcqi1R2kcU+JuktltTcsEdFaYInF8RIGIuks A75Q== 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; bh=/SM3Xh1fo84c91EmhtwNu3HHkgIEqq5n47TiRv+Jrf4=; b=D99j79vkeh1XRwb/gWzuNNr2zcNOfiXgtnPZ8yOQY8NhVTxDwolZYoUoMHbcPhkwrt /mKK37DldrXVePq/nTnuUSGzJ6QlATnPVgYm0EkzeFt+L1m/FFbvliL1SqVpNExulAUE jfBrnK1XXFRPsqVG8qywo+TdbfPBrLdqkGbtbOhdXm2H2zscf7drWY+Bmzd6F/MQls+d yrGpIkwftzFkqf5M1PrQvfJBCLl4hrkulwLCDoPYL3yASiuj1TTae6yP2U6XPahkWEVy y7zrwg9G5/JXxARZZNR+KO9ArQhPISrVew+wEqi9Bg4tE7ScZZ+izU8c1d5nbMOs+MQr iTdw== X-Gm-Message-State: AOAM531GqmGMbRMGVVVET5MRnk47B0lXik8sNCXH1/vMByhz2rjQDFob 9gccymT0f1/ENtEXw6c4rLPIbfYiMlmazyg2qVg= X-Google-Smtp-Source: ABdhPJzhvcfk75RKrsHRvO8xq8XIpkbxv+E3AO6C43LnpNU8H5Xr5NVhifBBpBwbiTu/8YvgKmzeljJanZ/hwzL3uZw= X-Received: by 2002:a5d:6a02:: with SMTP id m2mr22244651wru.77.1623152183851; Tue, 08 Jun 2021 04:36:23 -0700 (PDT) MIME-Version: 1.0 References: <8735ttbcn4.fsf@nicolasgoaziou.fr> <87y2bkitus.fsf@nicolasgoaziou.fr> In-Reply-To: <87y2bkitus.fsf@nicolasgoaziou.fr> From: "Bruce D'Arcus" Date: Tue, 8 Jun 2021 07:36:12 -0400 Message-ID: Subject: Re: [org-cite, oc-basic] configurable open-at-point, font-locking when json? To: "Bruce D'Arcus" , org-mode-email Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x432.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623153000; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=/SM3Xh1fo84c91EmhtwNu3HHkgIEqq5n47TiRv+Jrf4=; b=N2zD65PYSAF2UXwyCD9TxXZ6D7IxSSFJ+dhS55g5XQsfGcPx8lhSQsmvyUCCubCWnzf3yO dav+GGabP+GNXdSMNtAzFQCJIQNeMsPxyi3gJOGogZ8Hil+GNjBFpVN8dgzIJ8QOTAM7iT ofCXTVS/l/Xi+EgCykADtxD4hJQmK4PB12cY7Bciyb/qbZ0bCyY704Y0BXfE2g5l18/nhA 6WjBVQdM4DNC/s9Tr2PAOLfuPKalozdZijwT6vjpZ0KemRN8h2vTyvaqIMaDswxLwo67Fp a/yhWkHsqLDUF7xaxhETGJxndNCHVq/ZHRX/B8l13hhZD8z1gLBscyLGOfriAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623153000; a=rsa-sha256; cv=none; b=OiiSxXR/cN3QhYJ3La7YaHyel003hvxXRARxmP2kDubcw4MSqnDTiVzM9XKHHFlft/PViY fd/kxO0lOJns5hnSnJZAGLaC6Ud7ncLznNG/m+Mywsz0xhVqvUaeT9GAzK+RFjfBGhUZH9 DK804aLM0I3DgBWv+2E7Gt6YMeQuTljS1TyYXf+sri4nocs8HU5PQ+ZSae+cFGyvESDqoP dWbJ12AoLJsUOZBkW/gBbCwuKEuz4ztUW0yB+jN8fNT7XPfccL7p7WZu0jppDf+BmYMwct DycTDLJte5gk/EkquT41o+BMWdQcPCzlhLCaE8QcVYfq1l8Hj1Cw7WvUUbbhtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ongFpyE6; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ongFpyE6; dmarc=pass (policy=none) header.from=gmail.com; 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: 6F1B41676E X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8m/74q5CXIDJ On Tue, Jun 8, 2021 at 5:33 AM Nicolas Goaziou wrote: > > Hello, > > "Bruce D'Arcus" writes: > > > So would it be so simple as doing something like this, to use the > > bibtex-completion-open function instead? > > > > (org-cite-register-processor 'basic > > :follow #'bibtex-completion-open) > > > > As in, that just tells what function to use for at-point? > > > > If yes, that definitely works! > > It does, but you're overriding `basic' processor. You could as well > define your own processor > > (org-cite-register-processor 'bibtex > :follow #'bibtex-completion-open) > > and use it with > > (setq org-cite-follow-processor 'bibtex) > > > I've been a bit slow wrapping my head around the difference between > > follow and activate, but I think it's starting to become more clear. > > Follow is what happens when you use C-o on a citation. Activate is run > in the background during font-lock. That's a very clear explanation! So I'm trying to get this working now. Here's what I want: - "basic" font-locking - bibtex-completion-open-any for C-o If I understand correctly, the below minimal config should work, but does not; as in, no font-locking, and C-o returns a "no link found". What am I doing wrong? (require 'oc-basic) (require 'bibtex-completion) (org-cite-register-processor 'bibtex :follow #'bibtex-completion-open-any) (setq org-cite-follow-processor 'bibtex) (setq org-cite-activate-processor 'basic) Bruce