emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: dmg <dmg@turingmachine.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: bug report: + is not escaped in org-link-escape
Date: Sun, 10 Dec 2017 22:57:29 +0100	[thread overview]
Message-ID: <87r2s2qm9i.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAEBXXD9UwBu=umoY22JOyWf50C=A_M2o5qOHH+rC9m=RVfqhKg@mail.gmail.com> (dmg@turingmachine.org's message of "Wed, 6 Dec 2017 20:38:11 -0800")

Hello,

dmg <dmg@turingmachine.org> writes:

> org-link-escape only replaces space, [, ], and %
>
> but search in google/gmail is replacing + also.
>
> The simplest solution is to add 43 to org-link-escape-chars:
>
>    org-link-escape-chars is a variable defined in ‘org.el’.
>    Its value is (32 91 93 37)
>
>   This variable may be risky if used as a file-local variable.

`org-link-escape' is for internal links, not for general URL-encoding.
You may want to use `url-encode-url' instead.

> I use org-link-escape to jump from an email in gnus to gmail by searching
> the message-id. But if when the message-id contains +, this character
> must be escaped.

See above.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-12-10 21:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-07  4:38 bug report: + is not escaped in org-link-escape dmg
2017-12-10 21:57 ` Nicolas Goaziou [this message]
2017-12-11  0:13   ` D M German

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=87r2s2qm9i.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=dmg@turingmachine.org \
    --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).