From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 OKRmK9vY7mKaRAEAbAwnHQ (envelope-from ) for ; Sat, 06 Aug 2022 23:10:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6FuQK9vY7mJjGgEA9RJhRA (envelope-from ) for ; Sat, 06 Aug 2022 23:10:51 +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 5B4AA27F5A for ; Sat, 6 Aug 2022 23:10:51 +0200 (CEST) Received: from localhost ([::1]:39782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKR4L-00084S-Rh for larch@yhetil.org; Sat, 06 Aug 2022 17:10:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKR3j-000843-Jz for emacs-orgmode@gnu.org; Sat, 06 Aug 2022 17:10:11 -0400 Received: from mail-108-mta150.mxroute.com ([136.175.108.150]:36939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKR3h-0004ml-0V for emacs-orgmode@gnu.org; Sat, 06 Aug 2022 17:10:11 -0400 Received: from filter006.mxroute.com ([140.82.40.27] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta150.mxroute.com (ZoneMTA) with ESMTPSA id 18274fe5cbf0000261.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Sat, 06 Aug 2022 21:10:03 +0000 X-Zone-Loop: 93785b4813bae23222f22a2fcea47a78c64977cfad8f X-Originating-IP: [140.82.40.27] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tatersworld.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date:Subject: To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ercz7NuO7EhqihQFUe01GSHIDR20pprfSrG4Jg9LFUI=; b=tBzofFuCs9a/BE9p/gmab6koW4 qSalj/t23OJVpupyv1QNEbI7dsujGHsgPeTPNzIWPa7v3GCk53IVso4OlWByT2bTqYKxD9FyO2wrV i/NO4KyNbxsDzSd+OuiixCkEPUhHYykGV87lPqUFL6osf8TXE1WCxbfr+9XcqeSXDGrOEXspadELg Xbi2zwFc5SM+h/BBzZu4+xie0MyEj42pnLJ+OgNR2Rn0e9jWEAGX7HPAXVM95ObMTVK5GiWImhXeR bcJXXNqIRY73kxhDpDrQQyTLgvu/ackYYHhp/yCu+NP1FvjLgq/wetUq1uUamSs2JNisDVWOMkJ+d /MHK+bEg==; From: Jack Kamm To: emacs-orgmode@gnu.org Subject: Bug: Folding problem with markdown source block Date: Sat, 06 Aug 2022 14:10:01 -0700 Message-ID: <87zgghrsd2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-AuthUser: jackkamm@tatersworld.org Received-SPF: pass client-ip=136.175.108.150; envelope-from=jackkamm@tatersworld.org; helo=mail-108-mta150.mxroute.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, 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=1659820251; 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=Ercz7NuO7EhqihQFUe01GSHIDR20pprfSrG4Jg9LFUI=; b=geK2XFsu8S8QaEdW3+wt8je5CM5E/fuBlz8bVEJ9WO7svhcQO2x9I4VJILLjrvs0HNQFmW /96vE3b44FSJje8XuK56o8Wb/xtIFrjNdkGJgsZQWlHoQZ7LDiL9wtKHeLy34aOipUHqqR lrXjCH7RWYuN6p3JzxysCdDrtqJfebJLSksoHStT/CGVXSxVyvqriFW3NNqfj/6/G3DuwI 2/l1oDhyvwQ8Rwc3x4RSuWuis9w8pE4DFtGO+w7hWAPc0WveQgM7r/9skAGjMJlPXwWWjs fVlcM4rWwDUyDkG732kabOLE3GMOKzofLejMNT9ecrM06kVlVawFb7qcE4eFtg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659820251; a=rsa-sha256; cv=none; b=d+4zOqzupQzg9+hrP7+BjPP8ypasg2QszTFn5SuDRBZrMfQlC5mqYgSf8je8jGoI40qR9r a0RBq2P0qfOaO5h2Q21S7TcRQ1pAUZyTQNBnRVOJwq7OaaqGRZCHPV+G28f+ejwhyHbVkZ DYO+ixQNhtItqujHlqrpk+grffRkUC0wh6tCV+ROfNkI3rzdD98AbblQft0nlfospsAr2e qJ5p2qVUS34QNFPaulbv1H6t1d0VKYPussSmEXmK8Bk1Jmwp/3WjkOkHxrZLX1r0batSgK +Bu1TkZuaa97m9NwsdMW+l6cXIFzAyiukpsPDqTlH1ellDJhnnIcg/KLZyTAfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=tBzofFuC; dmarc=none; 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: 0.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=tBzofFuC; dmarc=none; 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: 5B4AA27F5A X-Spam-Score: 0.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: Snoue94aF8VC --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=init.el (add-to-list 'load-path "~/.emacs.d/elpa/markdown-mode-20220708.6") (require 'markdown-mode) (add-to-list 'load-path "~/dev/org-mode/lisp") --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=test.org * 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. --=-=-=--