From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uKOkGNrbSWGyFAAAgWs5BA (envelope-from ) for ; Tue, 21 Sep 2021 15:19:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aM1WFNrbSWFMRAAAB5/wlQ (envelope-from ) for ; Tue, 21 Sep 2021 13:19:22 +0000 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 A09FD2337F for ; Tue, 21 Sep 2021 15:19:21 +0200 (CEST) Received: from localhost ([::1]:35396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSfg7-0001hV-3K for larch@yhetil.org; Tue, 21 Sep 2021 09:19:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSfea-0001In-NO for emacs-orgmode@gnu.org; Tue, 21 Sep 2021 09:17:45 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:55846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSfeY-0007v3-MV for emacs-orgmode@gnu.org; Tue, 21 Sep 2021 09:17:44 -0400 Received: by mail-pj1-x1030.google.com with SMTP id t20so14336642pju.5 for ; Tue, 21 Sep 2021 06:17:42 -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=17CxRR2Qp01Uy0v7oYoSFKDwtpZO+pqaQ/QQSfMIeVc=; b=Bq9tSDF6S60lKh+5CLksqh+TfsiY6v1/VmDiVMDT62qD01LOM162mhjd/zA//d612T f4b8KMmIoOfDxoNlKwxh6iJxXhfDlTqgHaMW0334Qv9Kev8lwdppfcSOd/HWH1vNEsDg B4yatrepmOkUnk92A5s1PJn6w8YJNa4unQwsmNUefs9A9xeR4TM9A8OBB9zwQ+14NqTk 3JMG6QWRjki9OQjdePMSPjrYZwffRPOtXKzwSMvtdeJLiH41JkEs4SzMQzBuYKxr4F3E Kim+vOeALHKZSDLl6MOG/31pVu/hInOqnhx2GXF3+3+qIQfREWH0rBSL6XjCG+tZjUNH 2L1Q== 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=17CxRR2Qp01Uy0v7oYoSFKDwtpZO+pqaQ/QQSfMIeVc=; b=pdjQt2kZiz16+YQlNHIJ8rXgx415VxCpS6885NVg6l8IHtUSwP1h0lVf2JEBH2k0nw 8XUWpNB3Ic8Wgx5BbdSlObPxcyf/BdX7li67XBR5extqMuWiPKEn3wA52+7ZGd50h6+i xXjs77dFEYxpwUT/xTNTWiF3edgNN7H4NhW8jKby6XeUS5ycy8FeIKdqeSrHYE2uLsDQ 4Nw6FSf39OrBZONtE3SCL/t7m+gStkArEOgILdoB6vjfKI4QjXFBzQVKt2xgAEv7ToTV wejSLyBe9MhWs+pz8GWK7E5a8EhP2XqKg0cj3HwgDNEIm0/FVKTdSTc30TvL8Boh6f2w yjpQ== X-Gm-Message-State: AOAM530b98tlt1WaKPEyk8pStepCormqnFRZajsg8HRFH4Ia8PKJwlRs lCU6Qnb+0Ye3ScjzNgsJDPKxA+PZn14601FT X-Google-Smtp-Source: ABdhPJxLALg2r1ql10pcZg+kGXAvDAL9waGDqc6CB7TShrROZFkbMIjKXTUVWqpzcamUbVD87Om0jw== X-Received: by 2002:a17:902:d48e:b0:13a:60a5:f410 with SMTP id c14-20020a170902d48e00b0013a60a5f410mr27419907plg.64.1632230260014; Tue, 21 Sep 2021 06:17:40 -0700 (PDT) Received: from localhost ([160.202.160.104]) by smtp.gmail.com with ESMTPSA id 198sm2596189pfy.6.2021.09.21.06.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 06:17:39 -0700 (PDT) From: Ihor Radchenko To: Dominik Schrempf Subject: Re: Org lint and named source blocks In-Reply-To: <87h7ee5q8u.fsf@gmail.com> References: <87h7ee5q8u.fsf@gmail.com> X-Woof-Bug: org-element--collect-affiliated-keywords allows #+KEYWORD:value without whitespaces Date: Tue, 21 Sep 2021 21:18:55 +0800 Message-ID: <87o88mqd6o.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Emacs Org Mode Mailing List Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632230362; 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=17CxRR2Qp01Uy0v7oYoSFKDwtpZO+pqaQ/QQSfMIeVc=; b=gMmpo1NXJ3uhO9pS7DUPGOjPP47QrWu9huBCmU31NDALOMaQ98i9c7bsxndSm7Vz9K9aB4 Gerb5Axy8tA2SBz2Wmlz6IAVbKXUXDXL26Cg4r/EjQxDnWRgCObgcVAeQ+ZX2JIwFc6J/x peCckw0l9pS934NtdWwH7ZlpaA3w8tgjgRz88yYHGJ+16/ntZnPHh3ehDAh0zWl2LhXWI4 OBox4HGJXiJEhXlwhay345IUQe1PeNBX0INdqC7I8yPag1i3nZSE3W5CTS4Fx0ffi2fX3V EQ/WZ23KVKFzAHGnAAN1TU0XSBQabna4Mdg0UOUNM5R20AGJxKPMcjGAsdLotA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632230362; a=rsa-sha256; cv=none; b=nYYGqoMoykZ89HfvEW+0W0f0FR/nrBz7fWyIb5qHIqnEw8kZGGlInqBXohuHBBXRAD7kA+ EpHpxBWQ/3KOfgOFjaVP+njPTjXytdV5PJYdzMEaJfl7u5x9DpDxQEP6KEDKfd/Ij6c5tj OjPAFTLElX5LRL/YX5+0GevrHhEp2+jjbzYLz4/Iv9cFU0toJ6vXl7DmKP4Klx0v96fN1F 9WzVekAcFupU4lXnSwYyMCk98PnQ2DJrBfYDatqz9QNCplCZ8niOB2tBgnyjZTzw3yF36L aOzYCJYJCzS/FyHuezNLwyXMA8VLZJHh4V/QFsQle0tIdMc1Ah3Gw4Vshe6IcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Bq9tSDF6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Bq9tSDF6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A09FD2337F X-Spam-Score: -2.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1V3A18/lz3Fm Dominik Schrempf writes: > Running =org-lint= on an Org file containing > > #+NAME:Hello > #+BEGIN_SRC emacs-lisp :exports code > #+END_SRC > > I get the following error: > #+begin_quote > Debugger entered--Lisp error: (search-failed "^[ \11]*#\\+[A-Za-z]+: +Hello *$") > #+end_quote Confirmed. This one is tricky. The linter (org-lint-duplicate-name) expects that NAME keyword must have space before value. However, the actual Org parser (org-element--collect-affiliated-keywords) does not care about space. My intuition says that the parser behaviour is unintentional. However, not requiring a whitespace may also be a valid syntax. Dear Orgers, Should we allow syntax like #+KEYWORD:value to be correct or do we require a whitespace/space after colon all the time? Best, Ihor