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 UODZHREKj2IzZgEAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 07:03:13 +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 CLHOHREKj2JfJAAAauVa8A (envelope-from ) for ; Thu, 26 May 2022 07:03:13 +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 0D0F4251F9 for ; Thu, 26 May 2022 07:03:13 +0200 (CEST) Received: from localhost ([::1]:46714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nu5eQ-0004zi-GW for larch@yhetil.org; Thu, 26 May 2022 01:03:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nu5Wx-00033H-Ji for emacs-orgmode@gnu.org; Thu, 26 May 2022 00:55:27 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:39568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nu5Wv-0005k8-Pw for emacs-orgmode@gnu.org; Thu, 26 May 2022 00:55:27 -0400 Received: by mail-pg1-x533.google.com with SMTP id t28so428299pga.6 for ; Wed, 25 May 2022 21:55:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=G/5fRZa2ZUwSxkE6jadiJTeRLlEoXnU2tmslQPmyQdU=; b=Ep3/aXvcbAExeNGI+pFQlEoB+W2Co2TOJl/5wPc4uGsRDJjmwIOnQNmYNzkgAsE9HX GThI7fihng1Eb9Wrf26tTb0NPGBNx6/p1pB81NG+e7g8eKMALZw5ktaat4YcP9Jw22o1 ZtniHYyFXrFmarrxlCQ6GBJZyMmkSs/JwwnqMIhjie5rFD52bmFuvduskwCvXGkALywb qyVkIH/UJnkGlfXKFFuOHwsIVZDeAV2N8CxRqm3LjA9c7CfqysPHwXvDEDle9F9CU4Cg 3xTFvkw5MgL2J9vgQa8ej/dk6b9Iek7B+2ngRSoKhCfMaw3QA1kVYgTY07hhpDz6BQh6 FswQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=G/5fRZa2ZUwSxkE6jadiJTeRLlEoXnU2tmslQPmyQdU=; b=5DXhOOeAGWvaX41kaqjW0x/kelMpI1QLxr+Lp1+VmuFMcddOk7N0WVhQqxjZDXnbz7 cO4XKOYi69DnyZLZdaSzqrA83e/5lQl8E3RqHrh9qIRkyiDald2KXnMDWdsWXnkgVJqG tJVYuekcxvKX7sDxgYgC6MXBOnc9TnCWeNDdIZpJHx4dksbwVb9iP49bgNDfcDe/UbUJ trr7/EHcC5Dp6Se5bXgF7BMktXnwU6FM2EyjTuTRXHNfDchva08TC/CjPUHkEYlvu3th gc8Mwib9vIoKbQESC8DRJcD0wXcmwt3LJZasn24KEO3Ghs4OGWDQDEQ8ClYbWo+ziJqA eW0Q== X-Gm-Message-State: AOAM532+lTujxDvHS2DpFSL9ogTL6KckKllqUh2jsbzCie2fmBUm+WDb p0FwoHCHMUSEipLQ1UBRFIU= X-Google-Smtp-Source: ABdhPJy/CBEXqwh6+r4MsSGG40NqmG1DQ6XODQL10O396G/hAs/ObS6xRj++ipqcGKTs35e2GArJNA== X-Received: by 2002:a05:6a00:1d1d:b0:518:421c:b65e with SMTP id a29-20020a056a001d1d00b00518421cb65emr34386329pfx.43.1653540919397; Wed, 25 May 2022 21:55:19 -0700 (PDT) Received: from localhost ([74.222.20.18]) by smtp.gmail.com with ESMTPSA id b5-20020a17090a8c8500b001cd4989fed4sm2521447pjo.32.2022.05.25.21.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 21:55:18 -0700 (PDT) From: Ihor Radchenko To: =?utf-8?Q?Jo=C3=A3o?= Pedro Cc: Tim Cross , emacs-orgmode@gnu.org Subject: Re: About 'inline special blocks' In-Reply-To: <87y1yr9gbl.fsf@gmail.com> References: <87czg49cwq.fsf@posteo.net> <87bkvn7iqn.fsf@gmail.com> <87pmk3shvw.fsf@localhost> <87y1yr9gbl.fsf@gmail.com> Date: Thu, 26 May 2022 12:56:00 +0800 Message-ID: <87ilps6gf3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=yantar92@gmail.com; helo=mail-pg1-x533.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653541393; 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=G/5fRZa2ZUwSxkE6jadiJTeRLlEoXnU2tmslQPmyQdU=; b=eldwl++LdkGEfCVGTBtgOPKhCx8vuAubuebyr0AOhWIUv5YPVZDXW0mSIvZ7cYbK6Q4Jrf flTQRjaNjyx79jxHb2/og6bH5ivmSYGtxjXsFYBONEr+uI8b9qSmgg7z/VFcxZbXFUHHIm GQra5J9//9WK/q3269F4nCCATz0dJc5R04BHeOPvNp/R6+AUljcsXbn3ipuh1L4sRqd+cE BG0luUHQwU66Qz1fFaWjV+79CMX2amSfF+2kJdQOKpDijDq9/7MBZn4M7eJJlRh0dqeEfz 4l0F2z61jVyv2u+bj6b62i3ZtJSCRTCZcRf38PAEPlVqaIC8HOBemdgv2Hrd/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653541393; a=rsa-sha256; cv=none; b=dx/0C4ntp8MtndJs9Fh3llL6oPOwLcIweJjs18A8XVICm59ykil3/n0PwZMNQZ4x4Yxz5F EE492fp1BEetf+XnXNsACGYTv5wSgUVg8s1GDlGso+2n+nwkoyNw2fGmAxebg5UDQq2aGV uRcLmQ8MrdO1to1vFJ/Tr5M200lJ3k/EdqWfuKrccR/KZ+/v/jnGzorQ4rjRA8jkUO/Sc7 1FMdECs3dG5YPj3Wcvmq7wtUm6f4mfSjnew3a1zai3UsFwES9NYszY9+TuzLy61sNDTawM KECi8JSvTlV6qPBh6V7jSZlKaiTVA4Q+1tj02nd4163WvfzjRogkSlFwW6dhfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Ep3/aXvc"; dmarc=pass (policy=none) header.from=gmail.com; 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: -7.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Ep3/aXvc"; dmarc=pass (policy=none) header.from=gmail.com; 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: 0D0F4251F9 X-Spam-Score: -7.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: vfIeyqv/GHVf Jo=C3=A3o Pedro writes: >> #+attr_latex[name]: >> Vestibulum convallis, lorem blockname_[<>]{text} a tempus semper, = dui >> dui euismod elit, vitae placerat urna tortor vitae lacus. >> >> "<>" will be treated as "" during >> export/parsing. > > Although I do agree that this sort of solves the same problem as the > other approach, but I, personally, find that defining new special blocks > is not only easier to reuse, but more readable as well. But I'm thinking > in terms of org-special-block-extras here, so take my 2 cents with a > grain of salt. I agree. But it is a known problem on defining new specific command vs. running a new generic command with arguments. You can indeed define a new command (block in our case), but if you just need to adjust some parameter once in the whole document, there is no point creating a whole new block type just for that purpose. Think about defun vs. lambda. > [1] https://github.com/alhassy/org-special-block-extras I am not sure if I mentioned this earlier, but org-special-block-extras could be a good addition to Org core. Best, Ihor