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 iAryDOBtZGa1CwEAe85BDQ:P1 (envelope-from ) for ; Sat, 08 Jun 2024 16:42:40 +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 iAryDOBtZGa1CwEAe85BDQ (envelope-from ) for ; Sat, 08 Jun 2024 16:42:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=LNr7sXwU; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717857760; 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=pAtlsSq4Pr+gKWm+ZdEZ1Tsm5oQdMRLEps2TMfjGQ4s=; b=OmN0p8MD2n9T8pexvcBGVkYq4n2tS0JTkYvxIT0/vO7PJZZXfqXpKA05KN0z2TXojkdZYD dOopuq+BJ38S+dSlf0hCP9qQASIMCU8jIAgIQGWEAUrXaZ256nM4KOoM09362LqH7/+RmJ SjgKMX3IkwJbNUM7NZkVxDuIICrgtwuhvJRrWbNeoa8tG8WJXaWap2/45Dk2eBEjwex7i2 KiwZmIDPQMlW/CNqX/y0O+RQQw603Al3HLAhDaRNBvKSYWcUPsrH9pHjafDzR0KPIkYA14 d47fh1SNSBsuG4UkreOU/w2TohkpFgotEiuejCb6jscpzS78mqCJqPsH5tERIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=LNr7sXwU; 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=1717857760; a=rsa-sha256; cv=none; b=T5XBbz0ULZbvV5sepJRoTFh0AhEjoV5Rg7sBASvns7FpH1HgSxEfLlpziZYEVqlm6NnnB4 fkasd+w3tQdOvkEB93k1GaRWPWz351Y4zVfEtCId3ibe9rJubK0NA97ALXPmcD6pKfxyRy gkBjq9fJPY11VMZ/8A3sMER6TBpMRtFh+af+cooJkni25mH0AHxUyFIWyw4zrxOT7unCrF LOrOEjxTzt3jmM2zJkNMoxAlSCOER6C+GQZNY11R81RT+7NVpdEyQqiWstGcI1G+h0b7Rh /4QQGjLHHRQvho8Ryz++1MMBWXU6tOJTDz7xvEMnHM4qBxeSKIt4rXg6tYtEzA== 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 00F7D56931 for ; Sat, 8 Jun 2024 16:42:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFxGM-0007x0-V9; Sat, 08 Jun 2024 10:41:46 -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 1sFxGL-0007wm-CL for emacs-orgmode@gnu.org; Sat, 08 Jun 2024 10:41:45 -0400 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFxGJ-00031s-LC for emacs-orgmode@gnu.org; Sat, 08 Jun 2024 10:41:45 -0400 Received: by mail-qv1-xf44.google.com with SMTP id 6a1803df08f44-6ae0c9ab798so2892146d6.1 for ; Sat, 08 Jun 2024 07:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717857702; x=1718462502; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=pAtlsSq4Pr+gKWm+ZdEZ1Tsm5oQdMRLEps2TMfjGQ4s=; b=LNr7sXwUokyROD8iJHJDXkFApUcGr0mBkXnMc3liOFyhNNm6jA+CMCM2g0Xp4b2tpP LonB5DN4V3dJRDK9SKk5S5o13HGkiSNIoIlUu9RzlJiIpelLug97LEUhsgjigvTas1lx T5dlGL7JU6hGYqYD8VrcEM4dcAqAkB68b/ixl6GulvbtFbngTTyD8gHLYCAgY0kF+L7U BxYezgkKsmTMrjf0KrC6SAk9oZP2FW8y+7brBjA7uBaaJ4YImLtdsM8DB1zrgeQ/Nhm5 v9HmP4q6xmvhzdBtzvhF9K7M6dwcpdWykH5WyxuaPJ3+bZvuFeT4IagCO9gLppEfSksP nWuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717857702; x=1718462502; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pAtlsSq4Pr+gKWm+ZdEZ1Tsm5oQdMRLEps2TMfjGQ4s=; b=EowDiJRYG4EYhHNWVQeh0KAzdONg2W+vBW4JWFv7xT5NWsUtScEuXTzKSsPb8DcZYq P6vtkFdTYtGg8jmuRykf4CxDL1XEGG6atr5E3cr8iF1sAEBQ0lW4aYj6BgyhtqlyFfDb QisZOsptR5AUs9oo77Q6+/oPL2diy098RGfXPefNW9vPw+G8IpfXGvlSllgSqnk7/psD lRZ1eIt/J8PQOjkEZj3syyw3cz/8oY6ffVtMmo/bQy82ijjT+LyvlhHFX1rQ6FyPkmdh VpIYLbqquApMvLQajWcqz2sBl4pYrnxkcIaoW4nqVp8Ot4tfkHSad2yXq+1G1aaFshnD OL9A== X-Forwarded-Encrypted: i=1; AJvYcCVhc5LtBNaGr4ipjNcwmZlUmvP1g4HPlrXknQNfEnFWV0REGF5MeyUUZicNfqKjQNBnSRE9pdsoUCMnOs640VwUzpPz12w= X-Gm-Message-State: AOJu0YzC1wgoft2aPh5t/m2AzTvaZN2DdNebyhu0qgw9ysn3NYcxFYN6 TkNjUZRY9Rlzs2Mvv0YuIjN5fCm6rrDrMPlSFTuvruhLtmlp5r/dcayAoe5f X-Google-Smtp-Source: AGHT+IFs4LwKpvvBBNGQIu4k9Bvyf5W3yvBtSk35ybk3+Sek0FjUwLATY64rmUyo71HpiAroce1ORA== X-Received: by 2002:a05:6214:1252:b0:6ab:9583:3b75 with SMTP id 6a1803df08f44-6b05a009f3bmr55964266d6.4.1717857701536; Sat, 08 Jun 2024 07:41:41 -0700 (PDT) Received: from gnus (static-198-54-132-177.cust.tzulo.com. [198.54.132.177]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b056fd8b14sm22960866d6.132.2024.06.08.07.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 07:41:41 -0700 (PDT) From: Suhail Singh To: Suhail Singh Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)] In-Reply-To: <87v82k4u5o.fsf@gmail.com> (Suhail Singh's message of "Fri, 07 Jun 2024 12:03:31 -0400") References: <87r0dc35ya.fsf@gmail.com> <87a5jz7cqv.fsf@localhost> <877cf1boyv.fsf@gmail.com> <87zfrw951v.fsf@localhost> <87v82k4u5o.fsf@gmail.com> Date: Sat, 08 Jun 2024 10:41:40 -0400 Message-ID: <87ed977azf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f44; envelope-from=suhailsingh247@gmail.com; helo=mail-qv1-xf44.google.com 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, 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, T_SCC_BODY_TEXT_LINE=-0.01 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: -9.67 X-Spam-Score: -9.67 X-Migadu-Queue-Id: 00F7D56931 X-Migadu-Scanner: mx13.migadu.com X-TUID: Zpet5yYbLv/s Suhail Singh writes: > Ihor Radchenko writes: > >> Oops. >> I amended the fix now. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6c862699a > > It's better, but not quite there. For instance, tangle the block below > into an org file and observe the reported warning. > > #+begin_src org :tangle /tmp/misplaced-heading-mre-2.org > - Some words > ,#+RESULTS: > : this is a line with asterisks** in the middle > > #+end_src Thinking some more about it, I am of the opinion that instead of allowing some select elements (as is currently done for comment-block, example-block, export-block, src-block), it might be better to *only* trigger the warning for select elements from org-element-all-elements. E.g., paragraph. For instance, it seems silly to trigger the warning in a table-row, or a babel-call etc. #+begin_src org :tangle /tmp/misplaced-heading-mre-3.org | Blah | Hello** world | | | | #+call: blah :var foo="hello** world" #+end_src On a related note, what specific situation(s) was this checker intended to help the user in? I.e., what are the situations that could result in misplaced headings? While the checker seems to be similar to the 'misplaced-planning-info checker in spirit, the difference (in reality) is that the regular expression to detect possibly misplaced headings is much easier to get false positives for. -- Suhail