From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode Subject: bug#68687: [PATCH] Use text/org media type Date: Fri, 02 Feb 2024 09:15:18 +0200 Message-ID: <8634ubz69l.fsf@gnu.org> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28137"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68687@debbugs.gnu.org, yantar92@posteo.net, emacs-orgmode@gnu.org, manikulin@gmail.com, stefankangas@gmail.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 02 08:16:11 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rVnmU-000796-U7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Feb 2024 08:16:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVnmE-0005hE-Jq; Fri, 02 Feb 2024 02:15:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVnmC-0005dm-Cc for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:15:53 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVnmB-0004qW-Ik for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:15:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVnmM-0001LR-3b for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2024 07:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68687-submit@debbugs.gnu.org id=B68687.17068581555140 (code B ref 68687); Fri, 02 Feb 2024 07:16:02 +0000 Original-Received: (at 68687) by debbugs.gnu.org; 2 Feb 2024 07:15:55 +0000 Original-Received: from localhost ([127.0.0.1]:43508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVnmE-0001Kq-QY for submit@debbugs.gnu.org; Fri, 02 Feb 2024 02:15:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVnmB-0001KZ-HW for 68687@debbugs.gnu.org; Fri, 02 Feb 2024 02:15:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVnlu-0004o1-QW; Fri, 02 Feb 2024 02:15:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XefKbaZAKD6xne5eXv5AaAwakClhlfq1C2dzJrpE8qc=; b=KNml7aXc8LAO QOtV9te3g0ZGNMuuiiQFtn79gwpPyNIugsm2yL7Dj2JMrVBiB4GGptT0cDFWwvjt+JAw12X0q0FIY k95Cs52oTygP86u/3oUr3XRRg+ALmV2O6PdTtLT6JkYDmImbYoVi+nUViv1ayxf9D/dAJA84JfLWY MMVWfSMUS+lbL3mMZ5flKaGahzLZyoBVhO6YDPSqmOgRYXIoyBUKc4tJrLonW2KcGw9mYVJR02yNl +xzvsQDPT48vA0gjsVLj4zhYxHCAOPX1KUdd5evrvW5D3Qwe7mMUMHr5iU2HWWyxnm18AXMH6Mke1 rVcZYqKauqWujH3V/AxtxA==; In-Reply-To: (message from Richard Stallman on Thu, 01 Feb 2024 22:40:06 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279321 gmane.emacs.orgmode:159525 Archived-At: > From: Richard Stallman > Cc: eliz@gnu.org, manikulin@gmail.com, 68687@debbugs.gnu.org, > emacs-orgmode@gnu.org, stefankangas@gmail.com > Date: Thu, 01 Feb 2024 22:40:06 -0500 > > > It may or may not depending on user customization `mm-inline-media-tests'. > > Just like with text/html, application/javascript, text/x-sh, images, > > etc. > > I looked at the definition of that option, and at the function > `mm-display-inline-fontify' that it calls. That function is > nontrivial, so I can't tell, in a short time, what it does and doesn't > do. AFAIU, that function copies a portion of buffer text to a temporary buffer, determines the correct major-mode for that text, then invokes that major-mode and fontifies the text according to that mode, and finally copies the fontified text back into the original buffer. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id EBg0F8yWvGUhBAEAqHPOHw:P1 (envelope-from ) for ; Fri, 02 Feb 2024 08:16:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id EBg0F8yWvGUhBAEAqHPOHw (envelope-from ) for ; Fri, 02 Feb 2024 08:16:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=KNml7aXc; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706858188; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XefKbaZAKD6xne5eXv5AaAwakClhlfq1C2dzJrpE8qc=; b=Q/VjFlu0zUfllcxVVWqZN0DB5pBr0Uo42wk8t+ZU9QyXU5J6/cD2ZM1BYM81K3hvIYcn6f oubEtZKx1jE1MrZkVFNfZXSiSw9avPB0wBRtMz5hmPwH62Nebd0+BVXb8uORy8OKli3eff RupeXibz0OnOcvMQAfG48uk+XFT1irgps3gzZtF7dvnAKexl7qjYv2ddW8uKgKlL8Sudz2 BPynn5+YjhGiEJi94N+64AVx7Bt1RAg++mFkTkyRhc6ty4CfiTZIHTj/pvvSjoh95pbSAL zBxRH+gQiFO4TUqPtAFo1vxk2b9+rbUuDyLCXG25z2u7Tl3S1P7Ft7nGKcMwbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=KNml7aXc; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706858188; a=rsa-sha256; cv=none; b=PMI27R9H+rZX5uNLwxCPWlq9eezHKtUefff1zmMejD+lR+qi8+4HaFQIQmq/Wk5U2pM/xM 2XRMwX6NXTr6UatFN8tE9KsUd0+OMPfccOJoMWM+Hk5S7aofC6Cppn2Z63L7JMoLCQjf/g idQl99+LkGilIyPAO1+ps7yio9JwUPYG0weqjDqpLJpukktKmXC5iYu/oSNQC7AScei3dg arutmJV2YsiWoIuHOUpKJAlElAfBeJpDyg5f/mCHOR4vTyQ2cZ8mPBiNr2XhevYAti1YU+ 2IssvCkh/vlzQTI4XvvO2lqQlGY6aHr+cOMzzg7Y8DvJo8aqBnZ3/qEgcj4WHg== 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 4DD6B32462 for ; Fri, 2 Feb 2024 08:16:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVnlw-0005MU-P6; Fri, 02 Feb 2024 02:15:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVnlv-0005M3-Tx for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 02:15:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVnlu-0004o1-QW; Fri, 02 Feb 2024 02:15:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XefKbaZAKD6xne5eXv5AaAwakClhlfq1C2dzJrpE8qc=; b=KNml7aXc8LAO QOtV9te3g0ZGNMuuiiQFtn79gwpPyNIugsm2yL7Dj2JMrVBiB4GGptT0cDFWwvjt+JAw12X0q0FIY k95Cs52oTygP86u/3oUr3XRRg+ALmV2O6PdTtLT6JkYDmImbYoVi+nUViv1ayxf9D/dAJA84JfLWY MMVWfSMUS+lbL3mMZ5flKaGahzLZyoBVhO6YDPSqmOgRYXIoyBUKc4tJrLonW2KcGw9mYVJR02yNl +xzvsQDPT48vA0gjsVLj4zhYxHCAOPX1KUdd5evrvW5D3Qwe7mMUMHr5iU2HWWyxnm18AXMH6Mke1 rVcZYqKauqWujH3V/AxtxA==; Date: Fri, 02 Feb 2024 09:15:18 +0200 Message-Id: <8634ubz69l.fsf@gnu.org> From: Eli Zaretskii To: rms@gnu.org Cc: yantar92@posteo.net, manikulin@gmail.com, 68687@debbugs.gnu.org, emacs-orgmode@gnu.org, stefankangas@gmail.com In-Reply-To: (message from Richard Stallman on Thu, 01 Feb 2024 22:40:06 -0500) Subject: Re: bug#68687: [PATCH] Use text/org media type References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -10.12 X-Spam-Score: -10.12 X-Migadu-Queue-Id: 4DD6B32462 X-Migadu-Scanner: mx12.migadu.com X-TUID: GTu+VU42nFo3 > From: Richard Stallman > Cc: eliz@gnu.org, manikulin@gmail.com, 68687@debbugs.gnu.org, > emacs-orgmode@gnu.org, stefankangas@gmail.com > Date: Thu, 01 Feb 2024 22:40:06 -0500 > > > It may or may not depending on user customization `mm-inline-media-tests'. > > Just like with text/html, application/javascript, text/x-sh, images, > > etc. > > I looked at the definition of that option, and at the function > `mm-display-inline-fontify' that it calls. That function is > nontrivial, so I can't tell, in a short time, what it does and doesn't > do. AFAIU, that function copies a portion of buffer text to a temporary buffer, determines the correct major-mode for that text, then invokes that major-mode and fontifies the text according to that mode, and finally copies the fontified text back into the original buffer.