all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Ivanov Dmitry <usr345@gmail.com>
Cc: Xiha <xiha@laposte.net>, emacs-orgmode@gnu.org
Subject: Re: How to escape "[" and "]" characters in org-mode links
Date: Wed, 29 Jul 2015 11:55:19 -0400	[thread overview]
Message-ID: <871tfrdkm0.fsf@kyleam.com> (raw)
In-Reply-To: <CAHyAE10DLTQs2be6c9=o5X=4Q1od+CyMPg0Rs=Wcm2XKUV--aw@mail.gmail.com> (Ivanov Dmitry's message of "Wed, 29 Jul 2015 15:02:23 +0300")

Ivanov Dmitry <usr345@gmail.com> wrote:
> Hi, Xiha
>
> Unfortunately URL encoding the [ and ] doesn't work for me. Try to
> reproduce it. Create 2 files:
>
> file.txt. Content:
> --------------------------------
> $form['text1']
>
> $form['text2']
> --------------------------------
> file.org. Content:
> --------------------------------
> [[./file.txt::$form%5B'text2'%5D][text2]]
> --------------------------------
>
> When I click the link, it says "No match".

While the search string is escaped elsewhere in org-link-search using
regexp-quote, it is treated as a regular expression for normal text
search.  Try escaping with "\":

    [[./file.txt::$form\%5B'text2'\%5D]]

--
Kyle

  reply	other threads:[~2015-07-29 15:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27 13:04 How to escape "[" and "]" characters in org-mode links Xiha
2015-07-29 12:02 ` Ivanov Dmitry
2015-07-29 15:55   ` Kyle Meyer [this message]
2015-08-02 16:17   ` Nicolas Goaziou
2015-08-02 16:17     ` Ivanov Dmitry
2015-08-02 17:57     ` Kyle Meyer
2015-08-02 23:15       ` Nicolas Goaziou
  -- strict thread matches above, loose matches on Subject: below --
2015-07-25 14:27 Ivanov Dmitry

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

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

  git send-email \
    --in-reply-to=871tfrdkm0.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=usr345@gmail.com \
    --cc=xiha@laposte.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.