From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rocky Road Subject: org-export-generic : fixed export when org-export-generic-links-to-notes is nil Date: Fri, 01 Jan 2010 12:39:00 +0100 Message-ID: <1262345940.6172.51.camel@claddagh> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQfqb-0006az-MM for emacs-orgmode@gnu.org; Fri, 01 Jan 2010 06:39:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQfqX-0006Ya-27 for emacs-orgmode@gnu.org; Fri, 01 Jan 2010 06:39:13 -0500 Received: from [199.232.76.173] (port=35814 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQfqW-0006YV-SC for emacs-orgmode@gnu.org; Fri, 01 Jan 2010 06:39:08 -0500 Received: from smtp2-g21.free.fr ([212.27.42.2]:43609) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQfqV-0004l0-W4 for emacs-orgmode@gnu.org; Fri, 01 Jan 2010 06:39:08 -0500 Received: from smtp2-g21.free.fr (localhost [127.0.0.1]) by smtp2-g21.free.fr (Postfix) with ESMTP id 5E6924B0139 for ; Fri, 1 Jan 2010 12:39:03 +0100 (CET) Received: from [192.168.0.7] (brc29-1-82-245-192-44.fbx.proxad.net [82.245.192.44]) by smtp2-g21.free.fr (Postfix) with ESMTP id 6D0B94B0047 for ; Fri, 1 Jan 2010 12:39:01 +0100 (CET) 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: org-mode emacs-orgmode Hi all, First, let me thank Carsten and all contributors for org-mode. I just discovered it a couple of weeks ago, it's really helpful. ** Happy 2010 ! Best wishes to org-mode, list subscribers and friends, for the new year ! Here's a very modest contribution, about generic export feature. ** Issue When =org-export-generic-links-to-notes= is nil , the export process failed at first link encountered. ** Fix Supply string argument to =match-string= function call. ** Patch fix-links-no-notes.patch #+BEGIN_SRC diff --- /usr/local/src/org-mode/contrib/lisp/org-export-generic.el 2009-12-29 15:21:01.000000000 +0100 +++ /usr/local/share/emacs/site-lisp/org/contrib/lisp/org-export-generic.el 2009-12-29 19:23:51.000000000 +0100 @@ -824,7 +824,7 @@ underlined headlines. The default is 3. (if org-export-generic-links-to-notes (push (cons desc0 link) link-buffer) (setq rpl (concat rpl " (" link ")") - wrap (+ (length line) (- (length (match-string 0))) + wrap (+ (length line) (- (length (match-string 0 line))) (length desc))))) (setq line (replace-match rpl t t line)))) (when custom-times #+END_SRC ** Versions used - org-mode 6.33f - org-export-generic.el 2009-12-29 15:21 md5=bcee72116106c63f16921820a6c3f01e - GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version 2.16.0) of 2009-04-05 on palmer, modified by Debian - linux 2.6.28-17-generic (ubuntu 9.04 jaunty) ** Next My idea was to convert org documents to dokuwiki, so I looked for a way to process links. I read with interest discussion about docbook export http://article.gmane.org/gmane.emacs.orgmode/11958 and possible reorganisation of various export code. For now I'm just trying to better understand the current architecture, maybe I could give a hand if refactoring is still wanted. Best regards, Michelle Baert, aka RockyRoad.