From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: :EXPORT_FILE_NAME: in new exporter possible? Date: Mon, 25 Mar 2013 16:09:23 +0100 Message-ID: References: <87620kwyuj.fsf@ericabrahamsen.net> <87k3p073ba.fsf@med.uni-goettingen.de> <8738vo1go1.fsf@bzg.ath.cx> <878v5chvdj.fsf@bzg.ath.cx> <87620fo7bi.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK91W-0004y7-8f for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 11:09:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UK91P-0003Mz-Hj for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 11:09:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:45442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK91P-0003Mq-BH for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 11:09:15 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UK91f-0002LG-OU for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 16:09:31 +0100 Received: from p5b14d360.dip.t-dialin.net ([91.20.211.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Mar 2013 16:09:31 +0100 Received: from Stromeko by p5b14d360.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Mar 2013 16:09:31 +0100 In-Reply-To: <87620fo7bi.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am 25.03.2013 15:57, schrieb Bastien: >> I'm not entirely sure what Gnus does to trigger that foray into Org >> (a quick glance in the documentation didn't show anything), but if >> anything this indicates that we might need a "safe mode" for Org to >> open untrusted files. > > Feel free to propose a better behavior here. As I said, I don't even know why Gnus decides it should treat this mail as an Org file. From the sources of Gnus, it appears that it should only do this if the MIME type was text/x-org. Rainers mail didn't have this MIME type nor was it a multipart MIME mail that had such a part, yet Gnus triggered the buffer with "Org" as the major mode, which seems to indicate that the MIME type must somehow have been inferred. I can prevent that using orgstruct-mode instead, but as I proposed already there should be a "safe" variant of org-mode (a derived mode perhaps) that doesn't load any axtra files and doesn't run any source blocks. Of course, Gnus then should use this mode (it is only meant for proper fontification anyway, which I suppose must be possible without firing a whole major mode). Regards, -- Achim. (on the road :-)