From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [ANN] org-mime -- using orgmode to send html mail? Date: Wed, 14 Apr 2010 09:12:59 -0600 Message-ID: <87iq7u9if8.fsf@gmail.com> References: <87eij05had.fsf@gmail.com> <878w98w4sz.fsf@stats.ox.ac.uk> <87sk7f8d6x.fsf@gmail.com> <87aatizcef.fsf@gmail.com> <71591C25-1B0B-4162-A53C-16DB9436C0F3@gmail.com> <8739z9c3vq.fsf@gmail.com> <8739z44lyl.fsf@gmail.com> <87bpdoio0j.fsf@gmail.com> <87mxx6hmvw.fsf@gmail.com> <87pr225sxu.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O24HC-0000NM-Or for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 11:13:14 -0400 Received: from [140.186.70.92] (port=58357 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O24H8-0000My-Af for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 11:13:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O24H5-0004mT-TD for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 11:13:10 -0400 Received: from mail-bw0-f225.google.com ([209.85.218.225]:61000) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O24H5-0004m1-CK for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 11:13:07 -0400 Received: by bwz25 with SMTP id 25so271091bwz.8 for ; Wed, 14 Apr 2010 08:13:06 -0700 (PDT) In-Reply-To: <87pr225sxu.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 14 Apr 2010 09:39:25 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: e.fraga@ucl.ac.uk Cc: emacs-orgmode@gnu.org Hi Eric, Thanks for the explicit feedback, it's very helpful. Eric S Fraga writes: [...] > Interesting. This fails for me: > > 1. emacs -Q > 2. in *scratch*: set load path appropriately, (require 'org-install), (require 'org-mime) > 3. visit org test buffer > 4. invoke org-mime-org-buffer-htmlize which fails with > > org-mime-file: Symbol's function definition is void: case > > although the HTML has been created and pushed to the kill ring > according to the *Messages* buffer. > > 5. so try (require 'cl) Ah, thanks, I've added (require 'cl) to org-mime.el > > 6. try org-mime-org-buffer-htmlize again and now there is no error but > the output is: > I see the problem here, I've just pushed up a change to org-mime.el which will ensure that your html mime alternative will no longer be nil. However, you will continue to have "t" as your text alternative until you ensure that you are loading the latest version of the core of org-mode, as described in my recent email to Andrew. Please let me know how this goes. Best -- Eric > > ,---- > | <#multipart type=alternative><#part type=text/plain> > | * Testing mime in org > | > | This file will provide a simple test for the new mime encoding and > | exporting features in org-mode. > | > | The most interesting aspect may be the use of \(y = \sum_i^n x_i^2\) > | and, please, see the figure: > | > | [[./mip.png]] > | <#part type=text/html>nil<#/multipart> > | <#part type="image/png" filename="/home/ucecesf/s/test/mip.png" id="<_home_ucecesf_s_test_mip.png>"> > | <#/part> > `---- > > I hope some of this might help identify where the problem may lie? I > can obviously send you my full org environment if you wish. I'm also > happy to debug the org-mime code directly if you give me some idea of > where to look! > > Thanks, > eric