emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Jon Miller <jonebird@gmail.com>
Cc: Will O'Brien <will.08rien@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: [PATCH] org-mime: make plain/text mime export a choice
Date: Sat, 05 Sep 2015 10:49:25 +0200	[thread overview]
Message-ID: <87lhcljlnu.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <vl8fy4gmvvs5.fsf@crad-millertime.qualcomm.com> (Jon Miller's message of "Fri, 04 Sep 2015 12:17:46 -0700")

Jon Miller <jonebird@gmail.com> 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,

      reply	other threads:[~2015-09-05  8:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.109.1441036833.32276.emacs-orgmode@gnu.org>
2015-09-01  0:55 ` [PATCH] org-mime: make plain/text mime export a choice Jon Miller
2015-09-01  7:19   ` Nicolas Goaziou
2015-09-01  8:07     ` Eric Abrahamsen
2015-09-01 15:26       ` Nicolas Goaziou
2015-09-01 16:30         ` Eric Abrahamsen
2015-09-01 18:36           ` Nicolas Goaziou
2015-09-02  2:28             ` Eric Abrahamsen
2015-09-01 15:46     ` Jon Miller
2015-09-01 21:01       ` Jon Miller
2015-09-02 18:57     ` Will O'Brien
2015-09-04  0:30       ` Jon Miller
2015-09-04 18:57         ` Nicolas Goaziou
2015-09-04 19:17           ` Jon Miller
2015-09-05  8:49             ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lhcljlnu.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=jonebird@gmail.com \
    --cc=will.08rien@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).