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 tWYzE86t32An1gAAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 02:22:38 +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 0N4aDs6t32AsGwAA1q6Kng (envelope-from ) for ; Sat, 03 Jul 2021 00:22:38 +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 8C76DCF39 for ; Sat, 3 Jul 2021 02:22:37 +0200 (CEST) Received: from localhost ([::1]:51486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzTQZ-0001nZ-Ib for larch@yhetil.org; Fri, 02 Jul 2021 20:22:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzTQ5-0001nC-OE for emacs-orgmode@gnu.org; Fri, 02 Jul 2021 20:22:05 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:37799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzTQ2-0000As-3m for emacs-orgmode@gnu.org; Fri, 02 Jul 2021 20:22:05 -0400 Received: by mail-wr1-x42f.google.com with SMTP id i94so14438118wri.4 for ; Fri, 02 Jul 2021 17:22:00 -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=4w2JEBOnwSDr1h9HxaupPw4Sz85BsZt2eh42kbtBdNg=; b=iaynduOBVoDSKPcF7bxCqly2A1BIaLQJZb5MfqoQ9zoDDPWr1GxhecGBS9ilX0BwJL sQzbhCekggq8/2RE8ZaA4mexehhLHQ+PT7OLXvg56+RHAp7akVxLVkZgQ5uB6OHoWfOV sgNdshYE10OjUAcEAlUSBZ9/GyJggZRfivnW+XQ3QSIBcC7LVB0khWO34d7DG16V8fYx yPpeJlgCx4KGgAEvks+3LuKamx9Ca1QSlXDrSoqZsORoM57wlgwWvi+rs7DVO9hxokmI j725KsSwlPt/eOO8t0LQQ9rGVk+nYUAW0dCIOYtOFgbSrlnYYtlQoUOnZslnoJ+guVQP BwSw== 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=4w2JEBOnwSDr1h9HxaupPw4Sz85BsZt2eh42kbtBdNg=; b=mRmoQCV+sx3QDazW7cFb/6LzYg1fnVUzPHsKXROKmj2+a5V1snCcgjsHOmgtE0AZXz CdqrY8hRGNh7G5OooKp2j61U7OstzG21Wjuz9lDfzWSLGMNEb86Sych94bMQ0Fcnwypy +oeitWnUxfTN9nXbQJFE2lVj7E0nYyw2nvKOY+ZX55D1k3pe6HIHdvFAInRHfxi7ac6a 0x5lpUj9O0lrUc+TJ5NS0AOoE3FZ5lkMHcg/OK2PRti8NmXmvci3UP8QmEtSfGu2joJc XBXzUI8awxPEug8wgIiiZCvLx00zwqzi1d/0lE3DKHQyZQj9+1yoTWphCSzn106kCnkc aFRw== X-Gm-Message-State: AOAM53354NWjs7UK/ySiQezh3x7AJNGFj7lejB+I+sljieKXBadw5mN/ 8XIkkt+uZrc+rLTfELXiQchJTJXl0VlW9LZ6IlI= X-Google-Smtp-Source: ABdhPJxljJlekN56Gz4kxyKlUINBpmwuddhGj0EDn7n5FUti4/bQt/wzmJkHvBzDo27yytT4YfvYFezKEbi1wjcQUAk= X-Received: by 2002:adf:f502:: with SMTP id q2mr2360529wro.77.1625271719682; Fri, 02 Jul 2021 17:21:59 -0700 (PDT) MIME-Version: 1.0 References: <87r1ggu25x.fsf@nicolasgoaziou.fr> <877di8tqw9.fsf@nicolasgoaziou.fr> <87wnq8s987.fsf@nicolasgoaziou.fr> In-Reply-To: <87wnq8s987.fsf@nicolasgoaziou.fr> From: "Bruce D'Arcus" Date: Fri, 2 Jul 2021 20:21:48 -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::42f; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x42f.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 , John Kitchin 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=1625271757; 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=4w2JEBOnwSDr1h9HxaupPw4Sz85BsZt2eh42kbtBdNg=; b=GzDNu3O1204Se529hFQtaRIkpd3Fv8y/G2mrGG0UjS+nHGkcfVkv+Rg4tPSOVggWwIa9NC OB4XQ7GX0aumX3diwz7EgWZ0+5g6gyoSzYZ7x7kRFsN1DTTSClJGIYvblnDNZR9jEa+YE/ bcR51LfrFA6JHH6zRGRf8KqZ+5ozedW7xxF5PqrPeDBnySL13dVQv2PeW4AYATok4HEjyT Tx/aVlujLpKGsufxVDw9vTsraBW4CQ9IaswAqmbGUNU7GonK9xy0xth4UfC68E1a8VcBv1 OxjFX8K6PgTq6GPhwMIn60W4y8L8VhhT2IVZICW2KTPMjehG0VfRtEYavvY3zg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625271757; a=rsa-sha256; cv=none; b=iJvC0ouT9OfYxpbqsT6777wiSB25G3rI4j4Qg+OrpMrCnslbPE0TjXgHQAVd3EcBWhk3pZ 6Eddr4OpDc0QJPqtjnOqzy4LwMDn0xkbZ5weGOoRnLAQd6KdeNVMbQBeNvvIEDZJIwTSeF axnRpaDG8ILWDp8UJeGFbD6XEWr9lEWgqqxZ3IdcSae0pz5sUO1KBxd2cF8U9SMbx2MWKl 01fIBOd17zynWKtki8SZhucmmWiOSs4qRpDYu0ePcHtMRH3/RiaIilKeUAJAdDXqAwxwex AZzozIISxsTR9VpdDpO5yBBPCWUpsLOyleSaNW1e87Vf8LxFYcCm3fdEesUATQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=iaynduOB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=iaynduOB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 8C76DCF39 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: +SZeUuUsXnzz On Fri, Jul 2, 2021 at 5:21 PM Nicolas Goaziou wrote: > > Hello, > > John Kitchin writes: > > > I would not use a prefix arg here. you should just check what is at the > > point, and if it is a citation then append it after the citation at point, > > and if not insert a new one (maybe after moving the point to an appropriate > > place if needed). > > Well, currently, if there's a reference at point, the function updates > it, which I think is also a valid behaviour. > > On other parts of the citation, the function updates its style. Is it possible to have three options? 1. if on "cite" prefix, edit style 2. if on citation-reference, edit reference 3. else (like where point is after a semi-colon but within the citation), append reference So the difference with current behavior is 1 would be more constrained, and 3 would be a new option. Bruce