* org-export-generic : fixed export when org-export-generic-links-to-notes is nil
@ 2010-01-01 11:39 Rocky Road
2010-01-03 13:14 ` Carsten Dominik
0 siblings, 1 reply; 3+ messages in thread
From: Rocky Road @ 2010-01-01 11:39 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* org-export-generic : fixed export when org-export-generic-links-to-notes is nil
@ 2010-01-01 13:23 Rocky Road
0 siblings, 0 replies; 3+ messages in thread
From: Rocky Road @ 2010-01-01 13:23 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-export-generic : fixed export when org-export-generic-links-to-notes is nil
2010-01-01 11:39 org-export-generic : fixed export when org-export-generic-links-to-notes is nil Rocky Road
@ 2010-01-03 13:14 ` Carsten Dominik
0 siblings, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2010-01-03 13:14 UTC (permalink / raw)
To: Rocky Road; +Cc: org-mode emacs-orgmode
Applied, thanks.
- Carsten
On Jan 1, 2010, at 12:39 PM, Rocky Road wrote:
> 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.
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please 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] 3+ messages in thread
end of thread, other threads:[~2010-01-03 13:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-01 11:39 org-export-generic : fixed export when org-export-generic-links-to-notes is nil Rocky Road
2010-01-03 13:14 ` Carsten Dominik
-- strict thread matches above, loose matches on Subject: below --
2010-01-01 13:23 Rocky Road
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).