emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Peter Davis <pfd@pfdstudio.com>
To: Achim Gratz <Stromeko@nexgo.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Importing from Oddmuse?
Date: Mon, 28 Oct 2013 16:33:02 -0400	[thread overview]
Message-ID: <CAE-e6gksbumvi_Wt7g9BupkQChRtaS0qMLr4zr2m7vrkToPQdQ@mail.gmail.com> (raw)
In-Reply-To: <87li1dqgz4.fsf@Rainer.invalid>

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

On Mon, Oct 28, 2013 at 4:26 PM, Achim Gratz <Stromeko@nexgo.de> wrote:

> Peter Davis writes:
> > That was the first thing I tried, and Perl complained about an
> > undefined variable. I may have made a typo though.
>
> Nope, my error.  $1 gets clobbered by the second replacement.  So you'd
> want what you wrote or somewhat shorter:
>
> # hyperlinks
> s/\[\[([^]]*)\]\]/
>   my ($l, $o) = ($1, $1);
>   $l =~ s: :_:g;
>   "[[file:$l.org][$o]]"/gex;
>
>
Yes, that works beautifully, and is nice and concise.

Thank you!

-pd

-- 
----
The Tech Curmudgeon
http://www.techcurmudgeon.com

[-- Attachment #2: Type: text/html, Size: 1389 bytes --]

  reply	other threads:[~2013-10-28 20:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-25 14:54 Importing from Oddmuse? Peter Davis
2013-10-28 15:01 ` Peter Davis
2013-10-28 18:12   ` Achim Gratz
2013-10-28 18:27     ` Peter Davis
2013-10-28 19:18       ` Achim Gratz
2013-10-28 19:35         ` Peter Davis
2013-10-28 20:26           ` Achim Gratz
2013-10-28 20:33             ` Peter Davis [this message]
2013-10-30 21:08 ` Jambunathan K
2013-10-30 22:44   ` Peter Davis
2013-10-31  6:18     ` Marcin Borkowski

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=CAE-e6gksbumvi_Wt7g9BupkQChRtaS0qMLr4zr2m7vrkToPQdQ@mail.gmail.com \
    --to=pfd@pfdstudio.com \
    --cc=Stromeko@nexgo.de \
    --cc=emacs-orgmode@gnu.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).