From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UGK4Jp67ZGVFnAAAG6o9tA:P1 (envelope-from ) for ; Mon, 27 Nov 2023 16:54:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UGK4Jp67ZGVFnAAAG6o9tA (envelope-from ) for ; Mon, 27 Nov 2023 16:54:06 +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 F169440F3B for ; Mon, 27 Nov 2023 16:54:05 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IaKwjL0q; dmarc=pass (policy=none) header.from=posteo.net; 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=1701100446; 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=bN6sAufgDgfqqIFpOvhAVFyUzKWcmKK2tqZgDBB62tI=; b=mIMt+85Nn+mB75pWuQTvNPCh/6rH75N8pukq/1jJX62rk6uAwxWFtVUUGElLuKePLs6b41 icu3MhASfgpr+VS5LaCyAr9Gm61GMqc+Suce+/xA/vUQI5R3DrF6wAUyZsCEGgMmpwEi+8 1nSKOY+rA/kb9vDZcKmiSuzlWcqahoRTlpt2Oh3fEb6SpebqQNiUDz6flHFPu4z+IQMd+O cTKMhYsLqeBmp+QcMw+H0LhjPz1nd7Z6SAKQyR/xE3yKyNLSuNS+CjinRx1ciBeM/fUd0E WTRK4faR7cg2p1Te/5zUAMZrLAMLsDJhOMrgBtqJHwAKVSdlACZ5v1UP93EohQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701100446; a=rsa-sha256; cv=none; b=LALqCvNT1mvvHDY8KQOfLSWOyBYszSFM+zN6YgFddBEgcFdaSo+Pi8YiPArtoow8HxYI5T iMKdI1YZ1w1uPBhkYDNHoqddZKEM9m7z12Kmzqe9q9DhScBl+mUX6c7pzflAQfOcJUFv8m SSGR6N26Vv3nshdBSkzEd8wiA03IukvJfC+YKOpDniad1pP0HwscrGTh16giP47ICIg3xE KrW4LE+MuxYStyMHoU9lk5X7D5XWpot7CcsWTUeMngw25vXccUn+7exAC5tf9qO4R3pfj+ LxxTGMjC0GUuhsfLYOTU/f5t5PnQs/yE1Oju0SajWbZIkPiPcA6+AtCN6hjCsA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IaKwjL0q; dmarc=pass (policy=none) header.from=posteo.net; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7dvG-0006XB-3f; Mon, 27 Nov 2023 10:53:22 -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 1r7dvD-0006Wx-Vf for emacs-orgmode@gnu.org; Mon, 27 Nov 2023 10:53:19 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7dvC-0007gV-0M for emacs-orgmode@gnu.org; Mon, 27 Nov 2023 10:53:19 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9DDE5240101 for ; Mon, 27 Nov 2023 16:53:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1701100392; bh=yO+Vd9AtIR+M/vmz17MdPOp8CwwQAT5OeNbOjX7kvUs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=IaKwjL0qh13HljKURcnIuskP8ESCKwQWfWt7P7PVRYiG2aQtiJQi3OyxsqEOHbdKq bWSyA+IaM7jVAvbSK1Q4ONxsfZtXx0NGiF5pChIPa3VU0CXEWj2OMEuRTXO6FLMbzv XUTIRGVo3Gu4wzkAoEXbLqLKeKGWLgrzl5NrYJ6yOpcrOMlXYo6q99v5MyaxA/5lAt uD9IlP5zqtXDbms3jfhIJGhJGBQLFfEDhAcLOJXWb3/yp9a8uVA4RinzEfL9AHd/Kn /br50nosws2+gz5y9kfv/ldmdR1LKruAn5RWmJLsBGhPkpj6WXKVQ9TG42+BSPGAEo E7T/dqJwvAyXg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Sf99325ZGz9rxK; Mon, 27 Nov 2023 16:53:11 +0100 (CET) From: Ihor Radchenko To: No Wayman Cc: emacs-orgmode@gnu.org Subject: Re: [Bug] org-in-src-block-p returns t when not in source block In-Reply-To: <87il5n9owq.fsf@gmail.com> References: <87il5n9owq.fsf@gmail.com> Date: Mon, 27 Nov 2023 15:55:49 +0000 Message-ID: <87cyvvur5m.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -7.92 X-Spam-Score: -7.92 X-Migadu-Queue-Id: F169440F3B X-TUID: kJtdvpW+R/dn No Wayman writes: > When on an empty line before a source block, org-in-src-block-p > correctly returns nil. > However, when on an empty line after a source block, it returns t. > This is reproducible on my end with both the built-in version of > Org and 9.7-pre. This is not a bug - Org considers blank lines after element as a part of it. This includes source blocks. If you want to check if point is inside source block code, use INSIDE argument. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at