From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MBGvMtPPS2MmUQAAbAwnHQ (envelope-from ) for ; Sun, 16 Oct 2022 11:33:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kMeOMtPPS2NR3AAAauVa8A (envelope-from ) for ; Sun, 16 Oct 2022 11:33:07 +0200 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 905581D700 for ; Sun, 16 Oct 2022 11:33:07 +0200 (CEST) Received: from localhost ([::1]:53172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok014-0000jk-Ng for larch@yhetil.org; Sun, 16 Oct 2022 05:33:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojzzt-0000hy-Cp for emacs-orgmode@gnu.org; Sun, 16 Oct 2022 05:31:53 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37405) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojzzf-00079o-1s for emacs-orgmode@gnu.org; Sun, 16 Oct 2022 05:31:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 469F0240027 for ; Sun, 16 Oct 2022 11:31:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665912696; bh=qhPg+AvV/Qbo3PBG2jnf82KZ3VOXlmzdqp+EtHDipq0=; h=From:To:Cc:Subject:Date:From; b=iK7vgGgV43GWtNI3QMdvPgXd1WNR3lJBF3reGJ2DYrr8fURyaxxCbumBZtZrnO0wC xBnz4hpoJ7oFW/xxYfiqJ/5RDfIaoq2YnBeVMPzbUKxwtVUtsKFEmW16vU5LvrmLci C+MbpVTHT17SKIWhpKTPjN7viyUVFAHHalpQfU+UwTp7/tulR7fIV/nYPpcYDmI05I vtdIVBG84NnTe+kOiCo3kAn4OBiEUgckup0s0pbQu7Jhb6ePaW50nxKMHX8ghC+res 1um5296ieMqDNv+N43aDCOWitBtvh5cgijZf7V7Qv/pp6lD7VtTwZZ2SlPACdaih7m 5UV4+tT5btPgw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MqvyZ0LXPz9rxK; Sun, 16 Oct 2022 11:31:33 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?M=2E_=E2=80=98quintus=E2=80=99_G=C3=BClker?= , Nicolas Goaziou Cc: emacs-orgmode@gnu.org Subject: Re: [bug] Macro in citation not expanded In-Reply-To: <8735bot9dp.fsf@guelker.eu> References: <8735bot9dp.fsf@guelker.eu> Date: Sun, 16 Oct 2022 09:32:22 +0000 Message-ID: <87lepg6rmh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de 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, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665912787; 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: 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=qhPg+AvV/Qbo3PBG2jnf82KZ3VOXlmzdqp+EtHDipq0=; b=avowCNdBa1SqMHYAWbiCcJfHehtZxZB9B0MdQZ81mKcnbdYPXEm7puZsynnm0akpR1KmWi 5wGI0Nx6epiG5O+Qrjdm3f/O+VG6KKNpLbOlRpB4nEzTIBm5lEErge/VDxs6CGXDVzI4mV 01hml3bWMVZ9RbthY0ElMGLxmTRqFiKKGWNb1a8HfOdejVtfTjGAtoRyRptclYnDNptnKy R5VpRBtPFF3LpC5y6UEFGFAi40r1h3iCO376DnzyhWvdd+SK5S3HYh2CcIPga76RA5r1oe meGDmSxq6f3ChB2hCcqd7SB/BsqQp2M8AGl2LnVYbxVCWyzzMojkjIKpjgDtxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665912787; a=rsa-sha256; cv=none; b=FATpgGt98DuZobV8bRk+NTeqwIfvuvU2fb5uhXBKlJ2TYqpL2M/ooSrdl7zQMoh2HWCpm6 xPfOzKAe8ufrL5UeUonK3ermyMCDphu+ugc71LNNKpBHG4pveX/gz+WDWgi5yBvbb7rlJE wL5uoADwm7E997MJ9vbaAZA7nwrKDCO2uZt1OsPDp4Ks+3OUtwATf2G8bTnIYh1hFFtOpf aawyN7sEJhXEolyHUwhiNq0015WG/Tv2EpFiYmwS0OjPsgelPzs2DIMPlcVzbdbg7Luspl ZMkg1hXxGOS0JeuFYyNEGvPNRsqXDSocp2BAUwv8NM10pJFzsFz/Z+ktT+IZqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iK7vgGgV; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.40 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iK7vgGgV; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 905581D700 X-Spam-Score: -3.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: dvehP3IbD0Bf M. =E2=80=98quintus=E2=80=99 G=C3=BClker writes: > it turns out that macros in citation commands are not expanded. Confirmed. They are not. Only bold, code, entity, italic, latex-fragment, strike-through, subscript, superscript, underline, and verbatim objects are allowed inside citations. This is hard-coded inside `org-element-object-restrictions'. It sounds reasonable to allow macros inside citation references. Maybe we also want to allow other things. Maybe simply allow all objects but other citations, line-breaks, and table-cells? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at