From 255c9c1655e37b8a456ea7fd7ed8c33a1fb10b9c Mon Sep 17 00:00:00 2001 From: Renato Ferreira Date: Tue, 18 Dec 2018 20:00:11 -0200 Subject: [PATCH] org-protocol: Fix `org-protocol-capture' return value * lisp/org-protocol.el: Make sure protocols with :kill-client do not return a string. TINYCHANGE --- lisp/org-protocol.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index 88f471e7d..a0a10d307 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."