* [PATCH] org-mime slightly out of date
@ 2014-05-09 1:50 Eric Abrahamsen
2014-05-09 12:41 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Eric Abrahamsen @ 2014-05-09 1:50 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 194 bytes --]
Hi,
org-mime still includes a call to `org-export-grab-title-from-buffer',
which doesn't exist any more. The attached patch does the same the
way org-export currently does it (I think).
Eric
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Update-org-mime-to-current-export-functions.patch --]
[-- Type: text/x-diff, Size: 1298 bytes --]
From c967afb70bd7c9039c09d7c7f22388e1eced30fa Mon Sep 17 00:00:00 2001
From: Eric Abrahamsen <eric@ericabrahamsen.net>
Date: Thu, 8 May 2014 22:32:01 +0800
Subject: [PATCH] Update org-mime to current export functions
* /contrib/lisp/org-mime.el (org-mime-send-buffer):
This function was using `org-export-grab-title-from-buffer', which no
longer exists.
---
contrib/lisp/org-mime.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el
index b0007ac..5f874d9 100644
--- a/contrib/lisp/org-mime.el
+++ b/contrib/lisp/org-mime.el
@@ -269,8 +269,10 @@ export that region, otherwise export the entire body."
(defun org-mime-send-buffer (&optional fmt)
(run-hooks 'org-mime-send-buffer-hook)
(let* ((region-p (org-region-active-p))
- (subject (org-export-grab-title-from-buffer))
- (file (buffer-file-name (current-buffer)))
+ (file (buffer-file-name (current-buffer)))
+ (subject (if (not file) (buffer-name (buffer-base-buffer))
+ (file-name-sans-extension
+ (file-name-nondirectory file))))
(body-start (or (and region-p (region-beginning))
(save-excursion (goto-char (point-min)))))
(body-end (or (and region-p (region-end)) (point-max)))
--
1.9.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] org-mime slightly out of date
2014-05-09 1:50 [PATCH] org-mime slightly out of date Eric Abrahamsen
@ 2014-05-09 12:41 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-05-09 12:41 UTC (permalink / raw)
To: Eric Abrahamsen; +Cc: emacs-orgmode
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> org-mime still includes a call to `org-export-grab-title-from-buffer',
> which doesn't exist any more. The attached patch does the same the
> way org-export currently does it (I think).
Applied, thanks!
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-09 12:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-09 1:50 [PATCH] org-mime slightly out of date Eric Abrahamsen
2014-05-09 12:41 ` Bastien
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).