From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GHynLQ9OYmY3PAEAe85BDQ:P1 (envelope-from ) for ; Fri, 07 Jun 2024 02:02:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GHynLQ9OYmY3PAEAe85BDQ (envelope-from ) for ; Fri, 07 Jun 2024 02:02:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=SjGH3+LR; 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=1717718543; 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=Bt906NuM5q88o1zsE52+RtMFxJZe2t4kUPm0YvxP2Cg=; b=tsnJfdhh0EybgM2QbUPMR5MtmMhUf4us7iUV4MPOWqlJqYSLkgr1/gB438vKKgDBlfia+d ZmhbYMwS+Gwya/nrX8UC7hoCqJE0kHVHn13+NKDTUbvV7f0gmtGuISN8U90MW1lXJBwOMp IinAhkikbMIjLYZ1z3phry1DZdM8sHN/KyvesLfCof4ufFFvmUJEjEAw0n5CPs84wgSTcO K7qqIvnEWWCBsR/8tfk6JbG7NqVfjOckMTI13vUDJe9lYHPSwDP+QBUPmN75UMbVCkC4si eoMrkkj1RXSCF4dHEgbF2jIP41IDuVzSYibCE51DnTcucHdspwcQTZy0C6PgqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=SjGH3+LR; 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=1717718543; a=rsa-sha256; cv=none; b=L28oPCfoAZIE010b9M8xLm7Mjh1+OzD1uV/YeLF8THqG75z5wvyCPqRJwA0nWmSlOCRcRm 1A+YrtER22Mp+j7lLGMn/f3Bud/wQ53qWpcj8X1TbH2L/hrvf8jQhcT6IJw7K3kmPQzCvJ zVFaa0ZCSfU7mcCcdtrJk6tAOFjIeYDNAQdaoPl1oWUN+iceGkMZ2vZG9tRELtAruTZjsd QYMmr1eMeLRqMQ2m/qFsE+BRm1T1b808Oyr0Q/HxXDfGPKOPlhGV5cNSXvu39FX+8sFS8i jvpkXylcvsur6YOG/jjRnxCa5vo4tjXio3qvFimABxR6VtiPCmuef/FfAmZ6sg== 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 722127236F for ; Fri, 7 Jun 2024 02:02:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFN30-0003VE-V8; Thu, 06 Jun 2024 20:01:34 -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 1sFN2z-0003Uu-GG for emacs-orgmode@gnu.org; Thu, 06 Jun 2024 20:01:34 -0400 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFN2x-00033A-Nn for emacs-orgmode@gnu.org; Thu, 06 Jun 2024 20:01:33 -0400 Received: by mail-qk1-x743.google.com with SMTP id af79cd13be357-7951c47df38so3842385a.0 for ; Thu, 06 Jun 2024 17:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717718490; x=1718323290; 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=Bt906NuM5q88o1zsE52+RtMFxJZe2t4kUPm0YvxP2Cg=; b=SjGH3+LRDDShehctWrnRs05t9C9J7+7cqD6aGxTFIjTqhKOJKbtmuoq9ap0T5rt/+T hwkYyL8jEUhhBBg95uLQ5iZafnYL/yHzlbEQcezzwptTG7FyqMydeUeOuqaU+EnaznNl /xlkOS2MuLiTHBBDrHbkxyE2dVxmmR/N4WP/cFj1Jf/CskcFycRrJtRA5uZ7OG0D8j9F hKLnVIX4vLg0yGYNCtKtQKVPzDgC9TLG6HzXpPFVpzstTv4/kE00AhNMXV4OSVIyY1lN OswTIAQQz8ybuhJ6CfwY5Xd6DWij1L5Hf5xNC3lv0Bz+HG4szfAaDeDHBWpgm+vcKoUB WzEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717718490; x=1718323290; 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=Bt906NuM5q88o1zsE52+RtMFxJZe2t4kUPm0YvxP2Cg=; b=ikYSZ27Jh3Hy6W3Cn45Hzr9vsaD2LuUqxXP0A9XegOibu7bRP8eaRdsp4q+zvIGjpE 1B8lpKj6bMt2wRbE447nEXGwNjBc5BFHx6hHj754XRe4+bILHQLUUaR78Nzlk2eqkdLd 7F0qbII5JE0uI4CD1cEYVho1REUKppviq7J65hV/nA6n7eesi+L7SFsGiqLZEe8drBpC x78ko3pt77OfVdgXEA+sLvPKywUjy3K0RMxC8tQQziH5IL4PupJGHlOMwxukJmUvPwYo 3V0tskkuOKyEAsPC9fcRCUwBp1bvbCr23vuprsRrsNFkqgC5S+DBJjjF23Jdh5TGUYDl g+vg== X-Forwarded-Encrypted: i=1; AJvYcCVoTmRE3+alKGDpLjM4XFDcWbMczH8htcWRBdtAl4s1a51wzCLlUUdzyj3LEe1TU8iWdLbTPfh2LT5zTuWtewmcM10Zd6U= X-Gm-Message-State: AOJu0YzRDsxKpRY470AgG0UVgkh+Ombzk5tqmgUM1JFocwrdqlQWiehM Wg7txuX+yVeaQkFyI+IA4kmUW4M/ZzEmtAn3UPzv7WT7y/j3ukz4QHDM+BzK X-Google-Smtp-Source: AGHT+IHz3cIAjSBqn8JlB/AvlcfGR8vIcTTS2if/HJAI3YQ1xtlw9xc3JDJqZHm4XEyYqmEMwDlt2Q== X-Received: by 2002:a05:620a:d85:b0:792:c44e:c256 with SMTP id af79cd13be357-7953c79d1c4mr73978585a.7.1717718489776; Thu, 06 Jun 2024 17:01:29 -0700 (PDT) Received: from gnus (static-198-54-132-177.cust.tzulo.com. [198.54.132.177]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7953281916dsm107325285a.5.2024.06.06.17.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 17:01:29 -0700 (PDT) From: Suhail Singh To: Ihor Radchenko Cc: Suhail Singh , 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: <87a5jz7cqv.fsf@localhost> (Ihor Radchenko's message of "Wed, 05 Jun 2024 13:14:32 +0000") References: <87r0dc35ya.fsf@gmail.com> <87a5jz7cqv.fsf@localhost> Date: Thu, 06 Jun 2024 20:01:28 -0400 Message-ID: <877cf1boyv.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::743; envelope-from=suhailsingh247@gmail.com; helo=mail-qk1-x743.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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.67 X-Migadu-Queue-Id: 722127236F X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.67 X-TUID: amwct8ZhOAxE Ihor Radchenko writes: > "Suhail Singh" writes: > >> When there is, say, an "example" result block that is indented (i.e., >> the entire block including the delimiters is indented) and it contains >> some asterisks in the middle, org-lint considers it to be a possible >> case of misplaced-heading. Case in point: >> >> #+begin_src org >> - Some words >> ,#+begin_example >> this is a line with asterisks** in the middle >> ,#+end_example >> #+end_src >> >> The lint check should guard against occurrences that happen within code >> blocks. > > Makes sense. > Fixed, on bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b8497aa7f This doesn't seem fixed as of 9.7.3 (the MRE above still shows spurious warning). It seems that org-at-block-p returns nil when point is within the block. -- Suhail