From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6IBFM7xeZGE9dwAAgWs5BA (envelope-from ) for ; Mon, 11 Oct 2021 17:56:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eGj1LrxeZGH/JQAAbx9fmQ (envelope-from ) for ; Mon, 11 Oct 2021 15:56:44 +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 74B2D8AAD for ; Mon, 11 Oct 2021 17:56:44 +0200 (CEST) Received: from localhost ([::1]:44020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZxfP-0003Nv-JT for larch@yhetil.org; Mon, 11 Oct 2021 11:56:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZxdG-0003JU-8d for emacs-orgmode@gnu.org; Mon, 11 Oct 2021 11:54:30 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:49333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZxdD-0003C5-Sr for emacs-orgmode@gnu.org; Mon, 11 Oct 2021 11:54:29 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 54CDD60007; Mon, 11 Oct 2021 15:54:21 +0000 (UTC) From: Nicolas Goaziou To: "Bruce D'Arcus" Subject: Re: A minor suggestion about formatting citations References: <20211010230903.t7phnpribyvohlja@dalkati> <87wnmjgarm.fsf@nicolasgoaziou.fr> Date: Mon, 11 Oct 2021 17:54:18 +0200 In-Reply-To: (Bruce D'Arcus's message of "Mon, 11 Oct 2021 10:54:09 -0400") Message-ID: <87pmsbftg5.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.183.195; envelope-from=mail@nicolasgoaziou.fr; helo=relay3-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_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: , Cc: org-mode mailing 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=1633967804; 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; bh=R3GnDL14I9dy2xjl61L83fJnuyj/VsJOF1+YaFznfgU=; b=u8dDA9MRXhxgLxgdVYvMbd/2wLwejxRPraAxzidGLLzGESpg0MBT7zXvPzY3FspugjCJmF N1v6mKXwUFoOt1f6xBJyU0Gdpca9s3gtQJUtpzj4BKj3Gs5iJQGv4Za2fgtAufyfSayVXo +neaSFmPhpKGsi+YK6+Z9OMLcc9plg8tVMabB6saot0QRlbW+iyfgUbqUgl0M4o5jcUR7I XkRjLJdg8TK7xx2KvvD3rIebR4ztRweEHwZAwE1lhzq3A7ZAtgXgdv9WmS+1EI2P/pBZl/ N5dVhmTm5b0CjboCjZ4y8JKwwNM9WQT8TszPNl5wMGI8LvDTpS2Zyu7zMVogXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633967804; a=rsa-sha256; cv=none; b=h8d4qpQDsn3/8qOgJBU2R9XGCFgRNGoRYCWeWGpOZSX/cWNFUjJNVEx8wu1M05vPo7bvX2 Ezdcu1xrTZIeRezEmCURlJ8wXEk+6gx4/DqGqNkKQjwtWuTRYyyDB7mrs94WrHn4gW1Hjz 2qrqInx6CfGpR/K6H4cjTbKYubOS3Fvur6u5CsvhW3wi6ckKJlx4ziHdZnMCqKdiZLRLyJ sZB16FC0KEdgyVJ5BzUPhDwIy5Jyjt7pZQv7eopFXuRgC8fAyFarP23Tg3tu/oF1dJqHNW skIgzsmT0L3QYuDG3DiqPrlMv6gOQMWBtiktBeUbzpKAQKsRVdXNBhi430ieYw== 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.92 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: 74B2D8AAD X-Spam-Score: -2.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: 23cqyZY/rLO9 Hello, "Bruce D'Arcus" writes: > On Mon, Oct 11, 2021 at 10:28 AM John Kitchin wrote: >> >> you should probably trim each key, and re-add spaces where you want them in the function that does these kinds of things. > > I realize that's an option, but something about that feels wrong to me. > > We're adding a single space as prefix, not because it's meaningful for > citation purposes (there actually is no prefix, though org-cite > interprets it as " "), but only so buffer formatting works correctly. I don't think that's totally true. The additional space makes sense typographically, in particular when some suffix is associated to the key. > And then presumably code needs to be added to the export machinery to > strip those empty affixes? I think they are ignored already. I didn't check though. > Am not saying the latter goal isn't important; just seems like the > side effect isn't ideal. > >> Maybe that should even be controlled by a defcustom that allows 0-1 spaces. > > You mean in org-cite? I think that'd be my preference, unless there's > a better solution to this issue. Org Cite is unrelated to this. One could as well have inserted spaces manually, i.e., without calling `org-cite-insert' at all. The functions responsible for swapping citations ought to cope with this situation too. Regards, -- Nicolas Goaziou