summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Ferreira <renatofdds@gmail.com>2018-12-18 20:00:11 -0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-12-19 16:23:59 +0100
commit255c9c1655e37b8a456ea7fd7ed8c33a1fb10b9c (patch)
treede538166ba983e94a51ae27757b418a6846f5c82
parent2d9b08b8975847c4a910ef62a9ead4cb8ccc3fd6 (diff)
downloadorg-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.el7
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."