From unknown Fri Jun 20 07:21:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50763 <50763@debbugs.gnu.org> To: bug#50763 <50763@debbugs.gnu.org> Subject: Status: Markdown blocks in Gnus messages Reply-To: bug#50763 <50763@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:21:06 +0000 retitle 50763 Markdown blocks in Gnus messages reassign 50763 emacs submitter 50763 Juri Linkov severity 50763 normal tag 50763 fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 23 12:00:12 2021 Received: (at submit) by debbugs.gnu.org; 23 Sep 2021 16:00:12 +0000 Received: from localhost ([127.0.0.1]:55605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTR8t-0001Ke-N9 for submit@debbugs.gnu.org; Thu, 23 Sep 2021 12:00:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:39960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTR8o-0001JH-1l for submit@debbugs.gnu.org; Thu, 23 Sep 2021 12:00:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTR8n-0001v7-AC for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 12:00:05 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:40123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTR8i-0004fA-OZ for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 12:00:04 -0400 Received: (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id C482640005; Thu, 23 Sep 2021 15:59:54 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Markdown blocks in Gnus messages Organization: LINKOV.NET Date: Thu, 23 Sep 2021 18:47:51 +0300 Message-ID: <87a6k3sa68.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.194; envelope-from=juri@linkov.net; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Tags: patch People use markdown blocks on e.g. Reddit, StackOverflow, etc. and maybe this is the reason why such blocks are used in bug reports. But without proper highlighting such bug reports as bug#50752 are unreadable. This patch adds support for highlighting of such blocks: ```patch diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el index 494221adee..b6acd2e32a 100644 --- a/lisp/gnus/mm-uu.el +++ b/lisp/gnus/mm-uu.el @@ -145,6 +145,14 @@ mm-uu-type-alist ,#'mm-uu-pgp-key-extract ,#'mm-uu-gpg-key-skip-to-last nil) + (markdown-emacs-sources + "^```\\(?:elisp\\|emacs-lisp\\|(\\|\n(\\)" + "^```$" + ,#'mm-uu-emacs-sources-extract) + (markdown-diff ;; this should be higher than `git-format-patch' + "^```\\(?:diff\\|patch\\|\ndiff --git \\)" + "^```$" + ,#'mm-uu-diff-extract) (emacs-sources "^;;;?[ \t]*[^ \t]+\\.el[ \t]*--" "^;;;?[ \t]*\\([^ \t]+\\.el\\)[ \t]+ends here" ``` PS: This patch is highlighted properly in Gnus when the same patch is applied. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 23 17:20:17 2021 Received: (at 50763) by debbugs.gnu.org; 23 Sep 2021 21:20:17 +0000 Received: from localhost ([127.0.0.1]:56050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTW8f-0004Tc-BH for submit@debbugs.gnu.org; Thu, 23 Sep 2021 17:20:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTW8W-0004St-8v for 50763@debbugs.gnu.org; Thu, 23 Sep 2021 17:20:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zaiJSaBMXEzIh9Ba6voWlBe4MKeRUnU4sXYJ6YlziH8=; b=rFX7l4QF0To/dk7X54hoi5u7LB dEwZoV0Rh5UvwrrdX78H40rVfSRJPPIHIpSiTMbskCIoU4zEyiJSmmBqW1zYmXfs0a05a1sC+LC3D g2rJWBlewZCEU+TDfQ7nQ/TRLYdNj1NKAqmZhY/FHTv/Nv0GZMqbzl+UnTYMPAj8FXt0=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mTW8M-00071t-T6; Thu, 23 Sep 2021 23:20:01 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#50763: Markdown blocks in Gnus messages References: <87a6k3sa68.fsf@mail.linkov.net> X-Now-Playing: Magnus Granberg & Skogen's _Let Pass My Weary Guiltless Ghost_: "Let Pass My Weary Guiltless Ghost" Date: Thu, 23 Sep 2021 23:19:58 +0200 In-Reply-To: <87a6k3sa68.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 23 Sep 2021 18:47:51 +0300") Message-ID: <871r5fxa4h.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > People use markdown blocks on e.g. Reddit, StackOverflow, etc. > and maybe this is the reason why such blocks are used in bug reports. > But without proper highlighting such bug reports as bug#50752 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50763 Cc: 50763@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > People use markdown blocks on e.g. Reddit, StackOverflow, etc. > and maybe this is the reason why such blocks are used in bug reports. > But without proper highlighting such bug reports as bug#50752 > are unreadable. This patch adds support for highlighting > of such blocks: Makes sense to me; please go ahead and push. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 24 02:45:38 2021 Received: (at 50763) by debbugs.gnu.org; 24 Sep 2021 06:45:38 +0000 Received: from localhost ([127.0.0.1]:56518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTexm-0001G3-5o for submit@debbugs.gnu.org; Fri, 24 Sep 2021 02:45:38 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:57225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTexk-0001Fl-L7; Fri, 24 Sep 2021 02:45:37 -0400 Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 1D4312000B; Fri, 24 Sep 2021 06:45:27 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#50763: Markdown blocks in Gnus messages Organization: LINKOV.NET References: <87a6k3sa68.fsf@mail.linkov.net> <871r5fxa4h.fsf@gnus.org> Date: Fri, 24 Sep 2021 09:45:08 +0300 In-Reply-To: <871r5fxa4h.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 23 Sep 2021 23:19:58 +0200") Message-ID: <87ilyqo4jv.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 50763 Cc: 50763@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 50763 fixed close 50763 28.0.50 quit >> People use markdown blocks on e.g. Reddit, StackOverflow, etc. >> and maybe this is the reason why such blocks are used in bug reports. >> But without proper highlighting such bug reports as bug#50752 >> are unreadable. This patch adds support for highlighting >> of such blocks: > > Makes sense to me; please go ahead and push. Pushed and closed. From unknown Fri Jun 20 07:21:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 22 Oct 2021 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator