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 oOW+C6s632C1agEAgWs5BA (envelope-from ) for ; Fri, 02 Jul 2021 18:11:23 +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 QEJiB6s632APZgAAbx9fmQ (envelope-from ) for ; Fri, 02 Jul 2021 16:11:23 +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 47D0424CEB for ; Fri, 2 Jul 2021 18:11:22 +0200 (CEST) Received: from localhost ([::1]:37070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzLl9-0000nW-Vc for larch@yhetil.org; Fri, 02 Jul 2021 12:11:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzLkn-0000nO-8i for emacs-orgmode@gnu.org; Fri, 02 Jul 2021 12:10:57 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:54245) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzLkk-0002Wr-RQ for emacs-orgmode@gnu.org; Fri, 02 Jul 2021 12:10:57 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 6D431240005 for ; Fri, 2 Jul 2021 16:10:51 +0000 (UTC) From: Nicolas Goaziou To: Org Mode List Subject: [wip-cite-new] Quick note about citation insertion Date: Fri, 02 Jul 2021 18:10:50 +0200 Message-ID: <87r1ggu25x.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.178.230; envelope-from=mail@nicolasgoaziou.fr; helo=relay10.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_H3=0.001, RCVD_IN_MSPIKE_WL=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: , 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=1625242282; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Ie7nvILwnANgtQVWAK5z1XXe+k7/ko3IAOHUk8cZoSI=; b=IbIka8wuxR5rB8WuNxBqmmftjgH6T8Sgte5bYmqC/+5r0Qz7AYzXiNa+KKUVGq8cvdcgfS TIDvMdrDHSboYdM3BDDqaseCKfKF67m8seHAu2swIpyUTLQSlW0tmtAd2QnYqSi8mgN+Qd 2X/mAcGXggFpw6pxd+MCW4T42QK3UaehsLRkEXgdKW/JWIQs2BCg6k8ulb0T/IQnLhxi/F l/sD6drwzeUKU3x62N36dSv7cWhXrs0SuE7BpcBGo52vV1xTYsyNbwI/rbkkoh8sOoV3Wm Sa+u+JWNGcnFec73204iApaPri5BUq4bm/EWW+kcjgZWYa+yUofa/cyHsTZIuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625242282; a=rsa-sha256; cv=none; b=qHBk7eeXR7NJfjJbniIE+Z5e1O+kOue8k8uvtE5aMnEMvGIbfLFEuEB61s2aMv0SQsiJ3p Cys4rbCu7p/ZUqW1beiKVocMyMwuvjXbjWKbTOzpoyYTgB3DS6zLviZSAP4uWcFysNSxpB dWv8dOJRZ6N2BAHb8D761bxCnz+VyhKxnCiFzzsHEQxbFDHKCyTyn9z1S8xeMvKh/HPl0T Wlzc3FIU0r8462QadReeixLGX0aozOMm/9ftNdJZ1O3IkFpUwYz25aI5/jQXNXxHKv94++ F1mFSIlqy+dCKve4bUiSBzaCjJrgYRGD0YQP0kL2McesFDkzQamWbhmIPeWnmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: 47D0424CEB X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: 48XvzehR3DS/ 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