emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Wes Hardaker <wjhns209@hardakers.net>
To: srinivas <sp_us@yahoo.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Orgmodeorg-export-generic gives an error
Date: Mon, 20 Jul 2009 15:39:06 -0700	[thread overview]
Message-ID: <sd1vob3rp1.fsf@wes.hardakers.net> (raw)
In-Reply-To: <loom.20090717T201642-16@post.gmane.org> (srinivas's message of "Fri, 17 Jul 2009 20:19:19 +0000 (UTC)")

>>>>> On Fri, 17 Jul 2009 20:19:19 +0000 (UTC), srinivas <sp_us@yahoo.com> said:

s> Nick Dokos suggested the following fix to .emacs:

s> (if (< emacs-major-version 23)
s> (defun characterp (obj)
s> (and (char-or-string-p obj) (not (stringp obj)))))

s> Inserting this check makes org-export-generic work for me. My Emacs
s> version on Windows is 22.3.1.

(I was on vacation for a week and didn't see this problem).

I wrote export-generic under xemacs and didn't notice that there was a
function compatibility issue.

This patch to it should fix things:

diff --git a/lisp/org-export-generic.el b/lisp/org-export-generic.el
index 64dcb1f..c9fc161 100644
--- a/lisp/org-export-generic.el
+++ b/lisp/org-export-generic.el
@@ -1029,7 +1029,7 @@ REVERSE means to reverse the list if the plist match is a
list
         subtype)
     (cond
      ((null prefixtype) "")
-     ((and len (characterp prefixtype))
+     ((and len (char-or-string-p prefixtype) (not (stringp prefixtype)))
       ;; sequence of chars
       (concat (make-string len prefixtype) "\n"))
      ((stringp prefixtype)


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

  parent reply	other threads:[~2009-07-20 22:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-15 18:05 org-export-generic " srinivas
2009-07-16 22:50 ` Bastien
2009-07-17 19:23   ` Nathan Neff
2009-07-17 20:19     ` srinivas
2009-07-20 14:48       ` Nathan Neff
2009-07-20 22:39       ` Wes Hardaker [this message]
2009-07-21  5:53         ` Re: Orgmodeorg-export-generic " Bastien
2009-07-21 23:32         ` Shelagh Manton
2009-07-21 23:59           ` Bastien
2009-07-22 15:13             ` Wes Hardaker
2009-07-22 23:33               ` Shelagh Manton
2009-07-23  7:33                 ` Bastien
2009-07-23  7:11               ` Bastien
2009-07-23 14:31                 ` James TD Smith
2009-08-10 15:42                   ` Wes Hardaker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sd1vob3rp1.fsf@wes.hardakers.net \
    --to=wjhns209@hardakers.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=sp_us@yahoo.com \
    --subject='Re: Orgmodeorg-export-generic gives an error' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).