[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [feature proposal] Export in foreign buffers - ASCII (ox-ascii)
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [feature proposal] Export in foreign buffers - ASCII (ox-ascii) |
Date: |
Thu, 25 Oct 2018 16:56:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Alexander Adolf <address@hidden> 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