diff options
author | Renato Ferreira <renatofdds@gmail.com> | 2018-12-18 20:00:11 -0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-12-19 16:23:59 +0100 |
commit | 255c9c1655e37b8a456ea7fd7ed8c33a1fb10b9c (patch) | |
tree | de538166ba983e94a51ae27757b418a6846f5c82 | |
parent | 2d9b08b8975847c4a910ef62a9ead4cb8ccc3fd6 (diff) | |
download | org-mode-255c9c1655e37b8a456ea7fd7ed8c33a1fb10b9c.tar.gz |
org-protocol: Fix `org-protocol-capture' return value
* lisp/org-protocol.el: Make sure protocols with :kill-client do
not return a string.
TINYCHANGE
-rw-r--r-- | lisp/org-protocol.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index 88f471e..a0a10d3 100644 --- a/lisp/org-protocol.el +++ b/lisp/org-protocol.el @@ -503,8 +503,11 @@ Now template ?b will be used." :initial region :query parts) (raise-frame) - (org-capture nil template)) - (message "Item captured.")) + (org-capture nil template) + (message "Item captured.") + ;; Make sure we do not return a string, as `server-visit-files', + ;; through `server-edit', would interpret it as a file name. + nil)) (defun org-protocol-convert-query-to-plist (query) "Convert QUERY key=value pairs in the URL to a property list." |