From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SAxsF1pgRGFBuQAAgWs5BA (envelope-from ) for ; Fri, 17 Sep 2021 11:31:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AKAaE1pgRGHUJAAAB5/wlQ (envelope-from ) for ; Fri, 17 Sep 2021 09:31:06 +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 BD136F173 for ; Fri, 17 Sep 2021 11:31:05 +0200 (CEST) Received: from localhost ([::1]:53428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRAD2-0003DZ-SF for larch@yhetil.org; Fri, 17 Sep 2021 05:31:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRABw-0003DM-41 for emacs-orgmode@gnu.org; Fri, 17 Sep 2021 05:29:56 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:43613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRABu-0004JB-H9 for emacs-orgmode@gnu.org; Fri, 17 Sep 2021 05:29:55 -0400 Received: by mail-pg1-x52e.google.com with SMTP id r2so9063533pgl.10 for ; Fri, 17 Sep 2021 02:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=LV+8s259Cw8iUDVJpxJUZVPVfF/u3pG7X1WDOhx657Y=; b=Na3hxP7KH3CS7B10HOTDa6626kfMDmRFgeOzTY6ADRgWDA59czFXQuqMZfWN05Utte GpbCMkAKR8weqRtah+1hChRZs5atfVzgRmFvsH/raJjrg3ODihnC4OuWZweJSNbN0Yu9 cs0tcumlJJWKj1da8NcL9aBTHzTXkqOkRQWF2TgA/jgZjVuH8sV17JibkUbpUS3oR7Qu btmhoa5E01OpVKu58pxqV/f/y8k7eDVnOll87tXKqQ6m5jDe5ICFkbQQiMK2OWrqRJVN PbQEtBNavfrp7v1Yl892Eldo/2iauu7aCx8CE5yQ4PIeX96RauIzbxsPrHYvs27LdJfu NNlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=LV+8s259Cw8iUDVJpxJUZVPVfF/u3pG7X1WDOhx657Y=; b=cPW/Y8q2M57WZoTCW9DqPC+RFU3E865jSgTX1EPwTBTbpm5RgMeFmTiIuUqzBd6iC3 EelOQLJ+IH0+7WfrdAJ/gsidP5NK0/SvdlO8kB0H7Pyxrpgw9CixWnb2BreIHbM3W40p TDOK5WwV6UTiLKLYTdnetFfQp2PkHPdfyRPjtHlilAc8IVvVZsesizP5B8kKnF3aZjtb yrJ9XQFXyXWJH/+jpeEepV1po2XSsi6PweMSjifyUzylgJTg4OJQeZZQhZdcVUjYEfEg gyoCJfw5ugmkvwXWZjrDVYspgRgXTbxmVVHSV3eTY0ATS1f3UoFUJOf0w90zKjrZyfqe Arsw== X-Gm-Message-State: AOAM5323YzclclIM1mv4VX98oNoeazqMrMnd2I20NYOFwbTNY9Id2LK3 p3h/5FYRbyivMuKsiUXCwW0= X-Google-Smtp-Source: ABdhPJwLXDRI/YD36lrsj1GbpVYqwdxnT/Pp83p1F6oj1jagKSGG9B65KzC3tm76PyW1u6kfF56sxg== X-Received: by 2002:a63:4344:: with SMTP id q65mr8939291pga.364.1631870992895; Fri, 17 Sep 2021 02:29:52 -0700 (PDT) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id 19sm10321497pjd.42.2021.09.17.02.29.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 02:29:52 -0700 (PDT) From: Timothy To: Yikai Zhao Subject: Re: 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 17:25:11 +0800 References: User-agent: mu4e 1.6.5; emacs 28.0.50 In-reply-to: X-Woof-Bug: confirmed Message-ID: <87h7ej35yq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x52e.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 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Cc: emacs-orgmode@gnu.org 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=1631871065; 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=LV+8s259Cw8iUDVJpxJUZVPVfF/u3pG7X1WDOhx657Y=; b=EHPf4JiumvuVbKA53+lw21ncB2RLL2GBHwgoZHWmmJ8YVomcL4gZAJL+enpbs4Zljh/sDe HPrlzShzTyVK6nA6JUpP8UtC4ebyvSw4Ec6mtc47LrfVNHbSFWfa5a+1b01nhRHY5TdlE5 7nt5UuWlnP2aiDmd87MqFyr2jD+g9enHQLhfe5PlANu7VVNETevO3ZKk47lbU956b4CH8K ++fRs44xPM7ZVhHLtQzgAdz8ZKMRtwPH/l3xO/b2hluhxFZ5WtYUd2Vebccqbyjqzs5oNc Pf0OIAuCIqcR12BFD6/WIBj+0xxq4myvBocadAM34hXXQc+mebRBDqOReOcA+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631871065; a=rsa-sha256; cv=none; b=ha+DEgWjAIfngNtXb8ygAfiRWEzXecBeHzpWYpv9bXKClNBXyFacehW6HGm0ZvhmnxQAhb qGMgEznvGg7p98NskdcLZnpbqPZUA+B/QFW1qowG9as2fXpFwlrWGYyqkw1sETIlyq+PJy 5bwwSTB1QHp3zu0K0T7TpNGS7XndDJCLrBp66Fu11/1fJqG85VBhtzesxL3vAl+6iP2UQH H0BlTLybqFeZVxx0VGmiUYz8vn26gcaqxesRzx4MvzB8ENsEjMiKRr4BsZvh1oa8+bJrXJ F3sqTES4Cxw01DTh4TEtRupXSrFY9G2nwx4R/wYOCt8XcdHdm6dErmvYfl2W6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Na3hxP7K; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Na3hxP7K; dmarc=pass (policy=none) header.from=gmail.com; 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: BD136F173 X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: +GXZHDPKOyGX --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Yikai, Thanks you for reporting this bug. I was able to confirm it, and trying a f= ew similar such buffers can also say this only appears to affect `markdown-mod= e'. I=E2=80=99ve prepared a patch that serves as a catch-all for this type of i= ssue, but I=E2=80=99m not sure if this is the best approach. If other people could chime in that = would be great :) All the best, Timothy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-fix-potential-missing-src-match-data-issue.patch >From d74d588a004b36d67c603ccbd919e07192524281 Mon Sep 17 00:00:00 2001 From: TEC Date: Fri, 17 Sep 2021 17:23:58 +0800 Subject: [PATCH] org: fix potential missing src match-data issue A more detailed commit message if this actually gets applied... --- lisp/org.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index c22a69154..4c630f206 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5377,6 +5377,8 @@ (defun org-fontify-meta-lines-and-blocks-1 (limit) (min (point-max) beg-of-next-line)) (min (point-max) end-of-endline)) '(face org-block-end-line))) + (unless (match-data) + (set-match-data '(0 0))) t)) ((member dc1 '("+title:" "+subtitle:" "+author:" "+email:" "+date:")) (org-remove-flyspell-overlays-in -- 2.33.0 --=-=-=--