From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-mime: make plain/text mime export a choice Date: Sat, 05 Sep 2015 10:49:25 +0200 Message-ID: <87lhcljlnu.fsf@nicolasgoaziou.fr> References: <87a8t64neo.fsf@nicolasgoaziou.fr> <87fv2uko6p.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZY98W-0001bB-Mn for emacs-orgmode@gnu.org; Sat, 05 Sep 2015 04:47:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZY98V-00073s-Pu for emacs-orgmode@gnu.org; Sat, 05 Sep 2015 04:47:48 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:51547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZY98V-00073o-JP for emacs-orgmode@gnu.org; Sat, 05 Sep 2015 04:47:47 -0400 In-Reply-To: (Jon Miller's message of "Fri, 04 Sep 2015 12:17:46 -0700") 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: Jon Miller Cc: Will O'Brien , emacs-orgmode@gnu.org Jon Miller writes: > I'm willing to help hack out a solution. I just need a hint to help me > along. > > - I specifically do not know how to produce a latin1 or utf8 export via the > existing `org-export-string-as' function call that is being used. Use EXT-PLIST argument, e.g., (org-export-string-as string 'ascii nil '(:ascii-charset utf-8)) (org-export-string-as string 'ascii nil '(:ascii-charset latin1)) (org-export-string-as string 'ascii nil '(:ascii-charset ascii)) > - As for updating the parameter to support any valid back-end, I assume that > means updating the defcustom from a choice list to a symbol that is then > later checked as a valid back-end and defaults to a simple choice when it > is non-valid? We could accept any symbol, try to (require 'ox-SYMBOL) and then (org-export-string-as string SYMBOL) Regards,