emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/org-mime 0752659f7a 042/118: No drawer exporting (default


From: ELPA Syncer
Subject: [nongnu] elpa/org-mime 0752659f7a 042/118: No drawer exporting (default since Emacs 25)
Date: Wed, 5 Jan 2022 07:58:45 -0500 (EST)

branch: elpa/org-mime
commit 0752659f7a19cead182584fabc9544464f69b83e
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    No drawer exporting (default since Emacs 25)
---
 README.org  | 2 +-
 org-mime.el | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/README.org b/README.org
index 61112311a2..e5c0a15f73 100644
--- a/README.org
+++ b/README.org
@@ -1,4 +1,4 @@
-* org-mime v0.1.0
+* org-mime v0.1.1
 org-mime can be used to send HTML email using Org-mode HTML export.
 
 This approximates a WYSiWYG HTML mail editor from within Emacs, and can be 
useful for sending tables, fontified source code, and inline images in email.
diff --git a/org-mime.el b/org-mime.el
index 8140b79c3b..0bc5a0ebf5 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -6,7 +6,7 @@
 ;; Maintainer: Chen Bin (redguardtoo)
 ;; Keywords: mime, mail, email, html
 ;; Homepage: http://github.com/org-mime/org-mime
-;; Version: 0.1.0
+;; Version: 0.1.1
 ;; Package-Requires: ((emacs "24.3") (cl-lib "0.5"))
 
 ;; This file is not part of GNU Emacs.
@@ -177,7 +177,10 @@ You could use either `org-up-heading-safe' or 
`org-back-to-heading'.")
 
 (defun org-mime--export-string (s fmt &optional opts)
   "Export string S into HTML format.  OPTS is export options."
-  (let* (rlt)
+  (let* (rlt
+         ;; Emacs 25+ prefer exporting drawer by default
+         ;; obviously not acception in exporting to mail body
+         (org-export-with-drawers nil))
     (if org-mime-debug (message "org-mime--export-string called => %s" opts))
     ;; we won't export title from org file anyway
     (if opts (setq opts (plist-put opts 'title nil)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]