From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id eBmCMo4nNmYXuwAAe85BDQ:P1 (envelope-from ) for ; Sat, 04 May 2024 14:18:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eBmCMo4nNmYXuwAAe85BDQ (envelope-from ) for ; Sat, 04 May 2024 14:18:22 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BV2GQ4bN; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714825102; 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=xYOkpWjGmlhKCQCpCReKnVWiBrQcrPxYDLgtKYFM5JU=; b=VpQCUkaejFIebaJjhUuKD4h0GjvozQfG67nqSkGk/AuVG/ax5NoF1EujZApmZ1NFhURbR0 qxFPSeaX//Yz+aXHRBpdfgJbgTW/hB+BdiSqscVxdENui0P5Zt7dZD+zrzLBMJzk9sMbgl 1OvamDB6x/h98dmoGIrHCaFwhbeY0GXw0o32MfDLKBswMBBOKw1LbTHFBhSHMQ/tgd2ce0 l51HYkcBNqFtx0M9NghpfygZQRjuDiu1JlUm0bzK11H4QdSLwZD5FoKeK3zaM1+SoZPivv lNDOSF0mnxuXn9iccq2jDvVUOLJ+U7MXG1chiN3WbhQb7sCbtQISQUwXhY6FBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BV2GQ4bN; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714825102; a=rsa-sha256; cv=none; b=qPivvdy7vOEj57xYENCLA/XPEAJEEVMwtUIeguPrgTrUmAeE3+a/6ULURXTiJA3QkA+95W 24sDiMYHZVp73is/IocgDHtfsgOXJFi7GTvXdiVkXdrr9E6BnBfVqmm4ym/NZQRSWYx4PV dy1IehTgPQu8bq5eT9AipoiF5g+augLCKxA1530pbwEGt093r0oiTx1NGxTbeFL2E3bIMm wfpxID2T9+lj5VQNwHMiW7dSKJt+/el8UGamgcbs6HWOU2LoUQb9+l0KavpGGc4GTDVrga dNOHtfb5Cx8hdzaf3EtCSPA37b4frRWtRSKFFTNqe0e2S2PDwTqv9zpyyofQkw== 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 A7ED26C0CC for ; Sat, 4 May 2024 14:18:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3EKw-0004jo-WC; Sat, 04 May 2024 08:17:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3EKt-0004jY-VY for emacs-orgmode@gnu.org; Sat, 04 May 2024 08:17:52 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3EKs-0005f6-2n for emacs-orgmode@gnu.org; Sat, 04 May 2024 08:17:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A220D240029 for ; Sat, 4 May 2024 14:17:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1714825066; bh=1nBq3rFsELOtQHgtpvWbz/F5580jkSg+DpDFFTIADp4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=BV2GQ4bNXg7W5FM4nd3/v5S0/+6tM+MFMDXZGM4YHNy8YhiKmhD40+257l6captSQ Wn4ojObK8bA4rS477K8dOV9vI42w5/NXMsBoxspyFmwf3Yytg4hs6mUw+QE+JCL2jD kNHjvYiVavADahgSGMs4ViTdAd6/Lg5BSSm1ilZFoCXXTmBLGqczxF68m/8dZ3WA1V 6YejKHFlSURZH33Jyv4ja7HN2G5L4H3iOadkrRn49cTkRKlsZ30t7owV6sGpY52+SZ MW5nqowYMEH2c2IqMNOxQp9owvJqa9VwCShy4ZfBMYCcMGbNKmyZlui1ksLJOnCZ7y z38O6ycGEQNBw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VWms55wB0z9rxF; Sat, 4 May 2024 14:17:45 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?Jo=C3=A3o?= Pedro Cc: Tom Gillespie , emacs-orgmode@gnu.org Subject: Re: Possible to set block switches "globally"? In-Reply-To: <87ikzu2s78.fsf@ergo> References: <87edaogbvw.fsf@ergo> <87plu8ax9k.fsf@localhost> <87o79o2fe8.fsf@ergo> <87a5l7t7i0.fsf@localhost> <87ikzu2s78.fsf@ergo> Date: Sat, 04 May 2024 12:19:05 +0000 Message-ID: <874jbdydl2.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: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.10 X-Spam-Score: -4.10 X-Migadu-Queue-Id: A7ED26C0CC X-Migadu-Scanner: mx13.migadu.com X-TUID: cfxAk7Jij8m3 Jo=C3=A3o Pedro writes: >> :number-lines (yes|no|continue) as Jo=C3=A3o proposes >> :indent (preserve|align|???) not sure about naming >> :labels (link|keep|remove|remove-whitespace) >> :label-format regexp-string > > Yeah, as Ihor pointed out I did forget about -i, though I'm not really > sure what that does. I think that we can take names from the parser internals: :number-lines :preserve-indent :retain-labels :use-labels :label-fmt :preserve-indent is a per-block setting of `org-src-preserve-indentation' variable. > I tried searching for where switches are parsed in the code, but > couldn't find much. Could you provide me with some pointers and files I > should be looking at? `org-element-src-block-parser' and `org-element-example-block-parser'. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at