From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id +H6AEikbNWa6lQAA62LTzQ:P1 (envelope-from ) for ; Fri, 03 May 2024 19:13:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +H6AEikbNWa6lQAA62LTzQ (envelope-from ) for ; Fri, 03 May 2024 19:13:13 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="BZT/Y/vd"; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714756393; a=rsa-sha256; cv=none; b=pohmzwXfpRgNYGTznyu1lArY0y746HfN9n/I82NuReU515j476NjSjlN2kCOhPY3KMFhZU RzIVhGOVOgItOPEkUGzfXqvl59aifEcO7428FLe42kfXAYtlvfzIzjpTJ6OPaonsUpr5dE 8xuKl00MqdEKDdtnoaHySCplpPworirT9EzOMx6IhLctxezJMy7C9AAuGezrwo0KWvLfeb dztkbXGBfRc1B7ijKlLzfk++XAG1LWrlmRUIn4948pTtYvRK8eQ5zEXSx+jXIkL985M0dG MtD0zWm2az2c0f0K/SqKjDIzdFXUm3cdLQ62vbqvrDkNueHosGcAQTY8PfQejg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="BZT/Y/vd"; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714756393; 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=TKROd6Mq3VuVQhc4q/KBp1yxUEItzCgjv+552ZSFQhw=; b=Hce7ZtEmeTOLe5emdx+XihXPd0260IfMVYab9kX+08mSO+BrfLZ0OCh18ao9IcKZlmtiaN rM8nYY2ri/d01uNRHSxhXYMfvsYALIYso1lULd8L3yrKBctQMdiiCuDkDiED8wdxOojjY8 5Pb97JVy8cnw+e55n2qxtKeii4bAk/2ufLN0shPoPbAzkpAQA7Rdh4nwosJC1jTdz52YMS Be/Ed4q0i/7rQC4ueddjrB1P0jUI1ciWIadwDo2WWewlrvFYB6FYaigOQ96V8tHCdNMUMJ +G6jf4f5yE0+WWkjJknhbRxlrv8UbxlZA8MblURnK8k6x5LZl4OgkCJ2UBdGSw== 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 2C9F71469D for ; Fri, 3 May 2024 19:13:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2wSa-0001aH-VM; Fri, 03 May 2024 13:12:36 -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 1s2wSZ-0001a5-Ez for emacs-orgmode@gnu.org; Fri, 03 May 2024 13:12:35 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2wSY-0004Vt-0K for emacs-orgmode@gnu.org; Fri, 03 May 2024 13:12:35 -0400 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2b27eec1eb1so3138137a91.0 for ; Fri, 03 May 2024 10:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714756352; x=1715361152; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TKROd6Mq3VuVQhc4q/KBp1yxUEItzCgjv+552ZSFQhw=; b=BZT/Y/vdLY04LoSsO1eMHH2KviTk7BvyhnMc32+96+7lqAWRBTO3zgQCrJL2BAQSgQ eimvZ5Y31wSPwnqeDvkoyZ/YVV4hKgMtpythEW6EMbsxSddl98kpUMnIfzoytli1sVhx RvQvrEqxHNtqlEOcSmhOG/ZUnel4JW2DXbCL2iDueOPK6zjS0dPZW/bZLL2//x8vDH5E sR87ZEmaMeMU7vQUxEbJfcOtWnVdAqTMhm7a6Y4h+rd2dUFYePYiHIL7xnWCm2X3GNb/ rRKyUb2p5uX3IkiIX2c6ZhzXKPpqJCu3vGiROSoDxNrVXlel9hxBgOOQIwYhEvnqbGzs cEnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714756352; x=1715361152; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TKROd6Mq3VuVQhc4q/KBp1yxUEItzCgjv+552ZSFQhw=; b=UQPHnMUVUoixZ0V88Vf77M5J3JRlLDuyMWTtzzAMvKHYviEIRgqZEy3onn/3yEH3Kn NGPbyRapO/he75VWB1ZtHeP/RCLlFDLHS4iLRvdtwTvrklAXK4OikM6LKXMxuVINpJO3 fVjOft+RVYUPSOF68jGqqI2ZyBz0mKyt7EnlQ1tyynFSUjNUh3tF/FLHkuudjAwQtoPS L8+mxmfC6j03JxKHaN1XZeBSX76/GYsRDHlIqu+2JHr9Yuo9F58j2RK25QhDrg18Y5SX 4HNJmtozo+v4P5NsaQFR4+Bm2XD6u33XPY+IHyEadT3WbKYMICHDidh21HWlfT1MI+fP J5Fw== X-Forwarded-Encrypted: i=1; AJvYcCVIHU4E+aey5encbs9rjyOvlIDoRIDlaJw57u8LS4WMnO3FJzXsDLNk6x/AdTjNpvZcV9sQ/PXxraCc0szepFSN8DyJJT4= X-Gm-Message-State: AOJu0Yy3Peu82lNcMmrxeXpPDc4fV7NNkVLrIdMKMsQ5QLc5iI00X+AS yUfMgHOSxYglbwTEHqSWvrH5QTJlSZbxrQ2yOjQaLLD3HYWwbEmmzkR4RZrlPEiGPLKziXEaff3 XTcc0PzeawiFlfMZe7i7a4W7utuw= X-Google-Smtp-Source: AGHT+IHoskuXrgoThKRjpa+6JWb1hIuBTRLaxXO5eliS018OMtYh3ed3qEy9utqXlVcVb4siMQg2++xTZAzdMsRoFKo= X-Received: by 2002:a17:90b:4b02:b0:2ad:de9f:f4b2 with SMTP id lx2-20020a17090b4b0200b002adde9ff4b2mr3218459pjb.32.1714756352518; Fri, 03 May 2024 10:12:32 -0700 (PDT) MIME-Version: 1.0 References: <87edaogbvw.fsf@ergo> <87plu8ax9k.fsf@localhost> <87o79o2fe8.fsf@ergo> <87a5l7t7i0.fsf@localhost> In-Reply-To: <87a5l7t7i0.fsf@localhost> From: Tom Gillespie Date: Fri, 3 May 2024 10:12:21 -0700 Message-ID: Subject: Re: Possible to set block switches "globally"? To: Ihor Radchenko Cc: =?UTF-8?Q?Jo=C3=A3o_Pedro?= , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=tgbugs@gmail.com; helo=mail-pj1-x102c.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 2C9F71469D X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.87 X-Spam-Score: -5.87 X-TUID: JU5jpkTT3ljO Hi, Thanks for getting things going on this again Jo=C3=A3o. Based on what is in org-element-example-block-parser and org-element-src-block-parser I think :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 Defaults would be :number-lines no, :indent align, :labels remove-whitespace and :label-format would inherit from the default. The remove-whitespace option would remove the label itself along with any whitespace leading up to it, this avoids the user needing to specify the leading whitespace in :label-format. The remove option by itself is retained in the event that someone has aligned their labels and wants to retain the whitespace. This may be too complex though and remove-whitespace is not needed because :label-format can be modified as needed. Header arguments need to have a single value, so I think we should split :labels and :label-format, that way users can also specify :label-format without having to specify :labels first (otherwise there is ambiguity about what a single argument :labels means. Best, Tom