From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id D1X6As994GDumgAAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 17:10:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EGKpOc594GDrCAAAB5/wlQ (envelope-from ) for ; Sat, 03 Jul 2021 15:10:06 +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 52B681511D for ; Sat, 3 Jul 2021 17:10:06 +0200 (CEST) Received: from localhost ([::1]:56974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzhHQ-0007ge-8S for larch@yhetil.org; Sat, 03 Jul 2021 11:10:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzhGn-0007gL-9D for emacs-orgmode@gnu.org; Sat, 03 Jul 2021 11:09:25 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:34322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzhGk-0006wY-GV for emacs-orgmode@gnu.org; Sat, 03 Jul 2021 11:09:24 -0400 Received: by mail-wr1-x432.google.com with SMTP id p8so16258698wrr.1 for ; Sat, 03 Jul 2021 08:09:22 -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=H2DzNq9Kx1Zx+SBmM9LfX4Ga0Kn+44MdaS/EWM8AZ6E=; b=hyFoCJWIQh9Aee3ibtRcqfIyI7e43ANe11eiLZ9B9ljzjWUAnACk92rzgBZipSACvV zHBlU64hbrnvOxiM4igS+DOlIXb04gW67o+qgS3vt/zL6Ghm7g/vHiWTS+C8igu5HnBZ MpE9P8uRHQJk22LjviWfj9Rf1QJPQM0R7ptjErD+hYwdk8vUotdE0vJbzHz2rFvZyJDt hNpvT7k7fR2ci598YsJwPz108AIAtulvwVARlpUw5ObPWSR7OTfMRIKVsR0WJSOGfZMy nisqo5pJEHa6mMLhzKYSAKskyX5NNIbOegtlaOGlSLohZOxFYQWwIouaBKXhPQo5QuHJ ZDIg== 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=H2DzNq9Kx1Zx+SBmM9LfX4Ga0Kn+44MdaS/EWM8AZ6E=; b=pX4Ozqb9e5iP+PPgxLyOJ2i6fTHuBoDYf105Krmez3qfcwb7abKBi9nwHTrskK5wUa je5qwds/Dgczf7dFwYOSRpukqSB7QUGJ3TZMfKoo2p7v8k5y9Y/FyOz53b0hzqtVBVGs ZkntossZa+vPyQM3qSF8kS8ep6wyqasqHorRZLvO8vgUUMgaPErXcqSW02Tslvv4ORSP l7r9Vt/V+Jv7kdand40PGEQITQni6vfT/n+nBSo/96vLVX/tY48kCsIRYdTH5S2XwOEp Js06zz5Oj0C3nrnCfROTQjeefnF/dQNyjXt1yHSnbtqAEkyUGO8k1F4d75sFGVvMCF9t 6jCQ== X-Gm-Message-State: AOAM532aC4x2t4CVahVr8ETdA2lKtuVfAiuAZb6y70awbA4tgZFU4vL/ rb6MESRKDcL8K6L4puP3GgrHcX5Cre0L7sLY9Km+12wtd+4= X-Google-Smtp-Source: ABdhPJyCFBpkzgw6sWYX6e1pL5eODCfvW2IyZSzTBYwUQz5rxcZi62RNtv9GX0B0eLXR56nkDUnIbjbPYEL7RJHs9zc= X-Received: by 2002:adf:f048:: with SMTP id t8mr5591487wro.35.1625324960453; Sat, 03 Jul 2021 08:09:20 -0700 (PDT) MIME-Version: 1.0 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> <87v95rcumz.fsf@ucl.ac.uk> In-Reply-To: <87v95rcumz.fsf@ucl.ac.uk> From: "Bruce D'Arcus" Date: Sat, 3 Jul 2021 11:09:09 -0400 Message-ID: Subject: Re: [wip-cite-new] Quick note about citation insertion To: Org Mode List 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: , Cc: Nicolas Goaziou 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=1625325006; 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=H2DzNq9Kx1Zx+SBmM9LfX4Ga0Kn+44MdaS/EWM8AZ6E=; b=JOUILexSGpodf0h5hV4bqGTlAGjWYuMEfCBx8cRsArbitqffKPk4QHPOFvQa/61Mpniza5 +hasxQKZX0JxArugHYcokjL6/N9Iot0nQTT6iLiACorrpbVEJg85s6hLY3HO+l6Sfpk97I SsMtw+I+rfe/PHRSTgSe7ahz3/wedwunFgBcCyFXJl5miMsqQyorkAqeeN/l2Odmsx5SX0 7aULhUGZY77UEWB7P0PiH8IXvVNIEtawKgJ7zmniWs3L7zJTC+Jyx3wrg6+HdeUEQ0FxjX X07ii/dLuf5Ja6+s7z6Tz6s69dvbaZFxPscz/FCzCW09sPTN4N4LM5sk23LFRQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625325006; a=rsa-sha256; cv=none; b=L2izVA7/Y9xnk3tRZiV9mP3VXgKYvCCbkpX0PRk9lrwVht7EQzujURroDP9zSgAxFRPcMH 7OOyPCImT3M2i6nPe1yIQpDTc43Qb1cGWxijQTw40GGbPDSLbNgEsPObHo+bp72YMAsjm+ w85RmJNuDeBKORG7CUyFNto9v/IV3iOqUYDqu4eWL21vS7fVi9vEzE4TJKffU93U+5M/xo QnD0PJJc42Mhvxmr6Pzu0dQyQCXHYsedMWzqX1MkWL9oSDc8z9P3g6NKY6xz2qLgWytAO0 Sno7EeEj67RMV8bFq0nyh/yNY9SK7A1f12ouzJ3HlSJWnm9za9zWXXTjymhcIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=hyFoCJWI; 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=hyFoCJWI; 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: 52B681511D X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5RGUhIurnO+D On Sat, Jul 3, 2021 at 10:58 AM Eric S Fraga wrote: > > Anyway, I'll try to provide something a little more useful out of the > > box, based on your comment and Bruce D'Arcus suggestion. > > But that's partly why I mentioned ivy-bibtex: solutions already exist > and there should be no need to re-invent the wheel? I kind of disagree. There's a middle ground between super minimal and fully-featured that I think is appropriate for oc-basic. Nicolas is doing things with even the basic insert function that are not possible with the existing tools currently, in part as a demonstration of the possibilities, and also just to provide a decent default experience. But as I said to him off-list, if he simply changes his completion table from being a list of keys, to a list of cons like I mentioned, and maybe even makes the table a variable, then third-party tools can do one of two things: 1. if the variable, simply plug-in their own completion table, and so get a richer UI (this is the case with bibtex-actions, which has the same data structure) 2. the code itself can be a demo that can be easily adapted; in my case, I can pretty much copy-and-paste it and just change the "all" let variables Practically speaking, the ivy-bibtex "insert citation" action, which uses the bibtex-completion-insert-citation function behind-the-scenes, can then be enhanced such that it is more fully-featured in the context of org than it is in other modes, and that it is now. So enhancing this a little bit will have both short-term and long-term pay-off, both for default citations in org, and for third-party tools. Bruce