diff options
author | Mario Martelli <cocoa@schnuddelhuddel.de> | 2017-06-24 16:01:20 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-06-28 11:19:46 +0200 |
commit | cbcd714b239bf504fd2d2f45a84f3926b6c8b29a (patch) | |
tree | f35c46b22edca8cf8888b9549a25bd034669ef17 | |
parent | 5748615c480a05c23bcf8a3960862c5ac49f8b4e (diff) | |
download | org-mode-cbcd714b239bf504fd2d2f45a84f3926b6c8b29a.tar.gz |
org-protocol: Fix for silently failing open-source subprotocol
* (org-protocol-open-source): Tests URL against base-url and not the
filename.
TINYCHANGE
-rw-r--r-- | lisp/org-protocol.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index 6ab6aee..cd4b216 100644 --- a/lisp/org-protocol.el +++ b/lisp/org-protocol.el @@ -556,7 +556,7 @@ The location for a browser's bookmark should look like this: ;; Try to match a rewritten URL and map it to ;; a real file. Compare redirects without ;; suffix. - (when (string-match-p (car rewrite) f2) + (when (string-match-p (car rewrite) f1) (throw 'result (concat wdir (cdr rewrite)))))))) ;; -- end of redirects -- |