From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug report: + is not escaped in org-link-escape Date: Sun, 10 Dec 2017 22:57:29 +0100 Message-ID: <87r2s2qm9i.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO9bJ-00052h-TI for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 16:57:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO9bI-0008Hi-Rj for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 16:57:34 -0500 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:52249) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eO9bI-0008HD-M7 for emacs-orgmode@gnu.org; Sun, 10 Dec 2017 16:57:32 -0500 In-Reply-To: (dmg@turingmachine.org's message of "Wed, 6 Dec 2017 20:38:11 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: dmg Cc: emacs-orgmode Hello, dmg 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 =E2=80=98org.el=E2=80= =99. > 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, --=20 Nicolas Goaziou