emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* PATCH: make org-mime-htmlize argument optional
@ 2015-07-18 20:24 Matt Price
  0 siblings, 0 replies; only message in thread
From: Matt Price @ 2015-07-18 20:24 UTC (permalink / raw)
  To: Org Mode


[-- Attachment #1.1: Type: text/plain, Size: 102 bytes --]

At present, it's difficult to call org-mime-htmlize noninteractively.  This
trivial patch fixes that.

[-- Attachment #1.2: Type: text/html, Size: 140 bytes --]

[-- Attachment #2: 0003-org-mime.el-fix-org-mime-htmlize.patch --]
[-- Type: text/x-patch, Size: 1160 bytes --]

From ebe5dc40bafb55d019d43efe89957c3b50379553 Mon Sep 17 00:00:00 2001
From: Matt Price <matt.price@utoronto.ca>
Date: Sat, 18 Jul 2015 16:14:33 -0400
Subject: [PATCH 3/3] org-mime.el: fix org-mime-htmlize

* org-mime.el: previously, org-mime-htmlize would throw an error if ARG
  was absent, and thus could not be called uninteractively.  ARG is now optional
---
 contrib/lisp/org-mime.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el
index 197c712..43ca041 100644
--- a/contrib/lisp/org-mime.el
+++ b/contrib/lisp/org-mime.el
@@ -194,10 +194,10 @@ and images in a multipart/related part."
       str)
      html-images)))
 
-(defun org-mime-htmlize (arg)
+(defun org-mime-htmlize (&optional arg)
   "Export a portion of an email body composed using `mml-mode' to
-html using `org-mode'.  If called with an active region only
-export that region, otherwise export the entire body."
+  html using `org-mode'.  If called with an active region only
+  export that region, otherwise export the entire body."
   (interactive "P")
   (require 'ox-org)
   (require 'ox-html)
-- 
2.4.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-18 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-18 20:24 PATCH: make org-mime-htmlize argument optional Matt Price

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).