From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 gCjxEIPZjWKKnwAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 09:23:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yOb/D4PZjWK20QAAG6o9tA (envelope-from ) for ; Wed, 25 May 2022 09:23:47 +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 D076F2423D for ; Wed, 25 May 2022 09:23:46 +0200 (CEST) Received: from localhost ([::1]:59424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntlMv-0004eL-8T for larch@yhetil.org; Wed, 25 May 2022 03:23:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntlKk-0004eC-RN for emacs-orgmode@gnu.org; Wed, 25 May 2022 03:21:30 -0400 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]:38301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntlKi-00046j-SP for emacs-orgmode@gnu.org; Wed, 25 May 2022 03:21:30 -0400 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-e5e433d66dso25066946fac.5 for ; Wed, 25 May 2022 00:21:28 -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; bh=codhzKHPqZfefC/4AGcz5h89+yHqUDP4GFM02miYbBU=; b=VFY9e0icPHN3elDiEUpcMKAoys33h9MUWL2J+NH1DP405LUqKunyTqck5tP1IAItr9 Ww5OglQDHQ+4hMDXKibRTGVolK6+JY6b/2gx6t3+QMQoVry4e8/bsbl6ceqvq0YpxO99 822BgBBN28tVTqhbsG0KkkB0D/SCagHSu9a4wshRrr7ZGP2QkmmR5q5fBrniWYfAeLWm 2fVy9pzywn2EXFd0Cm0ANlq12sMJnvyGGPdcwgyQRW0KTKIIOPbRBc+TvX88o0TcMZpr 5r5jcz2Sw3retebf5pkzZNfJBvOB1j/VcC5LNp/likRiIjgQMbZhNRZhrI/lXzttNlab Yvzg== 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; bh=codhzKHPqZfefC/4AGcz5h89+yHqUDP4GFM02miYbBU=; b=suBkN9FxHu17WiyffHcmoWSU+1IcTMqqLMcuZWXNgpz8khjXXED3Xdzmgx4XdPnkl2 2KUwPZOz9WDiUerjJIl5TZ6MbHy0aVEzllSzlfoflRcmdpubGT2GtOl7sx/xDKxQAkID UuoTDEQA1fzIcQf7CBFYmZMYlADpXe7VRMqQ5UtXD9c6zCoEw+sejWsGc+r0WxZaLHAJ T8CY2sE65XkSPH4Q5L/dot4o4lGOM+/8/nf8VBw9WzgMRj8JGaBZ3tpqvzU7VEtDnm1N 53P6YOYcWr+tHMXYna/7A3eptzX4YLQbJzzbXDW61avpcNdd0ikRt9TPNhLNZ0QQXdno 8DHA== X-Gm-Message-State: AOAM532wXadwinwAMKBPDyVNYyHkdtqaf55t5w4giBd9oVoHNhykE8jJ pjU6PST29acX/6MkwxS036w= X-Google-Smtp-Source: ABdhPJzllhhRa+Ep0yij6ZhHj/av4eaBk5758PWzNckoArJ0aI54VnLPbEbP6Mv3fFncyG7Wx/Qo8g== X-Received: by 2002:a05:6870:304b:b0:f1:d49b:2bf9 with SMTP id u11-20020a056870304b00b000f1d49b2bf9mr4559496oau.0.1653463287547; Wed, 25 May 2022 00:21:27 -0700 (PDT) Received: from localhost ([207.126.91.4]) by smtp.gmail.com with ESMTPSA id n3-20020acabd03000000b003264a325ecdsm5929488oif.5.2022.05.25.00.21.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 00:21:26 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: About 'inline special blocks' In-Reply-To: References: <87czg49cwq.fsf@posteo.net> <87bkvn7iqn.fsf@gmail.com> <875ylvzio8.fsf@gmail.com> Date: Wed, 25 May 2022 15:22:09 +0800 Message-ID: <87tu9e13ha.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:4860:4864:20::34; envelope-from=yantar92@gmail.com; helo=mail-oa1-x34.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=1653463426; 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=codhzKHPqZfefC/4AGcz5h89+yHqUDP4GFM02miYbBU=; b=tFfbvZdzgaG7LVQHHcoUKgyksKlHQ2zyHHtG9JgjEwrjbvwQnY5O7DuAKYZ1aVb+BLRPpd teDMUZix21Ea8Jt8dcc8xTVOcmNMcobFEyin+v/NxoAkNRhApPEm7SSHKTUQ4+uoqwWZby dgEudbmx7Kl2TvWOYI9malBfDHobkcQG5CO6qoMyrPPDLWbasKeZWXIla/7VrWOTY4WfaX vKnHImf7uD8o/zDsPeWjoZXpO4MbkwJydILP/9JYswgSH06oJ+ECoAqWA6X45/NlEVJUVk XYuSL4UVp0YfQUpQ0m7D4SCjcKvzSISEv4Q+RcVQQJkME+r5KCvWeKtzWVR8Vw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653463426; a=rsa-sha256; cv=none; b=ALeFk4kbWESDu674H0xXSKjM+0gHSlbl76RGQOMEv4R07/J91eXmvbUBPD29cdgNgsUEL5 bfZ50JHUEzzbcSwescxOcx2wUWDcNQX36mrIuESsAI/R7/87TSG1M06sW36LuhppBUL+m6 uODhU9CDctVmwUO+GtmYWJ5mPY/A5ZOf02cxGhAh5GjOlbqheFh6FNGyaU9Cr+tk5XCs2l +vIdbb3ouijijOxoiD4PWqoW92GCX5tXB+zzqVBN9j5k8wo+I6vsV6Clf7K167yzoy54tB chHBE/zPGaXtXRaB5sA2a5cvM/2iipnNDFUVwsHJ+ayiGad1za3KwI8funUwPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=VFY9e0ic; 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: -5.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=VFY9e0ic; 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: D076F2423D X-Spam-Score: -5.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: MpTDFRI2kDaA Max Nikulin writes: > On 24/05/2022 09:51, Timothy wrote: >> >> To me, this is another reason for comment and #+attr_X lines not to break >> paragraphs, as then we can just re-use #+attr_X lines. > > I like the idea that comments and attribute lines should not be > paragraph separators. I expect, it should alleviate the issue that LaTeX > and Org paragraphs may significantly differ. Do somebody has examples > when such change will cause negative effects (besides broken > compatibility, of course)? I will raise a compatibility issue, but it is bad enough to not think about other things. AFAIU, the proposed change will break whole export system? How would you represent the AST of First line # comment Second line ? Currently, the above is parsed as (org-data (section (paragraph "First line\n") (comment (... :value "comment" )) (paragraph "Second line\n")))) Should we consider a comment as inline object? I suspect that such change will cause unpredictable breakages all around Org and third-party packages. > I had an idea to implement proof-of-concept for inline attributes using > a special link type and a parse tree filter that transfers attributes to > the next object. Unfortunately time related bugs in Emacs appeared to be > rather time consuming. > > ---- >8 ---- > #+macro: nofollow [[attr:(:html (:rel "nofollow noopener"))]] > > An {{{nofollow}}[[attr:(:html (:title "be > careful!"))]][[http://unsafe.com][unsafe link]]. > ---- 8< ---- > > Such implementation would allow to test if it convenient enough and > whether special blocks are really necessary. I am not sure if I like this idea. It seems fine, but I afraid that it will complicate parser at some point. We may want to assign such inline properties to the following object, which is already a pain for affiliated keywords. Best, Ihor