* org-export-generic: accessing todo keywords
@ 2009-11-16 22:43 Tim Hermans
2009-11-18 1:16 ` Wes Hardaker
0 siblings, 1 reply; 5+ messages in thread
From: Tim Hermans @ 2009-11-16 22:43 UTC (permalink / raw)
To: hardaker; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 339 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 459 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-export-generic: accessing todo keywords
2009-11-16 22:43 org-export-generic: accessing todo keywords Tim Hermans
@ 2009-11-18 1:16 ` Wes Hardaker
2009-11-18 20:33 ` Tim Hermans
0 siblings, 1 reply; 5+ messages in thread
From: Wes Hardaker @ 2009-11-18 1:16 UTC (permalink / raw)
To: Tim Hermans; +Cc: emacs-orgmode, hardaker
>>>>> 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-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 ______________/
\__________________/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-export-generic: accessing todo keywords
2009-11-18 1:16 ` Wes Hardaker
@ 2009-11-18 20:33 ` Tim Hermans
2009-11-19 15:20 ` Wes Hardaker
0 siblings, 1 reply; 5+ messages in thread
From: Tim Hermans @ 2009-11-18 20:33 UTC (permalink / raw)
To: Wes Hardaker; +Cc: emacs-orgmode, hardaker
[-- Attachment #1.1: Type: text/plain, Size: 1934 bytes --]
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 <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-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 ______________/
> \__________________/
>
[-- Attachment #1.2: Type: text/html, Size: 2692 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-export-generic: accessing todo keywords
2009-11-18 20:33 ` Tim Hermans
@ 2009-11-19 15:20 ` Wes Hardaker
2009-11-20 5:54 ` Carsten Dominik
0 siblings, 1 reply; 5+ messages in thread
From: Wes Hardaker @ 2009-11-19 15:20 UTC (permalink / raw)
To: Tim Hermans; +Cc: emacs-orgmode, hardaker
>>>>> On Wed, 18 Nov 2009 15:33:03 -0500, Tim Hermans <thermans@gmail.com> 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 ______________/
\__________________/
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: Re: org-export-generic: accessing todo keywords
2009-11-19 15:20 ` Wes Hardaker
@ 2009-11-20 5:54 ` Carsten Dominik
0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2009-11-20 5:54 UTC (permalink / raw)
To: Wes Hardaker; +Cc: emacs-orgmode, hardaker
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 <thermans@gmail.com
>>>>>> > 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-11-20 5:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 22:43 org-export-generic: accessing todo keywords Tim Hermans
2009-11-18 1:16 ` Wes Hardaker
2009-11-18 20:33 ` Tim Hermans
2009-11-19 15:20 ` Wes Hardaker
2009-11-20 5:54 ` Carsten Dominik
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).