From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YNTOAeIj4GBsCgAAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 10:46:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ePgeOeEj4GDkAQAAB5/wlQ (envelope-from ) for ; Sat, 03 Jul 2021 08:46:25 +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 3608EFCBA for ; Sat, 3 Jul 2021 10:46:25 +0200 (CEST) Received: from localhost ([::1]:47052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzbI7-0003ym-02 for larch@yhetil.org; Sat, 03 Jul 2021 04:46:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzbHk-0003ye-Km for emacs-orgmode@gnu.org; Sat, 03 Jul 2021 04:46:00 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:35422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzbHj-0002BG-5P for emacs-orgmode@gnu.org; Sat, 03 Jul 2021 04:46:00 -0400 Received: by mail-wr1-x435.google.com with SMTP id m18so15480848wrv.2 for ; Sat, 03 Jul 2021 01:45:58 -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=NWLZv6HQek3pKTITt0z1prrzD/CKYIDgf+gm7U17Pwo=; b=U9i02ZV5O75U0QgEEt4plgB+b6LMyaIuymH/3EbvJ8/PcVf5r0USMy+FEoxRhNXeh1 2YKwA/dbUj1Z6y4qEFXtK8kCQbpc2oraPqLgX734mQa4EfQGmPSl+kJL2IvT966ZRfw3 Gnlt4RpKW90zPHiU9Pvai1jnIlGr1Gq4y184alCxafZ3klDTZ8ICGx2kIjHZI9KBLWQ6 dGZAvAHa019A00YpD6b7te3uEFQooMxWHXARORj5ajvdfqzRbtFhC0MyxFbNoyi5oAgR TbGu6OAWvA+/Jo6fZKigRtco/nYPoKVLOmvyhuv2LurSy813gTQwirrhXXNxPO9/B+5M nslw== 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=NWLZv6HQek3pKTITt0z1prrzD/CKYIDgf+gm7U17Pwo=; b=ujCW30IwXz1ZDUjlWsEvVHNgWdIrPQs5N+SPo1comEd2pCG0rb62JTdCgcICokapsF vYfJT7CmvQ5OZfa1wKweqwteLtAw40ejVySZd9Ae8C7j3t4eLK9qUUfo+Lexl74Ay2lJ XydZWY+2T8YzR8wg8DuJEx7h7lUr2wNWjmxqUWS7J6nTfddAUEsfLWHc7Ktn7HzqJuYg mL3/0u6DA/xVEm9KnivAr3+dijq9PzFH+Ua+Xw8Dl5GXztxtz+7t5JTaQOXjy/jkUAlk 9/+sYN0MNiLashQfTPnTIfdwARxgVdCDpA0/K7JzzVcec8Cn/C8s+SDEReowU3WeJ4Oc OiMQ== X-Gm-Message-State: AOAM533lc5PlNL4aLzjWmLvMw13Re0jk6b7i0m/2zPG59NrGEcNrwr1R epXjrXFV25dArAksHiUL8Is9c+17YGyWjVEolgE= X-Google-Smtp-Source: ABdhPJzgsK7IuN7krNgpOCM18v3T4MZunkezQZv4C7on09PGPmMp/BojzRXV3VW3QleRnT69jaeSIQGGzB+LDxRdMTs= X-Received: by 2002:adf:f048:: with SMTP id t8mr4134774wro.35.1625301957635; Sat, 03 Jul 2021 01:45:57 -0700 (PDT) MIME-Version: 1.0 References: <87r1ggu25x.fsf@nicolasgoaziou.fr> <87eecgtral.fsf@nicolasgoaziou.fr> In-Reply-To: <87eecgtral.fsf@nicolasgoaziou.fr> From: "Bruce D'Arcus" Date: Sat, 3 Jul 2021 04:45:46 -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::435; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x435.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=1625301985; 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=NWLZv6HQek3pKTITt0z1prrzD/CKYIDgf+gm7U17Pwo=; b=CdAU6lipT4UjgqzY9uCDgFDLm1IEArxXShpkgHxYyiQDLAE3GJebK4m9tarh+zt5MK/fpn gyiz+hB4ZHi5/IhAtbAm9vAiZmk43UHJdTTn9usQchq95bo/H0H8QNkkeVqv6t9Hf/cvh2 56VBlpzbp7NtJ92Lw9sJ1bPmBpRchHPSi5sCP2W0mNMir9IzC5C4Tveg6hRTYaVia7W8n3 YV2biKVvHE0YxWQWs8dbddRruVOzrqexjWRFjiWUOnrmPs7z1T294zP149wwdd+U6eTWdZ zLpDsyz+uE63GBkMpFi+3ydFHJwUzBC5Fe5X01mj8OEFOONhvOoy3xgqP3I2vA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625301985; a=rsa-sha256; cv=none; b=e0yY4UFEgoebD0qZWYvpYbiqE+yCp2m3Yo9mMOovTqhzS5L520M7HctZ0E80AYjhyHvPL5 wFHQY3sBj0j4TCh2i0TeQ1qZhBkDbIPVx1ULPEHXsLJrQ5QrLQOvdJNvWVriDIuMspCHZS fLmSJSFuzTF+rTUGvJzXp/GDuksbinCDNJujI0VqyA4PQ+A8AjTs2hV13ua6v4ophyDrNl AZ4JrEQdu8u99yEu6SwEuaD+MMY4hZiU8ac3BwhXTdpMPqc8/tSv31CE6fcrBIw4IW2njk AMNRIb2/csYO1/GKW6eJjr0MOio7gaMRbVsrt4qYdwbYKY0Hu7u+uKNrdFpSWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=U9i02ZV5; 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=U9i02ZV5; 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: 3608EFCBA X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: d5XfpVgF71NI On Fri, Jul 2, 2021 at 4:05 PM Nicolas Goaziou wrote: > "Bruce D'Arcus" writes: > > If I select that, "nil" is added to the citation, so that the result > > is "[cite/nil:@key]". > > That's expected. "nil" is the name of the processor's fall-back style, > ignoring any inheritance. It is different from the empty style (""), > which takes into account inheritance. Two things: First, after adding a style, I can't see how to subsequently remove it using this interface, to just have "[cite:@key]". Is that possible? In my formatting function for OC, which is simpler than your's in some ways, I have a named "default" style, with that as the ido-completing-read "initial-value", which is then removed if selected. In practice, what that means is if the user is prompted for the style but hits return, they select "default", and hence the result is "[cite:@key]". But they can also, of course, select the other named styles instead. It seems efficient and clear to me, and if the answer to my question above is "no", it could be a reasonable approach to address this. Second, the "nil" vs "empty" distinction was obviously not immediately intuitive to me. I don't have a better name for "nil" ATM though, so maybe it will be fine. Hopefully people won't have the need to use it much. Bruce