From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6PxCN1cwm2P0rAAAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 15:34:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mB92Nlcwm2PfaAEAG6o9tA (envelope-from ) for ; Thu, 15 Dec 2022 15:33:59 +0100 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 8A569D9F5 for ; Thu, 15 Dec 2022 15:33:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5pIH-0005u0-MC; Thu, 15 Dec 2022 09:33:05 -0500 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 1p5pIF-0005tp-AD for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 09:33:03 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5pID-0004Sr-O2 for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 09:33:03 -0500 Received: by mail-pl1-x62a.google.com with SMTP id 4so7072684plj.3 for ; Thu, 15 Dec 2022 06:33:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:to:from:user-agent :references:from:to:cc:subject:date:message-id:reply-to; bh=h2Xpg/J83mdd41idYzLLHRwNBK78FZU6wWOAHN3rb/M=; b=eYjOw8KN60lE5fBKppouBkYaZMFtfLfKj5c0mTbJS4PO+d63q+SHhahjSmG3lwLSPu Q9CIcdW8KoP+TnydNkZH77I6+wU/wsLHptUxY1uMqplEJ1c6CENjOjTvlzahZ4uAf9uc w3p/S2/DQHVRocZdcyl6YhlKbPU+vm3QupK/P4iEulifjknkLc9QH2YyA4bFqHrtVbS/ b0c5pDm2KF9q+E3pk4qKreloPqtNLaPICxvsImw6UqYfgjN3ZLVGHtAjrYDa1WBZPR/q mEAvTOg2ksVgiK9jdboTYGJruUrNcIPXhbvHVNokcX3DN1upsThYEkJzMSIGdxkblE6u MjLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:to:from:user-agent :references:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h2Xpg/J83mdd41idYzLLHRwNBK78FZU6wWOAHN3rb/M=; b=eJeTScw2ScRnA339CWqS6S+Cpue4FKPsLYo/re5hgj4x2mEGmiJJkseXQI7plfLuNB A6rB0YM/FCnfLMGm+TO92+G7bg07Jn280W1I/gn27GeF+W3YeFoZZMpJoVT87n0+aTjf 4rY9LzaR0XbKwTBqQfMgkwyH1nG4lwjMf+IhUFbKuRATOwfrZa0mWZVoV8Lj74B16OIo 7Cd72cj2VeM276YROc52E8z3iujJKLZNtOAhKt4navUci23leZQUvzbilDLX+uuj4DLL gKCc32zn4X2M6ok8ummOqyXkc39ymyOBFAlAJbob649Lg3p3a6oFgGntdskwIBd35kOK r8zQ== X-Gm-Message-State: ANoB5pl/g2La8kN5SK0gwVJYzG/F3sJb6QPhh9NRYOH/lIlbVnQRAIZI hcvAb2uNepdOlfHp6088HSrXgTzOIg8= X-Google-Smtp-Source: AA0mqf5N8FeQnuqrrbSFfRAcMJL3UK8SJCNrsPrhZBoXLEONFIxwI4anfSmdGGL9qBCMd1oQCHYA6A== X-Received: by 2002:a17:902:6905:b0:189:340c:20d2 with SMTP id j5-20020a170902690500b00189340c20d2mr32804750plk.23.1671114778882; Thu, 15 Dec 2022 06:32:58 -0800 (PST) Received: from dingbat (203-173-24-107.dyn.iinet.net.au. [203.173.24.107]) by smtp.gmail.com with ESMTPSA id je19-20020a170903265300b00186c5e8a8d7sm3909713plb.171.2022.12.15.06.32.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 06:32:58 -0800 (PST) References: <116c3126-32cc-44d0-9e95-e802161e1e84@app.fastmail.com> <87fsdhui6z.fsf@localhost> User-agent: mu4e 1.9.7; emacs 29.0.60 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: [Syntax discussion] Should we treat src blocks without LANG as paragraphs? (was: [BUG] ox-html does not export captions of source blocks without language) Date: Fri, 16 Dec 2022 01:29:22 +1100 In-reply-to: Message-ID: <86pmckvisp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x62a.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eYjOw8KN; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671114839; a=rsa-sha256; cv=none; b=pYG3oT93Z5Gh5UIAe//5NAo5mqG2w+R8+c0Rs85IUcB7HM94R+yhiGJtskPao600FQaJj/ xPN1Huhz6IvZqxutcEwfQVoqq6ttxbM9BGoERF2PC+sSHUpx2GvuY0St9zIG+RHSvktuOj b/MKR3G0uTp7ScfPHot7InX1SYA550HCF3E4t4xPMvvLFg2bhPpoLIP5sU2h8gSOWXciJM tlNwl7hwwDonTb0PrOK+NkRcl6PrMuOj5QmKb9p6j9u5WyDP4x3AhjM2twTqqyoe+JVkDW 9vvPyh78PgP9TJd8bLPHR+sb+ctzkUh5Q3IvWBEhvo+XBj5ARSv//FObDYYNEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671114839; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=h2Xpg/J83mdd41idYzLLHRwNBK78FZU6wWOAHN3rb/M=; b=hoHercY9DSXOJC3aKLa4IsTvY+SsN1/evHn66bkiZZm7SyQakLXCd2C2aElHjHa3cMDYO8 z8VQnJe09Z3w0HQK7slc6TEogTC++2uw22Vm0hDzhPoHoawxqfZtIrZDGCC0uC/UcL02az 7df/XrPPw17iCsM6MiwItRA+nKQi8BMja0iVrDhkury2FA6eeLbiE5Sn5LP8OtqLM0KGxB Nim8LzU/DgGfew7VDWsTcD3a9Sjsprcl4ESpijdR1jfqaxwrMsvSiV1TI6SGAofxsNtV32 JI5gsw6eZzAwNLjMWmyB6A8yq2SD4+w6EuAq7roLrQ9JCGBTCFts1h6xozP2wQ== X-Migadu-Spam-Score: -5.97 X-Spam-Score: -5.97 X-Migadu-Queue-Id: 8A569D9F5 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eYjOw8KN; 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=gmail.com X-Migadu-Scanner: scn0.migadu.com X-TUID: 1+Cnif9NUmoP Max Nikulin writes: > On 15/12/2022 16:31, Ihor Radchenko wrote: >> The actual parser does allow empty lang in src blocks, setting :lang >> element property to nil. Should we stop doing this and treat such src >> blocks as paragraphs? Or should we allow empty lang and instead adapt >> the exporters to treat empty lang correctly? > > Source blocks without language may be treated as #+begin_example blocks. I believe, a > warning should be issued in such case. > > I do not see a reason why caption is not allowed for examples. Yes, I think I agree. Semantically, a src block without a language is really just an example block - it cannot be executed or evaluated and is essentially reduced to a example block. I think having a warning is also a good idea as it will alert users when they have inadvertently forgotten to add the lang. I don't see any reason not to allow captions for examples either.