From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uG4IMFGaQ2Er0gAAgWs5BA (envelope-from ) for ; Thu, 16 Sep 2021 21:26:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GKasK1GaQ2EjXQAAB5/wlQ (envelope-from ) for ; Thu, 16 Sep 2021 19:26:09 +0000 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 EED83272C3 for ; Thu, 16 Sep 2021 21:26:06 +0200 (CEST) Received: from localhost ([::1]:46464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQx1J-0000ub-V9 for larch@yhetil.org; Thu, 16 Sep 2021 15:26:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQupq-0001LZ-Rq for emacs-orgmode@gnu.org; Thu, 16 Sep 2021 13:06:06 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:56877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQupm-0007C6-Hd for emacs-orgmode@gnu.org; Thu, 16 Sep 2021 13:06:06 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 066AE320093A; Thu, 16 Sep 2021 13:05:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 16 Sep 2021 13:05:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z1k.dev; h=from :to:subject:date:message-id:mime-version:content-type; s=fm1; bh=qwefoP0/5jtRUEz42iiCVL5JLur5MLOeY2T+oVtmImk=; b=SDEvA/rW85z5 t+SOuWffcB8OCXsYCHlNwgPf/Z1ukT1UpwD2uAy/FUkOEHRnFytqboFhqvtM2+Qa +ZtnwQ9tfCg7th03/g7fyrhu6wRS2B74tq44seyZ8fYOcoke5bdP5/o/xj3fQpXz qV1LYxUIhu4FYkwjp04w/6tbhx4J/XOOu/vsrQM5CdoHe4goy3qz96tRIHXedthu yrKHd+XTBKv2SCAwCdx+9kA+X5bV3GoDB6ELtuE0r76QuKBoMpMBSRKAT8PUEvx5 bn8U09dy1SHPCI1e+NREIuXcfxMeuXZrN+PupXiKQiaQyXVGFoGtA6HR/WgGMwBh jDJmFbvZJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=qwefoP0/5jtRUEz42iiCVL5JLur5M LOeY2T+oVtmImk=; b=ceX3BK2mB0qFOEHE4d66lVzoMTSGU5DZVIdrPiDwlvJua zx8XAgsHp1NRNYXBNEnQsgzpvBHoxwqb2m59796Q2dzOrJfdbOgdt94AbspYBSwv Uxi/ZP7WITtGrEY8ojkZleo5sCtV3Scz72leM7fyuMVYCCgfb4cxyDp99ps0OfIx I50B4oVJrKilFrgzjwiDdNEoJIPSrDPmr1q6KsnpKUlJuGinFE3dTcovbxouPGJM dtabMu/gF7oFFtzahmkWVwFKpkKbusSlFOWPmOkVFlZBf38rWD0DgjeMZMCxiR+Q +sTXosIc7BLKh8Fonm5RYXnehiy22JAI8B2EFdNFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehgedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttd dttdenucfhrhhomhepjghikhgrihcukghhrghouceohihikhgrihesiidukhdruggvvheq necuggftrfgrthhtvghrnhepgeevjeevtedtgeffhfelgfeiueehueetgefggefhveehje ffheefieevtdduheeknecuffhomhgrihhnpehorhhgmhhouggvrdhorhhgpdhjsghlvghv ihhnshdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpeihihhkrghiseiiudhkrdguvghv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 16 Sep 2021 13:05:57 -0400 (EDT) From: Yikai Zhao To: emacs-orgmode@gnu.org Subject: Bug: Fontify error with markdown source block [9.4.4 (release_9.4.4 @ /usr/share/emacs/28.0.50/lisp/org/)] Date: Fri, 17 Sep 2021 01:05:54 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.25; envelope-from=yikai@z1k.dev; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 16 Sep 2021 15:24:36 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631820369; 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=qwefoP0/5jtRUEz42iiCVL5JLur5MLOeY2T+oVtmImk=; b=p6AnRL3QLzc8zTyRSKqCZtwj/oPKsL09yaJNLGr7Jwxch9HrAIVf3qz4KMfsLhybhC26bP nWArb8ElRkwzrtlHYbpT73XBcaWkacJ362u1/qZJm5rNuMLFufT7TIWYKzsyEClua7z3Vo 0+Xq+cHqTeDrZFG+5MuR78RkyQwb9A9tAo7Qyfw3gIx6HGpnpiJBPnuGXr6NBMHDccf442 tIahqw8N7FBvssSOEWZIFjUh+rclZtf+Vryhj08E1hOTToqXz4nalO2O3lsXn8LtfOYG+8 iiDBNpSPruWFT560dnwm6uWvoPXexBffhI1yHvYttD9vrgYCJFJWW2EF9HHFrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631820369; a=rsa-sha256; cv=none; b=U3UavbwF+Sc7fe9mEt/fH33Tl7myeFIPXXyu2GkKxXq0T7ZfF32ElpIuhVi8yo+n+z/a8C 2/HC19s/fQquP+uO5Jxx53yhnsdQgAkwB3sF1Vfn4UgovkaY8snB8hG6QlLn209Cgh1Tn1 CRbWyeBOJ03LkLhffqzXWjyOxHlXT4b1KbgN8G0cM+mm34awcs82hd0nVqMcAPPGf2GHLA fE9ZCjjL9LXl6oHQnMMTjgSHE4i5IqrGjstJjijbdgC2SsUbA4aFNxpI4wraWmbEqvppWF RXrBjxa7Bzog5+8YVncWV3b/0fhXpOcDXns77tCat4bA1fbwGXGf2+ZBGn4Ncg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=z1k.dev header.s=fm1 header.b="SDEvA/rW"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=ceX3BK2m; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=z1k.dev header.s=fm1 header.b="SDEvA/rW"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=ceX3BK2m; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: EED83272C3 X-Spam-Score: -1.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: zdPX+prQhB8y Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Hello org-mode team, I encountered the following error while opening an org buffer: Error during redisplay: (jit-lock-function 1) signaled (wrong-type-argument number-or-marker-p nil) Here's the minimum reproducable content of the buffer: #+BEGIN_SRC markdown #+END_SRC (that is, just an empty markdown source block). I have markdown-mode https://jblevins.org/projects/markdown-mode/ installed. After some debugging, I've found that the error happened in `font-lock-fontify-keywords-region` function. It calls `org-fontify-meta-lines-and-blocks` and got `t` as the result, but the matching data is not set. The following advice can fix the bug for me: (defun my/fix-org-fontify-meta-lines-and-blocks (res) (when (and res (null (match-beginning 0))) (set-match-data (list 0 0))) res) (advice-add 'org-fontify-meta-lines-and-blocks :filter-return #'my/fix-org-fontify-meta-lines-and-blocks) Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-09-15 Package: Org mode version 9.4.4 (release_9.4.4 @ /usr/share/emacs/28.0.50/lisp/org/) current state: ============== (setq org-link-elisp-confirm-function 'yes-or-no-p org-directory "~/Notes" org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-agenda-files '("~/Notes/gtd/") org-export-before-parsing-hook '(org-attach-expand-links) org-refile-use-outline-path t org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '(#[0 "\301\211\207" [imenu-create-index-function org-imenu-get-tree] 2] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-confirm-shell-link-function 'yes-or-no-p outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-agenda-before-write-hook '(org-agenda-add-entry-text) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("treemacs" :store treemacs-store-org-link) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("mailto" :follow #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("http" :follow #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("ftp" :follow #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi)) org-metaup-hook '(org-babel-load-in-session-maybe) org-outline-path-complete-in-steps nil )