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 mK2CN9MUTWNDbgEAbAwnHQ (envelope-from ) for ; Mon, 17 Oct 2022 10:39: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 mp12.migadu.com with LMTPS id 4ENoN9MUTWOzZwAAauVa8A (envelope-from ) for ; Mon, 17 Oct 2022 10:39: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 A1416C551 for ; Mon, 17 Oct 2022 10:39:47 +0200 (CEST) Received: from localhost ([::1]:52426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okLf0-0006HO-P7 for larch@yhetil.org; Mon, 17 Oct 2022 04:39:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLcl-0006CJ-8B for emacs-orgmode@gnu.org; Mon, 17 Oct 2022 04:37:31 -0400 Received: from mail.choca.pics ([80.67.172.235]:36840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLch-0003TN-IZ for emacs-orgmode@gnu.org; Mon, 17 Oct 2022 04:37:25 -0400 Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 5DB25181942A4 for ; Mon, 17 Oct 2022 10:37:20 +0200 (CEST) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 2-Dc1ugpOdOn for ; Mon, 17 Oct 2022 10:37:20 +0200 (CEST) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id E428B181942B3 for ; Mon, 17 Oct 2022 10:37:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at choca.pics Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id 9ESUbk0gGqeP for ; Mon, 17 Oct 2022 10:37:19 +0200 (CEST) Received: from localhost (153.226.95.79.rev.sfr.net [79.95.226.153]) by mail.choca.pics (Postfix) with ESMTPSA id 9F10D181942A4 for ; Mon, 17 Oct 2022 10:37:19 +0200 (CEST) From: Damien Cassou To: emacs-orgmode@gnu.org Subject: Reading the parameters of a special-block Date: Mon, 17 Oct 2022 10:37:18 +0200 Message-ID: <87zgdu26dd.fsf@cassou.me> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=80.67.172.235; envelope-from=damien@cassou.me; helo=mail.choca.pics 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, 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=1665995987; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=6a6Wv/TBDt/adbY8Zr+lshZamkbaOqnY5SRGI2+4t3k=; b=jqmF1a3KGTPpXSazap5h6EA1/APt2JnsS44m8u2ImMWqSbAP/9vNGX+uJ+4Q43UAJP4ls3 YCpoRxa36mIZNg594fQqJhf3EQFOpXB2OlfPVvNcuozAasljJd/2NdQ8xVW5RW4W+hzFMR zclMsLDmprAzbD/k9QTH5IufQbp7Q0tlhfn2Ywm3ak9+QsaKLZF2alWOpB1knW6t2kc9ll AkmTikFam+gLhBp6KO+IvraDClXVJPxzx0NygDqIx81XvSm08u5jqWbod2o95BNceTYStr rLVBQudNzSNV/+4XiwX5ddZKAT6Itnnell0cF2JVnNz/kUVsPtjLC1Ki4x+Ovw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665995987; a=rsa-sha256; cv=none; b=k2RuIUDKDMb3CEEpcutoAGmXiSu7yiZGxjbJ+allizP629jbAS3UrJ0Hn+04TXYixK+8pr Ysm58VLIVTZL6IJCIKRYSV9AiD3EY/VoZtQp8Quhhf40yfCNc8OwLPleCBRSxuD4EMCgCV kOIRYRcBX6v/LeubghsN5QARqOfUmABOGZ1s8zueDwORPUX/8S0Fnv5sDemPBHre7XQuwS nNyCMIDZiSdkEW/PD7mK1v0GRgBqELbE9K3l+bupAdV80AVtrLNdtpznab6qhRiuzBQnWT rWcOAs0hPKi557Of2Wve39lqJ3gU25OA9abIzWHzoiL9rpCrDT/wHRKryPjTeQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.72 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: A1416C551 X-Spam-Score: -2.72 X-Migadu-Scanner: scn1.migadu.com X-TUID: /IjJ4RZ3dC8x Hi, in Worg's description of Org's syntax, there is a section about "greater blocks" [1]. The syntax is #+begin_NAME PARAMETERS CONTENTS #+end_NAME There is then a "PARAMETERS" optional string attached to special blocks. Unfortunately, in the special-block transcoder I'm writing, I have no clue how to access the parameters. I can't find any parameters function in org that would be related. What is the best way to access the parameters of a special-block? [1] https://orgmode.org/worg/dev/org-syntax.html#Greater_Blocks -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill