org-protocol: Fix `org-protocol-capture' return value

* lisp/org-protocol.el: Make sure protocols with :kill-client do
not return a string.

TINYCHANGE
This commit is contained in:
Renato Ferreira 2018-12-18 20:00:11 -02:00 committed by Nicolas Goaziou
parent 2d9b08b897
commit 255c9c1655
1 changed files with 5 additions and 2 deletions

View File

@ -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."