From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uqlYClKuL2EX/AAAgWs5BA (envelope-from ) for ; Wed, 01 Sep 2021 18:46:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id k5ktBVKuL2EmdQAA1q6Kng (envelope-from ) for ; Wed, 01 Sep 2021 16:46:10 +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 8C7FE11E44 for ; Wed, 1 Sep 2021 18:46:09 +0200 (CEST) Received: from localhost ([::1]:55956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLTNI-00045s-Iz for larch@yhetil.org; Wed, 01 Sep 2021 12:46:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLSkO-00029V-P0 for emacs-orgmode@gnu.org; Wed, 01 Sep 2021 12:05:56 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:48185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLSkL-0000ik-LP for emacs-orgmode@gnu.org; Wed, 01 Sep 2021 12:05:56 -0400 Date: Wed, 01 Sep 2021 16:05:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1630512310; bh=JUaeDCaqFQVs80of940Hh6XLc06AuysR10MutFM2XG0=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Nhupfg6x+7D+tdIV6ueSdwtYHEEDpe8sq/UVyxMvoBsViUgMWVdEQ2QhdLjjC3g+2 q/eKmJrKF15aRnNezTfqFxNht3y1ap9FuqDbG0JocinUSWbApUsDkadVf579szKcyH 362VeEP0CHEZbI8NcAwhi9u0xENP6TbTr1lXM2F8= To: Timothy From: Yuu Yin Cc: emacs-orgmode@gnu.org Subject: Re: org-cite: enable inserting citation (org-cite-insert) after list bullet [9.5 (9.5-7c78aca @ /home/yuu/.config/emacs/straight/build/org/)] Message-ID: In-Reply-To: <87a6kxq32h.fsf@gmail.com> References: <87a6kxq32h.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=51.77.79.158; envelope-from=yuuyin@protonmail.com; helo=mail-0201.mail-europe.com X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.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, HK_RANDOM_ENVFROM=0.238, HK_RANDOM_FROM=0.999, HK_RANDOM_REPLYTO=0.999, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Reply-To: Yuu Yin 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=1630514769; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JUaeDCaqFQVs80of940Hh6XLc06AuysR10MutFM2XG0=; b=ZtNnVPjPLDGQwV7kLmF/qKBSLP6ZlfHnz6a4L32o7Y0By2Z8+etySJFcJtbGPCYPWzAald 0bkuJomKVeLoOLbBL0Z7ntLGT88TXjrMo1OxWPPLEnqszrEXwycXOmguCPbEVYG04vP5dA Me6NzdKeWHowyjEM3mSaxtx0Si9XI10VHK3N5nf935xNgBlBKRklH3ZL4qVax/V+JoiWpG wsZPSJHcpoumERfTnRcWCO/A525xvMG1meGrNduzMQCPY8YlzLNnjd2e/cUn7ga1z94zbu +kcOJo8hLIMPy5VmCbhKSKoyMPyWqPbYyN+BVJEjcewqibJWvJvtyVt62DfUZg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630514769; a=rsa-sha256; cv=none; b=ckLmXNVSAnkE7CsWNoDmUdj3BHzWhAm7OXVW/3HBH+N6VpAYRBwZoBlTtdIAhimcxBAufD ntdaRyhHRa/olkSN8v+upPL6WIR8rMOWVkcqbxE4svv9LFDPD1ZUavMzga12YyFuT3+dCB 33Hk1Sbg1vmMn76vV5Z73LQofT7bq4tD2zYfnuMA9BdX08tssw12IHTjAtFxfdyuklLV4P Cu3LViwF8LZP14WjiIKge3ROHuUjT4bt2F6VeWVOrCK0QBIp4+zKRuK25M+wytqCo9wuL3 iJSKLscshMNBEyIS0pq755IRgIZwwJcQqruOsfrfzzfOZ6WhcyMEigMH7VTBHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=Nhupfg6x; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=Nhupfg6x; dmarc=pass (policy=quarantine) header.from=protonmail.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: 8C7FE11E44 X-Spam-Score: -3.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: WWYmKsLOrRgK Thank you! Would it also be feasible to enable inserting citations after li= st checkboxes? For example - [ ] [cite:@author-2021-title] - [X] [cite:@author-2021-title] + [X] [cite:@author-2021-title] This is super useful for marking which works/documents the user did read an= d took notes for e.g. a literature review. Yuu Yin =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Tuesday, August 31st, 2021 at 7:24 AM, Timothy wrot= e: > Yuu Yin yuuyin@protonmail.com writes: > > > Invoking ~org-cite-insert~ after list bullets (e.g. ~-~ and ~1.~ ) > > > > doesn't work. > > I did a little test myself, and can confirm that it's not currently > > possible to insert a citation immediately after a bullet and space. > > This can be checked with `org-cite--allowed-p'. Thinking about this situa= tion, inserting citations should be fine as long as the` point' isn't befor= e or immediately after the bullet itself > > (i.e. no space). > > I've prepared a patch that fixes this (attached). This is the test case > > that I'm adding: > > - ((eq type 'item) > > > - (> (point) (+ (org-element-property :begin context) > > > - (org-get-indentation) > > > - 1))) > > > > As this is so simple, if nobody has any comments I'll push this in a > > week or so. > > -------------------------------------------------------------------------= ----------- > > Timothy