From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [feature proposal] Export in foreign buffers - ASCII (ox-ascii) Date: Thu, 25 Oct 2018 16:56:51 +0200 Message-ID: <877ei6gjm4.fsf@nicolasgoaziou.fr> References: <8422BCDC-5B51-417D-B8DF-9D47BE2896FB@condition-alpha.com> <87mur3ygdi.fsf@nicolasgoaziou.fr> <15D92B2B-9EA8-4EF2-BB6F-86760635303C@condition-alpha.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFh4N-0002yu-5d for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 10:57:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFh4A-0007tt-Ea for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 10:56:57 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:54131) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFh4A-0007pu-6A for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 10:56:54 -0400 In-Reply-To: <15D92B2B-9EA8-4EF2-BB6F-86760635303C@condition-alpha.com> (Alexander Adolf's message of "Wed, 24 Oct 2018 19:03:35 +0200") 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" To: Alexander Adolf Cc: emacs-orgmode@gnu.org Hello, Alexander Adolf writes: > ---------------------------------------------------------------------- > (defun org-ascii-convert-region-to-ascii () > "Assume the current region has Org syntax, and convert it to > plain ASCII. This can be used in any buffer. For example, you > could write an itemized list or a table in Org syntax in a mail > buffer and then use this command to convert it." > (interactive) > (let ((org-ascii-charset 'ascii)) > (org-export-replace-region-by 'ascii))) > > (defun org-ascii-convert-region-to-utf8 () > "Assume the current region has Org syntax, and convert it to > UTF-8. This can be used in any buffer. For example, you could > write an itemized list or a table in Org syntax in a mail buffer > and then use this command to convert it." > (interactive) > (let ((org-ascii-charset 'utf-8)) > (org-export-replace-region-by 'ascii))) > ---------------------------------------------------------------------- I added the functions to "ox-ascii.el", with an autoload cookie, a simplified docstring, and an entry in the manual. Thank you. Regards, -- Nicolas Goaziou