From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QMzfGAmB72ISVgEAbAwnHQ (envelope-from ) for ; Sun, 07 Aug 2022 11:08:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KBYEGAmB72IreAEAG6o9tA (envelope-from ) for ; Sun, 07 Aug 2022 11:08:25 +0200 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 E155A3A3B2 for ; Sun, 7 Aug 2022 11:08:24 +0200 (CEST) Received: from localhost ([::1]:38718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKcGl-0007Vc-Oe for larch@yhetil.org; Sun, 07 Aug 2022 05:08:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKcFr-0007VC-5y for emacs-orgmode@gnu.org; Sun, 07 Aug 2022 05:07:27 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:41668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKcFo-000182-S0 for emacs-orgmode@gnu.org; Sun, 07 Aug 2022 05:07:26 -0400 Received: by mail-ed1-x52a.google.com with SMTP id r4so8115627edi.8 for ; Sun, 07 Aug 2022 02:07:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc; bh=wB9Qsb/fNUQJQZkGy5A5mElKD+p13HNRBC4S8SBVENw=; b=eBz9SBfeWSKDR01PSm6wqIb0un5dhCP5VGnULHLMuyUaO7JIcCx9mujXlROIo3KK5D eK1rAK5CRtn1ncGdnQ41WEWUbJ3m7fcU7B/yF+k8Zb0pFByJC677+WhJ0xXbOZDeugyH 66Ne4EIrG3GVQCVfOzA5v0SYOdVy1xBHsVCoMKwCwD+2EWRXqJxRV4hSsX03jhCEHtim YSGWlXJkoNVhiycCapF2V4NSl7SFQaULyUrJxhwx9d+hNAaIxwjArP5vVSkCPqUKMGv+ RFpMyC4mtv+hF3CKkV+SnFjlaSoYI+H0NidB/3RMn0rvVRJ1RlagNLdgm4X1dNu6iwQ4 yPMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=wB9Qsb/fNUQJQZkGy5A5mElKD+p13HNRBC4S8SBVENw=; b=wjBGW1ue48cg7lvZDX/kcyzyGrv4zDfhNqUZJIqi2rcNh49Cz/1ZUJA/G83LX4ilx5 YOZO3k3F+yMojmJWM1TrYzQ1oAq3+mXgwudl+WU5gyISzo9gXFMDJQrXEmt/Zfe4NUqF iHjTA3A5QvoO7co9YDAzewmBdzME/kd0ZA9co+AqsFfZc0FXfWdnX41fUAYvOV2rRCnt 2Tdi35p5GgCF2wfEplAdOSTOKDWKbri6hk/HQDRt4QNvRNnb4D7VT/Ro1NMZ5d8kllwy OgFFse5Db/qiRAY5+przuTKxkkzmDq+eX66vd8nJdUuMkeL5/+GQJh+jKR6BokTP5XXI v4JQ== X-Gm-Message-State: ACgBeo0YNgw6WVT9/gxRlKF6vgkZJ1PvFRubAdFc+2j1U/f6TBbgMRJn hANHozuO1etI79ArJcesjYLYkUocMIsooAUb X-Google-Smtp-Source: AA6agR5l5HNymEV6E3ql6FYQ9hbJgmjg0KNLldBxC9wXCuXIXDh5mSgHXCi69dYebbqJx9QBoEUsjA== X-Received: by 2002:a05:6402:3287:b0:43d:bcda:bd20 with SMTP id f7-20020a056402328700b0043dbcdabd20mr13646709eda.414.1659863243333; Sun, 07 Aug 2022 02:07:23 -0700 (PDT) Received: from flexignu ([2a02:908:1d1:72a0:7771:7380:c457:666f]) by smtp.gmail.com with ESMTPSA id q4-20020a17090676c400b00722fc0779e3sm3569021ejn.85.2022.08.07.02.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 02:07:22 -0700 (PDT) From: Jeremie Juste To: Jack Kamm Cc: emacs-orgmode@gnu.org Subject: Re: Bug: Folding problem with markdown source block References: <87zgghrsd2.fsf@gmail.com> Date: Sun, 07 Aug 2022 11:07:21 +0200 In-Reply-To: <87zgghrsd2.fsf@gmail.com> (Jack Kamm's message of "Sat, 06 Aug 2022 14:10:01 -0700") Message-ID: <878ro0mng6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=jeremiejuste@gmail.com; helo=mail-ed1-x52a.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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659863305; 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=wB9Qsb/fNUQJQZkGy5A5mElKD+p13HNRBC4S8SBVENw=; b=KdBAVOYJR9QmnKYU4KfNvfTvsBb9eYBN+3zmbex2ZxH0FR8kTRB5Sxfw9B7DU6Do78inu0 iGNOMGmVnV7dJxI2i7k3RmiFVx26QFfslYXJvlkj/9w73F+QmcabuoSxHQXsiX4PB13ilI cf995e0WpJxwEtLdOsoKn8IPPWKz2KfciaILrMjVnNNGypMpKQq9x7hd9toPM4UuWQ2Dlv 44i7heEcOP7tPoYdB/vJT53C54R0wk5Ruw2wqCvpKrkMzAa96mCMj7vNyR7TO3ZmkSONRT TRdYvlzaWTFNGfBB+PwVK2ImP1zNnEVDJhTe2/i6ybkwo+z4BWZ3FbHv6CAW9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659863305; a=rsa-sha256; cv=none; b=QtGw344AshEe+2m6xYXAE/pmxW9tB8qUNlRJnvXVfFqrc9WSNt1rNU5/AtcwZMZTT5AjAN GE4rOIosbRVSMSxRv4w/z2LQIvkv8yyw3juLAdzlKV6AVxfefeYy6bDlzVpwVzOA6y5yQD pLoFqPNJkTQFJyP+j5WWBtzcrZPqfuCfnyc5YR0bj37jneolu/s4h45AIpobDnZA/kLGAd O8+oAvQ8umg4cKvT+X703jnJRmGpGN/7zucZ+zpbS9VHvze9ge8ePZwndOGFZr7cZd9ugw ttbbkxzsT6CSZFUbZZQvraVIi3WDcK8TmA2o7YuMGE1CikEbAHy1QVGf7DntYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eBz9SBfe; 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" X-Migadu-Spam-Score: -9.39 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eBz9SBfe; 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" X-Migadu-Queue-Id: E155A3A3B2 X-Spam-Score: -9.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: qgVSkDj7c5pa Hello Jack, Thanks for reporting. I can reproduce the bug. Best regards, Jeremie On Saturday, 6 Aug 2022 at 14:10, Jack Kamm wrote: > Hello, > > I found that Org entries containing markdown source blocks don't get > properly folded on the main development branch, when markdown-mode is > also loaded. > > To reproduce: > > 1. Download markdown-mode from MELPA or Github. [1] > 2. Fix the paths in the attached init.el. > 3. emacs -Q -l init.el test.org > 4. Shift-tab to collapse the visibility > > Output should look like this: > > * Headline 1... > > But instead I observe this: > > * Headline 1... ``` > ... ``` > ... > > If markdown-mode isn't loaded, then the problem goes away. I think the > problem might have to do with the fontification that markdown-mode > applies to the back-quoted code block. > > Versions: > GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6, Xaw3d scroll bars) of 2022-07-10 > Org mode version 9.5.4 (release_9.5.4-717-g9cc60d @ /home/jack/dev/org-mode/lisp/) > > [1] https://github.com/jrblevin/markdown-mode > > > (add-to-list 'load-path "~/.emacs.d/elpa/markdown-mode-20220708.6") > (require 'markdown-mode) > > (add-to-list 'load-path "~/dev/org-mode/lisp") > > > * Headline 1 > ** Headline 1a > > #+begin_src markdown > Some source code: > > ``` > echo hello world > ``` > > A list: > > ,* Item 1 > ,* Item 2 > #+end_src > > ** Headline 1b > > Lorem ipsum.