From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AE7+Em1n32DJOAAAgWs5BA (envelope-from ) for ; Fri, 02 Jul 2021 21:22:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mGO0Dm1n32CbaAAAbx9fmQ (envelope-from ) for ; Fri, 02 Jul 2021 19:22:21 +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 A1335872C for ; Fri, 2 Jul 2021 21:22:20 +0200 (CEST) Received: from localhost ([::1]:58402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzOjy-000651-I8 for larch@yhetil.org; Fri, 02 Jul 2021 15:22:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzOjX-00064s-JD for emacs-orgmode@gnu.org; Fri, 02 Jul 2021 15:21:51 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:46055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzOjW-00052r-1z for emacs-orgmode@gnu.org; Fri, 02 Jul 2021 15:21:51 -0400 Received: by mail-wr1-x436.google.com with SMTP id i8so808156wrp.12 for ; Fri, 02 Jul 2021 12:21:49 -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 :cc; bh=EVhH/yuvKunnacfnaXzvJqQfzCB+4A65cT8eVQrdse8=; b=LKk3p//dw7pZTXULXJTGWg/rK4IXB73bjR7aFGkCXSo0EXc+LilkCa5FAdSbsD+Q6N bnZ5PiikBKLwMb4iwzEz9QC2ukiczONqz71s+iTlE+dCB64zg0Qqbt1sMOntlzR5GanE oCuWkaC0NU8BO8OaC5sRZHt40/SUzn5rp/cTjDq2ho0mKB3tRDZbiXmjISGdOW0kF3O+ 33VhtgUVIsSUFANf8mpNfaYuEc19b5DlM0cU23XSt3WWHvgokg8XHvPG6bbvY++xCSVa i51VuHdhYd21lIsIFsbbNWp94nRP3aL1R5Obw6W03bBE7+ApLHuWuUmC3TyIVMTttZzb DMgw== 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=EVhH/yuvKunnacfnaXzvJqQfzCB+4A65cT8eVQrdse8=; b=P4loq5DNGWNTlF9VVjxZY1yLlsjaQXn55qGvcV7/QIrUpEhcs17gGimzVQ49x/2+0m YWa8iK5Z/ufHGA4kdyEH8jWer+z2pxvfYxsiohUupxnFV7bqusm/+KrjwEWciwLHTPHh VGFD8Sa79UEVPsZIAPuJ9555/D4aNe9e6WPPlPjiDCAWtum0Aiq0w1rCbdcgj3osEZF/ 8itKrdhgPVvhumLawVsRFhUlKl3nHPzzjInEYQa3QCNJ45lKBiXc/0Nq2O+jXloT87rb cuEAMawD+zu8BGX4SFJyxlOq52FT942t5nZ/BBMidYmAYWgAfvbsTpBtWHs8sWtq2S/9 WCyA== X-Gm-Message-State: AOAM531UCrBSWExj5yogUCLsd+CvOr568tYXIHj5E1XMX/B9Db/cgogc 2JGUAZ+GyHOKNDmeQsGfT1sBKpUo/oiELvFQu4Q= X-Google-Smtp-Source: ABdhPJy70tIIp6fGtenLVaLqMRaGN3AuJ5srPMN/kwOdCZ5U+46eWpfl3WZhHtrTITRbxNh4dedbx2x9WMk7It8WCkU= X-Received: by 2002:adf:f048:: with SMTP id t8mr1282419wro.35.1625253707122; Fri, 02 Jul 2021 12:21:47 -0700 (PDT) MIME-Version: 1.0 References: <87r1ggu25x.fsf@nicolasgoaziou.fr> In-Reply-To: <87r1ggu25x.fsf@nicolasgoaziou.fr> From: "Bruce D'Arcus" Date: Fri, 2 Jul 2021 15:21:36 -0400 Message-ID: Subject: Re: [wip-cite-new] Quick note about citation insertion To: Nicolas Goaziou Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x436.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: , Cc: Org Mode List 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=1625253740; 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=EVhH/yuvKunnacfnaXzvJqQfzCB+4A65cT8eVQrdse8=; b=ZIfmy/pUux4YQA7mUsRnpmB5P0O1O6w8rbkq9OKLAq5P5FDsn5/+TFSmp3hsfBXI7UepvI fnFLCK2wOBKwJc6qTAbhCGwJvp9ppCAgaXZOGxgxzLVo0EGw2tKpo6em1873C+iBGJ6qSc DUCZrYIbCLyPuWQYbQesmQYRJxZA4YLgaEFbWzHi18id7+C+AEYjoYgRBfwe0228XNZyoz iJpYosPiBkTwZeOwQ7SM8zePxMK+SUWBTCc0fSKts+RcXZOmQcnMRPMsdAJEELlnJxOqOS V3aPU48YHDc7EIXw9P7D8q0yzMiX/7IE0BUh+P8URYw8Ir0RZzamS+W7Z3YtOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625253740; a=rsa-sha256; cv=none; b=JXPPeLqjjxQngGR+quEDeFaf1P4oT4LbnvEkX6uk9jg03iEFuejGeg1Rb/LFSNkwF3kha5 WBtL+rw29ZtyN0JY1Z2zu0gEZQN6NaBPt7gU9TnW4xrLc7SOgpBFfTN5ZQtdFF/LrWzzpJ UNyml9OyixvV6LaAnQyfJYNgPQ6wQyWtW1AwS/FXQtKLg6A8XrM11f14hsUa7zcILqiUpK mvYdaEAlhhGMRYFk5/Khf717lbBQunpdIoCAANh0OaEFWVemb7R3k9AoHEuuU+7u3HtfGi OOJpQBBvRl/uTeEeDnRSQSm9CMFvxILj6gUhuP2fXFtzMbuHSVbQ03NeLl7tdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="LKk3p//d"; 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: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="LKk3p//d"; 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: A1335872C X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: ycrw2p3gtZmP Looking good Nicolas. Just one small thing. If I run on a citation, I get a list of styles, including "nil". If I select that, "nil" is added to the citation, so that the result is "[cite/nil:@key]". On Fri, Jul 2, 2021 at 12:11 PM Nicolas Goaziou wrote: > > Hello, > > I just added an interface to unify functions responsible for inserting > citations in a buffer. The default binding is . > > I also plugged a rather crude function with that interface. In order to > use it, you can evaluate: > > (setq org-cite-insert-processor 'basic) > > Internally, this will bind to `org-cite-basic-insert', which > can insert citations, or edit existing ones, depending on the point. > > From a developer point of view, you can specify two new keywords when > registering a new processor: :insert and :cite-styles. See > `org-cite-register-processor' for details. See also an application in > "oc-basic.el", for example. > > Regards, > -- > Nicolas Goaziou >