[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 88c572de25 3/3: Create aliases for export region fu
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 88c572de25 3/3: Create aliases for export region functions |
Date: |
Thu, 29 Jun 2023 15:58:43 -0400 (EDT) |
branch: externals/org
commit 88c572de25894a7a012eee9c7316998135cf8f13
Author: Matthew Trzcinski <matt@excalamus.com>
Commit: Matthew Trzcinski <matt@excalamus.com>
Create aliases for export region functions
lisp/ox-ascii.el: Create alias `org-export-region-to-ascii` for
`org-ascii-convert-region-to-ascii`.
lisp/ox-html.el: Create alias `org-export-region-to-html` for
`org-html-convert-region-to-html`.
lisp/ox-latex.el: Create alias `org-export-region-to-latex` for
`org-latex-convert-region-to-latex`.
lisp/ox-md.el: Create alias `org-export-region-to-md` for
`org-md-convert-region-to-md`.
lisp/ox-texinfo.el: Create alias `org-export-region-to-texinfo` for
`org-texinfo-convert-region-to-texinfo`.
doc/org-manual.org: Change commands from "*-convert-region-*" form to
the "org-export-region-to-*" aliases. Add function index for aliases.
---
doc/org-manual.org | 18 ++++++++++++------
lisp/ox-ascii.el | 4 ++++
lisp/ox-html.el | 2 ++
lisp/ox-latex.el | 2 ++
lisp/ox-md.el | 1 +
lisp/ox-texinfo.el | 2 ++
6 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/doc/org-manual.org b/doc/org-manual.org
index e77809c90b..3a49917d78 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -16400,34 +16400,40 @@ Some export backends include commands to convert a
region of Org
formatted text to another format, such as HTML or LaTeX. The
conversion replaces the original source. Here are such commands:
-- ~org-ascii-convert-region-to-ascii~ ::
+- ~org-export-region-to-ascii~ ::
#+findex: org-ascii-convert-region-to-ascii
+ #+findex: org-export-region-to-ascii
Convert the selected region into ASCII.
-- ~org-ascii-convert-region-to-utf8~ ::
+- ~org-export-region-to-utf8~ ::
#+findex: org-ascii-convert-region-to-utf8
+ #+findex: org-export-region-to-utf8
Convert the selected region into UTF-8.
-- ~org-html-convert-region-to-html~ ::
+- ~org-export-region-to-html~ ::
#+findex: org-html-convert-region-to-html
+ #+findex: org-export-region-to-html
Convert the selected region into HTML.
-- ~org-latex-convert-region-to-latex~ ::
+- ~org-export-region-to-latex~ ::
#+findex: org-latex-convert-region-to-latex
+ #+findex: org-export-region-to-latex
Convert the selected region into LaTeX.
-- ~org-texinfo-convert-region-to-texinfo~ ::
+- ~org-export-region-to-texinfo~ ::
#+findex: org-texinfo-convert-region-to-texinfo
+ #+findex: org-export-region-to-texinfo
Convert the selected region into Texinfo.
-- ~org-md-convert-region-to-md~ ::
+- ~org-export-region-to-md~ ::
#+findex: org-md-convert-region-to-md
+ #+findex: org-export-region-to-md
Convert the selected region into Markdown.
The in-place conversion is particularly handy for quick conversion of
diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el
index 9d94241b36..1a63a34b1d 100644
--- a/lisp/ox-ascii.el
+++ b/lisp/ox-ascii.el
@@ -2098,6 +2098,8 @@ a communication channel."
(let ((org-ascii-charset 'ascii))
(org-export-replace-region-by 'ascii)))
+(defalias 'org-export-region-to-ascii #'org-ascii-convert-region-to-ascii)
+
;;;###autoload
(defun org-ascii-convert-region-to-utf8 ()
"Assume region has Org syntax, and convert it to UTF-8."
@@ -2105,6 +2107,8 @@ a communication channel."
(let ((org-ascii-charset 'utf-8))
(org-export-replace-region-by 'ascii)))
+(defalias 'org-export-region-to-utf8 #'org-ascii-convert-region-to-utf8)
+
;;;###autoload
(defun org-ascii-export-as-ascii
(&optional async subtreep visible-only body-only ext-plist)
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index b519402b13..58c8cad9be 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -3969,6 +3969,8 @@ to convert it."
(interactive)
(org-export-replace-region-by 'html))
+(defalias 'org-export-region-to-html #'org-html-convert-region-to-html)
+
;;;###autoload
(defun org-html-export-to-html
(&optional async subtreep visible-only body-only ext-plist)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 4708ab4b85..d6dc88197a 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -4199,6 +4199,8 @@ command to convert it."
(interactive)
(org-export-replace-region-by 'latex))
+(defalias 'org-export-region-to-latex #'org-latex-convert-region-to-latex)
+
;;;###autoload
(defun org-latex-export-to-latex
(&optional async subtreep visible-only body-only ext-plist)
diff --git a/lisp/ox-md.el b/lisp/ox-md.el
index 186c4e6828..7c0cb649a4 100644
--- a/lisp/ox-md.el
+++ b/lisp/ox-md.el
@@ -764,6 +764,7 @@ this command to convert it."
(interactive)
(org-export-replace-region-by 'md))
+(defalias 'org-export-region-to-md #'org-md-convert-region-to-md)
;;;###autoload
(defun org-md-export-to-markdown (&optional async subtreep visible-only)
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index 5502cd2894..d777e7a79a 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -1993,6 +1993,8 @@ command to convert it."
(interactive)
(org-export-replace-region-by 'texinfo))
+(defalias 'org-export-region-to-texinfo
#'org-texinfo-convert-region-to-texinfo)
+
(defun org-texinfo-compile (file)
"Compile a texinfo file.