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 ______________/ \__________________/