From: Michael Brand <michael.ch.brand@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Encoding Problem in export?
Date: Sun, 17 Nov 2013 12:06:28 +0100 [thread overview]
Message-ID: <CALn3zoi-MROvmPyc8mF3-CypVtrHwJPHbde6sq5pFLq0f+eBLA@mail.gmail.com> (raw)
In-Reply-To: <87y54ohycp.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
Hi Nicolas
Thank you for reviewing.
On Sat, Nov 16, 2013 at 9:43 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> You are testing `url-encode-url' here, not an Org function. Is it really
> required?
No, the point about documentation is now covered in org-open-at-point
like all other previous changes to the ERT. Please see the attached
changed local commit.
Michael
[-- Attachment #2: review2.patch.txt --]
[-- Type: text/plain, Size: 1900 bytes --]
commit 971a3a4e485c897b8b6c2c1c244d02cb8d943167
Author: Michael Brand <michael.ch.brand@gmail.com>
Date: Sun Nov 17 12:00:18 2013 +0100
Hyperlink: Use url-encode-url for browse-url
* lisp/org.el (org-open-at-point): When available (Emacs 24.3.1) use
`url-encode-url' instead of `org-link-escape-browser'.
diff --git a/lisp/org.el b/lisp/org.el
index ed3928f..5cfaa2c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10520,11 +10520,29 @@ application the system uses for this file type."
(apply cmd (nreverse args1))))
((member type '("http" "https" "ftp" "news"))
- (browse-url (concat type ":" (org-link-escape-browser path))))
+ ;; In the example of the http Org link
+ ;; [[http://lists.gnu.org/archive/cgi-bin/namazu.cgi?idxname=emacs-orgmode&query=%252Bsubject:"Release+8.2"]]
+ ;; to open a browser with +subject:"Release 8.2" in the
+ ;; query field the variable `path' contains
+ ;; [...]=%2Bsubject:"Release+8.2", `url-encode-url'
+ ;; converts correct to [...]=%2Bsubject:%22Release+8.2%22
+ ;; and `org-link-escape-browser' converts wrong to
+ ;; [...]=%252Bsubject:%22Release+8.2%22.
+ ;;
+ ;; `url-encode-url' is available since Emacs 24.3.1 and
+ ;; `org-link-escape-browser' can be removed altogether
+ ;; once Org drops support for Emacs 24.1 and 24.2.
+ (browse-url (funcall (if (fboundp 'url-encode-url)
+ #'url-encode-url
+ #'org-link-escape-browser)
+ (concat type ":" path))))
((string= type "doi")
- (browse-url (concat org-doi-server-url
- (org-link-escape-browser path))))
+ ;; See comments for type http above
+ (browse-url (funcall (if (fboundp 'url-encode-url)
+ #'url-encode-url
+ #'org-link-escape-browser)
+ (concat org-doi-server-url path))))
((member type '("message"))
(browse-url (concat type ":" path)))
next prev parent reply other threads:[~2013-11-17 11:06 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 23:17 Encoding Problem in export? Robert Eckl
2013-07-23 23:35 ` Nicolas Goaziou
2013-07-24 1:50 ` Robert Eckl
2013-07-24 7:34 ` Nicolas Goaziou
2013-07-24 8:46 ` Robert Eckl
2013-07-24 9:16 ` Nicolas Goaziou
2013-07-24 10:27 ` Robert Eckl
2013-07-24 9:39 ` Nick Dokos
2013-07-24 11:09 ` Nicolas Goaziou
2013-07-25 4:05 ` David Maus
2013-07-25 21:46 ` Nicolas Goaziou
2013-07-26 4:03 ` David Maus
2013-07-26 10:20 ` Nicolas Goaziou
2013-07-27 7:23 ` David Maus
2013-07-27 11:09 ` Nicolas Goaziou
2013-07-28 8:36 ` Jambunathan K
2013-07-28 8:54 ` Jambunathan K
2013-07-28 11:16 ` David Maus
2013-07-28 11:22 ` Nicolas Goaziou
2013-07-29 6:59 ` Jambunathan K
2013-11-16 15:16 ` Michael Brand
2013-11-16 20:43 ` Nicolas Goaziou
2013-11-17 11:06 ` Michael Brand [this message]
2013-11-17 11:46 ` Nicolas Goaziou
2013-11-17 11:51 ` Michael Brand
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=CALn3zoi-MROvmPyc8mF3-CypVtrHwJPHbde6sq5pFLq0f+eBLA@mail.gmail.com \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=n.goaziou@gmail.com \
/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).