From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Hermans Subject: org-export-generic: accessing todo keywords Date: Mon, 16 Nov 2009 17:43:59 -0500 Message-ID: <4ebad96b0911161443mc47b4a4g935971faf5f106f2@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1745295642==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAAIm-0007zD-BM for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 17:44:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAAIl-0007yc-SZ for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 17:44:03 -0500 Received: from [199.232.76.173] (port=48539 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAAIl-0007yD-K5 for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 17:44:03 -0500 Received: from fg-out-1718.google.com ([72.14.220.152]:32804) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAAIj-0004bT-QZ for emacs-orgmode@gnu.org; Mon, 16 Nov 2009 17:44:02 -0500 Received: by fg-out-1718.google.com with SMTP id e21so1401533fga.12 for ; Mon, 16 Nov 2009 14:44:00 -0800 (PST) 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: hardaker@users.sourceforge.net Cc: emacs-orgmode@gnu.org --===============1745295642== Content-Type: multipart/alternative; boundary=0016e6d7e345dd0382047884bee2 --0016e6d7e345dd0382047884bee2 Content-Type: text/plain; charset=UTF-8 Hi Wes, I'm playing with your "org-export-generic" to create an exporter for Confluence (my humble beginning here: http://gist.github.com/236387), I was wondering if there was a directive within "org-export-generic" to access "org-todo-keyword" items? I did not see anything. I'd like to add formatting to those keywords. Thanks Tim --0016e6d7e345dd0382047884bee2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Wes,

I'm playing with your "org-export-generic" to = create an exporter for Confluence (my humble beginning here: http://gist.github.com/236387),

I wa= s wondering if there was a directive within "org-export-generic" = to access "org-todo-keyword" items?=C2=A0 I did not see anything.=

I'd like to add formatting to those keywords.

Thanks

= Tim
--0016e6d7e345dd0382047884bee2-- --===============1745295642== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1745295642==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wes Hardaker Subject: Re: org-export-generic: accessing todo keywords Date: Tue, 17 Nov 2009 17:16:00 -0800 Message-ID: References: <4ebad96b0911161443mc47b4a4g935971faf5f106f2@mail.gmail.com> 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 1NAZ9Y-0001C3-Ue for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 20:16:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAZ9T-00018p-32 for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 20:16:11 -0500 Received: from [199.232.76.173] (port=55992 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAZ9S-00018e-Ue for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 20:16:06 -0500 Received: from mail.hardakers.net ([168.150.236.43]:57895) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAZ9S-00026L-Ge for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 20:16:06 -0500 In-Reply-To: <4ebad96b0911161443mc47b4a4g935971faf5f106f2@mail.gmail.com> (Tim Hermans's message of "Mon, 16 Nov 2009 17:43:59 -0500") 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: Tim Hermans Cc: emacs-orgmode@gnu.org, hardaker@users.sourceforge.net >>>>> On Mon, 16 Nov 2009 17:43:59 -0500, Tim Hermans said: TH> I was wondering if there was a directive within "org-export-generic" to TH> access "org-todo-keyword" items? I did not see anything. TH> I'd like to add formatting to those keywords. There isn't right now, though I've admittedly wanted to add support for that. I've been swamped with other things lately and haven't gotten much work done on org-export-generic. Ironically, I may work on it in the next few weeks but I'm not sure todo keywords will fall into the list much (we'll see). I was just thinking earlier today, in fact, that I'd love to be able to change things like TODO words. You can change checkboxes right now, but not TODO words. -- \ Wes Hardaker http://pontifications.hardakers.net / \_____ "In the bathtub of history the truth is harder to hold than ________/ \_______ the soap, and much more difficult to find." _______/ \_________ -- Terry Pratchett ______________/ \__________________/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Hermans Subject: Re: org-export-generic: accessing todo keywords Date: Wed, 18 Nov 2009 15:33:03 -0500 Message-ID: <4ebad96b0911181233p71030440u9f43df394e911f99@mail.gmail.com> References: <4ebad96b0911161443mc47b4a4g935971faf5f106f2@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1314355442==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NArDE-0000PV-8q for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 15:33:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NArD8-0000Np-QL for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 15:33:11 -0500 Received: from [199.232.76.173] (port=37337 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NArD8-0000Na-GJ for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 15:33:06 -0500 Received: from mail-bw0-f215.google.com ([209.85.218.215]:33298) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NArD7-0005k2-JM for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 15:33:06 -0500 Received: by bwz7 with SMTP id 7so1733240bwz.26 for ; Wed, 18 Nov 2009 12:33:04 -0800 (PST) In-Reply-To: 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: Wes Hardaker Cc: emacs-orgmode@gnu.org, hardaker@users.sourceforge.net --===============1314355442== Content-Type: multipart/alternative; boundary=0016e6d96d2040a1090478ab2664 --0016e6d96d2040a1090478ab2664 Content-Type: text/plain; charset=UTF-8 Thanks Wes. Great work on "org-export-generic"! One other thing while you're at it: on line 443 of the current version (last updated in 6.25trans) you use the function "set-alist": (defun org-set-generic-type (type definition) "Adds a TYPE and DEFINITION to the existing list of defined generic export definitions." (set-alist 'org-generic-alist type definition)) I believe this is defined in the APEL package which is included in XEmacs, but not in later versions of GNU Emacs. I took note from a post by James TD Smith on this list a while back and changed this to use "aput". This is included in "assoc.el" which is included in both XEmacs and GNU Emacs. It does exactly the same thing. It would be more portable. Thanks, TH On Tue, Nov 17, 2009 at 8:16 PM, Wes Hardaker wrote: > >>>>> On Mon, 16 Nov 2009 17:43:59 -0500, Tim Hermans > said: > > TH> I was wondering if there was a directive within "org-export-generic" to > TH> access "org-todo-keyword" items? I did not see anything. > > TH> I'd like to add formatting to those keywords. > > There isn't right now, though I've admittedly wanted to add support for > that. I've been swamped with other things lately and haven't gotten > much work done on org-export-generic. Ironically, I may work on it in > the next few weeks but I'm not sure todo keywords will fall into the > list much (we'll see). > > I was just thinking earlier today, in fact, that I'd love to be able to > change things like TODO words. You can change checkboxes right now, but > not TODO words. > > -- > \ Wes Hardaker > http://pontifications.hardakers.net / > \_____ "In the bathtub of history the truth is harder to hold than > ________/ > \_______ the soap, and much more difficult to find." _______/ > \_________ -- Terry Pratchett ______________/ > \__________________/ > --0016e6d96d2040a1090478ab2664 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Wes.=C2=A0 Great work on "org-export-generic"!

One = other thing while you're at it:=C2=A0 on line 443 of the current versio= n (last updated in 6.25trans) you use the function "set-alist":
=C2=A0=C2=A0=C2=A0=C2=A0 (defun org-set-generic-type (type definition= )
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "Adds a TYPE and DEFINITION to th= e existing list of defined generic=C2=A0 export definitions."
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (set-alist 'org-generic-alist t= ype definition))

I believe this is defined in the APEL package which= is included in XEmacs, but not in later versions of GNU Emacs.

I took note from a post by James TD Smith on this list a while back and= changed this to use "aput".=C2=A0 This is included in "asso= c.el" which is included in both XEmacs and GNU Emacs.=C2=A0 It does ex= actly the same thing.=C2=A0 It would be more portable.

Thanks,

TH


On Tue, Nov 17,= 2009 at 8:16 PM, Wes Hardaker <wjhns209@hardakers.net> wrote:
>>>>> On Mon, 16 Nov 2009 17:43:59 -0500, Tim Hermans <thermans@gmail.com> said:

TH> I was wondering if there was a directive within "org-export-gen= eric" to
TH> access "org-todo-keyword" items? =C2=A0I did not see anyth= ing.

TH> I'd like to add formatting to those keywords.

There isn't right now, though I've admittedly wanted to add support= for
that. =C2=A0I've been swamped with other things lately and haven't = gotten
much work done on org-export-generic. =C2=A0Ironically, I may work on it in=
the next few weeks but I'm not sure todo keywords will fall into the list much (we'll see).

I was just thinking earlier today, in fact, that I'd love to be able to=
change things like TODO words. =C2=A0You can change checkboxes right now, b= ut
not TODO words.

--
\ Wes Hardaker =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://pontifications.hardakers.net /
=C2=A0\_____ "In the bathtub of history the truth is harder to hold th= an ________/
=C2=A0 =C2=A0 =C2=A0 \_______ the soap, and much more difficult to find.&q= uot; _______/
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \_________ -- Terry Pratc= hett ______________/
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 \__________________/

--0016e6d96d2040a1090478ab2664-- --===============1314355442== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1314355442==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wes Hardaker Subject: Re: org-export-generic: accessing todo keywords Date: Thu, 19 Nov 2009 07:20:08 -0800 Message-ID: References: <4ebad96b0911161443mc47b4a4g935971faf5f106f2@mail.gmail.com> <4ebad96b0911181233p71030440u9f43df394e911f99@mail.gmail.com> 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 1NB8nz-00028p-9Y for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 10:20:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NB8nu-00024u-DN for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 10:20:18 -0500 Received: from [199.232.76.173] (port=40698 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB8nu-00024m-5Q for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 10:20:14 -0500 Received: from mail.hardakers.net ([168.150.236.43]:56231) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NB8nt-0003hm-J3 for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 10:20:13 -0500 In-Reply-To: <4ebad96b0911181233p71030440u9f43df394e911f99@mail.gmail.com> (Tim Hermans's message of "Wed, 18 Nov 2009 15:33:03 -0500") 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: Tim Hermans Cc: emacs-orgmode@gnu.org, hardaker@users.sourceforge.net >>>>> On Wed, 18 Nov 2009 15:33:03 -0500, Tim Hermans said: TH> I took note from a post by James TD Smith on this list a while back TH> and changed this to use "aput". This is included in "assoc.el" TH> which is included in both XEmacs and GNU Emacs. It does exactly the TH> same thing. It would be more portable. Huh. I actually thought that was changed already via a patch a while back but apparently the patch got lost. Carsten, here's the patch to apply: diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org-export-generic.el index aba550e..1fff03f 100644 --- a/contrib/lisp/org-export-generic.el +++ b/contrib/lisp/org-export-generic.el @@ -96,6 +96,7 @@ ;;; Commentary: (require 'org-exp) +(require 'assoc) (defgroup org-export-generic nil "Options specific for ASCII export of Org-mode files." @@ -440,7 +441,7 @@ in this way, it will be wrapped." (defun org-set-generic-type (type definition) "Adds a TYPE and DEFINITION to the existing list of defined generic export definitions." - (set-alist 'org-generic-alist type definition)) + (aput 'org-generic-alist type definition)) (defun org-export-generic-remember-section (type suffix &optional prefix) (setq org-export-generic-section-type type) -- \ Wes Hardaker http://pontifications.hardakers.net / \_____ "In the bathtub of history the truth is harder to hold than ________/ \_______ the soap, and much more difficult to find." _______/ \_________ -- Terry Pratchett ______________/ \__________________/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: org-export-generic: accessing todo keywords Date: Fri, 20 Nov 2009 06:54:31 +0100 Message-ID: <4AAD74AB-D25B-4F28-B949-39A975503602@gmail.com> References: <4ebad96b0911161443mc47b4a4g935971faf5f106f2@mail.gmail.com> <4ebad96b0911181233p71030440u9f43df394e911f99@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBMSB-00078s-G7 for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 00:54:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBMS6-00073d-9K for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 00:54:42 -0500 Received: from [199.232.76.173] (port=32915 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBMS6-00073Y-2h for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 00:54:38 -0500 Received: from ey-out-1920.google.com ([74.125.78.146]:65242) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBMS5-0001k8-He for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 00:54:37 -0500 Received: by ey-out-1920.google.com with SMTP id 3so972636eyh.34 for ; Thu, 19 Nov 2009 21:54:36 -0800 (PST) In-Reply-To: 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: Wes Hardaker Cc: emacs-orgmode@gnu.org, hardaker@users.sourceforge.net Applied, thanks. - Carsten On Nov 19, 2009, at 4:20 PM, Wes Hardaker wrote: >>>>>> On Wed, 18 Nov 2009 15:33:03 -0500, Tim Hermans >>>>> > said: > > TH> I took note from a post by James TD Smith on this list a while > back > TH> and changed this to use "aput". This is included in "assoc.el" > TH> which is included in both XEmacs and GNU Emacs. It does exactly > the > TH> same thing. It would be more portable. > > Huh. I actually thought that was changed already via a patch a while > back but apparently the patch got lost. > > Carsten, here's the patch to apply: > > diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org- > export-generic.el > index aba550e..1fff03f 100644 > --- a/contrib/lisp/org-export-generic.el > +++ b/contrib/lisp/org-export-generic.el > @@ -96,6 +96,7 @@ > ;;; Commentary: > > (require 'org-exp) > +(require 'assoc) > > (defgroup org-export-generic nil > "Options specific for ASCII export of Org-mode files." > @@ -440,7 +441,7 @@ in this way, it will be wrapped." > (defun org-set-generic-type (type definition) > "Adds a TYPE and DEFINITION to the existing list of defined generic > export definitions." > - (set-alist 'org-generic-alist type definition)) > + (aput 'org-generic-alist type definition)) > > (defun org-export-generic-remember-section (type suffix &optional > prefix) > (setq org-export-generic-section-type type) > -- > \ Wes Hardaker http://pontifications.hardakers.net > / > \_____ "In the bathtub of history the truth is harder to hold than > ________/ > \_______ the soap, and much more difficult to find." _______/ > \_________ -- Terry Pratchett ______________/ > \__________________/ > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten