From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: Can't email multipart/alternative anymore Date: Fri, 23 Oct 2015 08:05:15 -0400 Message-ID: <6sw6c7io5xg58k.fsf@pfdstudio.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpb62-0004gt-C8 for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 08:05:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpb5x-00058y-AA for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 08:05:22 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:40369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpb5x-00058u-4M for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 08:05:17 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 75C3A20701 for ; Fri, 23 Oct 2015 08:05:16 -0400 (EDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode@gnu.org Nick Dokos writes: > Peter Davis writes: > >> I just tried running org-mime-org-buffer-htmlize, which I have used >> successfully in the past. However, this time, I got an empty >> message buffer, and this in the mini-buffer: >> >> org-export-barf-if-invalid-backend: Unknown "nil" back-end: Aborting exp= ort >> >> Any clues? I haven't used this in a couple of months, but it did work >> at one time and, as far as I know, I haven't changed anything >> that should impact this. >> > > Works here: Org-mode version 8.3.2 (release_8.3.2-178-g96681f @ > /home/nick/elisp/org-mode/lisp/) Thanks, Nick. From the error, I'm guessing either a variable that's suppose= d to point to the backend got unset, or the backend itself is missing. > Maybe set debug-on-error and try again - send the backtrace if > you get one. Or maybe try with -q, load a minimal .emacs with > org and org-mime and try that. Here's the output from toggling debug-on-error: Debugger entered--Lisp error: (error "Unknown \"nil\" back-end: Aborting ex= port") signal(error ("Unknown \"nil\" back-end: Aborting export")) error("Unknown \"%s\" back-end: Aborting export" nil) org-export-barf-if-invalid-backend(nil) org-export-as(org nil nil t nil) org-export-string-as("#+STARTUP: showeverything logdone\n#+options: toc:n= il num:nil\n#+title: Org Mime Org Buffer HTMLize test\n\n* Intro\n\nHere's = a simple graph:\n\n#+BEGIN_SRC dot :file org-test.png :cmdline -Kdot -Tpng\= ndigraph G {\n rankdir=3DLR;\n node [shape=3Dbox];\n A -> B;\n B -> C;\= n C -> A;\n}\n#+END_SRC\n\nWeill org-mime-org-buffer-htmlize automatically= include the image?" org t) (org-mime-multipart (org-export-string-as (org-babel-trim (funcall bhook = body (if (eq fmt (quote html)) (quote org) (quote ascii)))) (if (eq fmt (qu= ote html)) (quote org) (quote ascii)) t) html) (insert (org-mime-multipart (org-export-string-as (org-babel-trim (funcal= l bhook body (if (eq fmt (quote html)) (quote org) (quote ascii)))) (if (eq= fmt (quote html)) (quote org) (quote ascii)) t) html) (mapconcat (quote id= entity) images "\n")) (let* ((org-link-file-path-type (quote absolute)) (org-export-htmlize-out= put-type (quote inline-css)) (html-and-images (org-mime-replace-images (org= -export-string-as (funcall bhook body (quote html)) (quote html) t) file)) = (images (cdr html-and-images)) (html (org-mime-apply-html-hook (car html-an= d-images)))) (insert (org-mime-multipart (org-export-string-as (org-babel-t= rim (funcall bhook body (if (eq fmt ...) (quote org) (quote ascii)))) (if (= eq fmt (quote html)) (quote org) (quote ascii)) t) html) (mapconcat (quote = identity) images "\n"))) (cond ((eq fmt (quote org)) (require (quote ox-org)) (insert (org-export-= string-as (org-babel-trim (funcall bhook body (quote org))) (quote org) t))= ) ((eq fmt (quote ascii)) (require (quote ox-ascii)) (insert (org-export-st= ring-as (concat "#+Title:\n" (funcall bhook body (quote ascii))) (quote asc= ii) t))) ((or (eq fmt (quote html)) (eq fmt (quote html-ascii))) (require (= quote ox-ascii)) (require (quote ox-org)) (let* ((org-link-file-path-type (= quote absolute)) (org-export-htmlize-output-type (quote inline-css)) (html-= and-images (org-mime-replace-images (org-export-string-as (funcall bhook bo= dy ...) (quote html) t) file)) (images (cdr html-and-images)) (html (org-mi= me-apply-html-hook (car html-and-images)))) (insert (org-mime-multipart (or= g-export-string-as (org-babel-trim (funcall bhook body ...)) (if (eq fmt ..= .) (quote org) (quote ascii)) t) html) (mapconcat (quote identity) images "= \n"))))) (let ((bhook (function (lambda (body fmt) (let ((hook ...)) (if (> ... 0)= (let ... ...) body))))) (fmt (if (symbolp fmt) fmt (intern fmt)))) (cond (= (eq fmt (quote org)) (require (quote ox-org)) (insert (org-export-string-as= (org-babel-trim (funcall bhook body (quote org))) (quote org) t))) ((eq fm= t (quote ascii)) (require (quote ox-ascii)) (insert (org-export-string-as (= concat "#+Title:\n" (funcall bhook body (quote ascii))) (quote ascii) t))) = ((or (eq fmt (quote html)) (eq fmt (quote html-ascii))) (require (quote ox-= ascii)) (require (quote ox-org)) (let* ((org-link-file-path-type (quote abs= olute)) (org-export-htmlize-output-type (quote inline-css)) (html-and-image= s (org-mime-replace-images (org-export-string-as ... ... t) file)) (images = (cdr html-and-images)) (html (org-mime-apply-html-hook (car html-and-images= )))) (insert (org-mime-multipart (org-export-string-as (org-babel-trim ...)= (if ... ... ...) t) html) (mapconcat (quote identity) images "\n")))))) org-mime-compose(#("#+STARTUP: showeverything logdone\n#+options: toc:nil= num:nil\n#+title: Org Mime Org Buffer HTMLize test\n\n* Intro\n\nHere's a = simple graph:\n\n#+BEGIN_SRC dot :file org-test.png :cmdline -Kdot -Tpng\nd= igraph G {\n rankdir=3DLR;\n node [shape=3Dbox];\n A -> B;\n B -> C;\n = C -> A;\n}\n#+END_SRC\n\nWeill org-mime-org-buffer-htmlize automatically i= nclude the image?\n\n" 0 33 (fontified t font-lock-fontified t face org-met= a-line) 33 34 (fontified t) 34 60 (fontified t font-lock-fontified t face o= rg-meta-line) 60 61 (fontified t) 61 69 (fontified t font-lock-fontified t = face org-document-info-keyword) 69 70 (fontified t) 70 102 (fontified t fon= t-lock-fontified t face org-document-title) 102 103 (fontified t font-lock-= fontified t face org-document-title) 103 104 (fontified t font-lock-fontifi= ed t) 104 106 (fontified t font-lock-fontified t face org-level-1) 106 111 = (fontified t font-lock-fontified t face org-level-1) 111 112 (fontified t f= ont-lock-fontified t) 112 113 (fontified t font-lock-fontified t) 113 135 (= fontified t font-lock-fontified t) 135 136 (fontified t font-lock-fontified= t) 136 137 (fontified t) 137 193 (font-lock-fontified t org-category "deta= ils-2015-10" fontified t font-lock-multiline t face org-block-begin-line) 1= 93 270 (font-lock-fontified t org-category "details-2015-10" fontified t fo= nt-lock-multiline t face org-block) 270 271 (font-lock-fontified t org-cate= gory "details-2015-10" fontified t font-lock-multiline t face org-block) 27= 1 280 (font-lock-fontified t org-category "details-2015-10" fontified t fon= t-lock-multiline t face org-block-end-line) 280 281 (org-category "details-= 2015-10" fontified t rear-nonsticky t face org-block-end-line) 281 282 (fon= tified t) 282 349 (fontified t) 349 350 (fontified t)) html "/Users/davisp/= Dropbox/HMH/test.org" nil "test") (let* ((region-p (org-region-active-p)) (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 r= egion-p (region-beginning)) (save-excursion (goto-char (point-min))))) (bod= y-end (or (and region-p (region-end)) (point-max))) (temp-body-file (make-t= emp-file "org-mime-export")) (body (buffer-substring body-start body-end)))= (org-mime-compose body (or fmt (quote org)) file nil subject)) org-mime-send-buffer(html) org-mime-org-buffer-htmlize() call-interactively(org-mime-org-buffer-htmlize record nil) command-execute(org-mime-org-buffer-htmlize record) execute-extended-command(nil "org-mime-org-buffer-htmlize") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command)