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 wmHVAQIy5mBOtwAAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 01:00:18 +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 aEOPOAEy5mAUTwAA1q6Kng (envelope-from ) for ; Wed, 07 Jul 2021 23:00:17 +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 4FB9A1FCDC for ; Thu, 8 Jul 2021 01:00:17 +0200 (CEST) Received: from localhost ([::1]:44880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1GWc-0002LU-T7 for larch@yhetil.org; Wed, 07 Jul 2021 19:00:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1GWB-0002L6-Hr for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 18:59:47 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:60445) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1GW9-0001VE-GB for emacs-orgmode@gnu.org; Wed, 07 Jul 2021 18:59:47 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 092E5FF804; Wed, 7 Jul 2021 22:59:41 +0000 (UTC) From: Nicolas Goaziou To: "Bruce D'Arcus" Subject: Re: [wip-cite-new] Quick note about citation insertion References: <87r1ggu25x.fsf@nicolasgoaziou.fr> <877di8tqw9.fsf@nicolasgoaziou.fr> <87sg0ws7yk.fsf@nicolasgoaziou.fr> <87o8bks5wd.fsf@nicolasgoaziou.fr> <874kdbeu0f.fsf@ucl.ac.uk> <87k0m7suax.fsf@nicolasgoaziou.fr> Date: Thu, 08 Jul 2021 00:59:40 +0200 In-Reply-To: (Bruce D'Arcus's message of "Tue, 6 Jul 2021 08:11:21 -0400") Message-ID: <87k0m1spb7.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.199; envelope-from=mail@nicolasgoaziou.fr; helo=relay9-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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.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=1625698817; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IR9UUOWewyXSwX7UOdjZSg31nV2IDXxn7SHPcKMtx/4=; b=saCMDdv5NRc7UczB2dqdL9WP+wrPCACCbjQI961Pm2llYzCm29xk5UOkd7LZxl+6e6nG8+ l4gVQ4p5OOl0luiTuS1SBqY+RJGxmF/9dQNyPgZCOfnVgoHAIhnrPvx6GBEvUthuMmoZ8s lUgG6n9TTubphegJ0iJDH9sVxst3q1mpmuWjxzuorRtetKGOMSzcGj+/bN1+jNvfohQSSH 9VsETobj0Af35D5FJUFH7VUawk8bq8qKVDVm/2qzs9X0onWFLXud8saVUfoYSWleb/i0OR r6TTJwBZXqdY09VMiKDKJ9eveK94scYv6Y8NSpJg6lcrqQsT8q4FbcPE2csXWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625698817; a=rsa-sha256; cv=none; b=exBU8PM+osekpCpboGFuMqxR4bPp3vpi1fOhDGulcjulSqcsLgujBlSCVDUUXtvlPj/vsy x6Ipnlgdx1tZ4cdxBEsVu5LBUFnAXzl7KK0uAh+wXCh61ZHUko8xCK2k0PtbhJlBbfWP9z iSnRDQ4djKkiq2peFTTZFagowW5cFOPuXmvT9xTf9t9OLVjcWts6e3sGK9pcDlQvNu7LUu SKPTkw2FOLPHOft5soSLn/Ksobe8CfEUjVztAEyTh7KZyFS9bv3+CajJDTmygjY3cfiwp8 WVPMRXrFay326NQd9rKU3M2h29xujh6axZo32eD/1TOuvXBs6xP9Z0UY/nKpog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Spam-Score: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 4FB9A1FCDC X-Spam-Score: -2.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: PcoE3qX6qwQC Hello, "Bruce D'Arcus" writes: > Nicolas - I saw you pushed some changes, per the discussion. Hey, that was a surprise=C2=A0! ;) So, here's an update. Now "oc-basic" provides a reasonable experience for inserting references in a document. It also supports both CSL and BibTeX bibliographies. Therefore, it is used as the default insertion processor. For a user, selecting another insertion processor is done by customizing `org-cite-insert-processor' variable. For a developer, there are now two ways to create an insert processor. 1. If you are happy with the global behaviour of "basic", but want to improve completion, I added the `org-cite-make-insert-processor' tool. 2. If you also want to change the behaviour, you need to write a new function from scratch. Then you define the processor with either: (org-cite-register-processor 'my-insert-proc :insert (org-cite-make-insert-processor #'my-select-key #'my-select-style)) ;situation 1 or (org-cite-register-processor 'my-insert-proc :insert #'my-function) ;situation 2 > First, my initial thought is the behavior at point is perfect. Ah! > Second, what's your intended way one enters a citation with two reference= s? > > In selectrum, I: > > 1. select one reference with RET > 2. select another > 3. C-j to exit > > Is that the expected workflow and behavior? Yes, it is. You need to enter the empty string to exit. C-j is the way to do that on Selectrum. I don't know about Vertico. Regards, --=20 Nicolas Goaziou