emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: [PATCH] make org-mime-htmlize argument optional
Date: Tue, 21 Jul 2015 08:56:33 -0400	[thread overview]
Message-ID: <CAN_Dec80wxyvP1i=W0CbX62Z_yX8PV=6_ft=M_Cnn9F+51oZKA@mail.gmail.com> (raw)


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

(resending in case improper subject line led to it being overlooked}

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

[-- Attachment #1.2: Type: text/html, Size: 285 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


             reply	other threads:[~2015-07-21 12:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-21 12:56 Matt Price [this message]
2015-07-21 13:07 ` [PATCH] make org-mime-htmlize argument optional Rasmus

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='CAN_Dec80wxyvP1i=W0CbX62Z_yX8PV=6_ft=M_Cnn9F+51oZKA@mail.gmail.com' \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).