From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4BwOE6e6ZGWj+AAAG6o9tA:P1 (envelope-from ) for ; Mon, 27 Nov 2023 16:49:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4BwOE6e6ZGWj+AAAG6o9tA (envelope-from ) for ; Mon, 27 Nov 2023 16:49: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 EEA8D45CD1 for ; Mon, 27 Nov 2023 16:49:58 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Dh3yqTxk; dmarc=pass (policy=none) header.from=gmail.com; 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-Seal: i=1; s=key1; d=yhetil.org; t=1701100199; a=rsa-sha256; cv=none; b=J5jaBm9q6ojrI3Wflh51oW3FQ+ctT6DFBqRmE/nVYTCZfzZwRLXq6TJUzi/Rq/lgTirQ9E QcUmf3cZ61XsCoRvwW5J8K6Cnpsb7sugJsCQqU9xUBa0yQ4OSVogK4B0nKZ1TbBYHBoH10 Vyg/p7p6HYK+QNn1E+QcUX8xjq/NFyW4vVK4fD75Aq9ra7Wi6mn4UWBciBlz/iaXQ7Ni2P 7xHZx/L1y38HzNDNd+dxbxrutpj/XaiQ5w+u9rhbdvPwgypKScYFAni28HCF4Xj+yD0N0k HyrnSC+SAduuzB3R+18LEmYp09msZ+BbJO06PXx1A5vx0i5to8SZF6q07ii9uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Dh3yqTxk; dmarc=pass (policy=none) header.from=gmail.com; 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=1701100199; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/Zj++wifF8kqAcy+1+J+WJqPME8taXA8CEUtBcisEJQ=; b=Qekl410Yxg8AtiIB1jkPxLp/N/0eIKOQP0hL1bDPbBSnUiWawFQjAx0sy9U8G/F8BtLtcJ U/QLUCRBp9RokL5gUVRbMQDzbPbZuI9XXIC22j4eRUVkwFl74X048MFpjgtAlfA1P4RTPR vWynY7eCTWdRAi1Sy572gE6obb9PS+QV1oU2lHxx22GXozwUOqOe+jo6Mk8JfIihbNbJWh QbSBwNT3SOCiJXcV7BMwfAwM20QaafHgVMcOPciHIucNe0vPqiK0MWXlEEdSV2NkT3Hrx5 32r27OH1/hi/h2qciho4u1ImE0oCr41jS1HKjyllIHMMKypmVg3Ymp1heu/FFA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7dr6-0003O9-Js; Mon, 27 Nov 2023 10:49:04 -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 1r7dr4-0003Nh-Rh for emacs-orgmode@gnu.org; Mon, 27 Nov 2023 10:49:02 -0500 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7dqu-0006eX-PE for emacs-orgmode@gnu.org; Mon, 27 Nov 2023 10:48:54 -0500 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-778ac9c898dso197488985a.0 for ; Mon, 27 Nov 2023 07:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701100131; x=1701704931; darn=gnu.org; h=mime-version:message-id:date:user-agent:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=/Zj++wifF8kqAcy+1+J+WJqPME8taXA8CEUtBcisEJQ=; b=Dh3yqTxk99JF2mmn3R5Q5sJa/CintGb0rDj47w52L87cMHyZz87EGHTm4xqlM5mm6d Toaj3VCM1U+V2ZB3YlEjmfz97omVBF5TP6LIAVqz+VdrqfnwHIzomd/K7BSKoBLP+aEk lcdtMQfFbAVsslN+yxnsa8nMrKe91gbGMzunAsbX6WL6hJq6ICkbNUXTzlaEbeWroXCh PG2P+tfT4YhpYoJGRPbcIFDASW1ZcPOt0Qs+KntAaZbp9JFlENYOcmCZsE0+9gCWhNRD HodDEFJgD7I3lfExHK8hZVifnuJtXfCGj4pyHVvieQRyYT/PcZLvdL4ykPjhff5N+Pdg S4qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701100131; x=1701704931; h=mime-version:message-id:date:user-agent:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/Zj++wifF8kqAcy+1+J+WJqPME8taXA8CEUtBcisEJQ=; b=so8t1beIeUIF6qrMQUluVWBoaS6XTlq0p9ADyyXxPBetQw/oKPUqpkp2xt0jPJt4ZC zjo7hCV+U+V236Svw9uoXyaozdec0eP1yrdUTZp7AAv10VpnmzQPGarZsBNqpcPOIAnC PoI+rWGRBIPhx5blSS44eXvldR5PbYlQP6IPIPldb4y5ZcU52//ZLuLFxH/BgeBFKT7+ QRdj+FbWLnAsDcGNiNw6emis2DNIiQ7YzwqXnpWSAehqAqOGvR148gBWxi0pBwRQtKP+ Vwglfs8zC6h3yDiIgA6t0+o0bsULzz8Dnx5KZn+yXmvWVRmavFq97imQcWvhNF3EtSjT fz4Q== X-Gm-Message-State: AOJu0YxVY8Y6XOmY9GmbXA27hlCh3w/zCW26rjFAPSlo+waFpae5Gh0B IuyQghOP38oQcYXW4m0dpx2d2SUB1SQ= X-Google-Smtp-Source: AGHT+IHwkw53rfxqFqrYZesqwAf1RJ1V2wRJRb8GIUUN7wiO6MzHgPBHsDRGrQqumtz1VnAk9jyLjQ== X-Received: by 2002:a05:620a:6846:b0:77d:70fe:e247 with SMTP id ru6-20020a05620a684600b0077d70fee247mr12082034qkn.39.1701100131177; Mon, 27 Nov 2023 07:48:51 -0800 (PST) Received: from laptop ([2601:84:847f:c697:e217:2894:4724:14f4]) by smtp.gmail.com with ESMTPSA id o8-20020a05620a110800b0077d66e5b2e6sm3786997qkk.3.2023.11.27.07.48.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:48:50 -0800 (PST) From: No Wayman To: emacs-orgmode@gnu.org Subject: [Bug] org-in-src-block-p returns t when not in source block User-Agent: mu4e 1.11.25; emacs 30.0.50 Date: Mon, 27 Nov 2023 10:49:57 -0500 Message-ID: <87il5n9owq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qk1-x729.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, 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: mx13.migadu.com X-Migadu-Spam-Score: -9.44 X-Spam-Score: -9.44 X-Migadu-Queue-Id: EEA8D45CD1 X-TUID: P3frx7dXIw2p 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. Yodel[1] Report 2023-11-27 10:42:54 =================================== --8<---------------cut here---------------start------------->8--- (yodel :post* (require 'org) (org-version nil 'full 'message) (yodel-file :point "|" :with* "#+begin_src text\n#+end_src\n|" :then* (message "org-in-src-block-p below: %s" (org-in-src-block-p))) (yodel-file :point "|" :with* "|\n#+begin_src text\n#+end_src" :then* (message "org-in-src-block-p above: %s" (org-in-src-block-p)))) --8<---------------cut here---------------end--------------->8--- STDOUT ====== > Org mode version 9.6.11 (release_9.6.11 @ > /usr/share/emacs/30.0.50/lisp/org/) > org-in-src-block-p below: t > org-in-src-block-p above: nil Environment =========== - emacs version: GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2023-11-16 - system type: gnu/linux [1] https://www.github.com/progfolio/yodel