Forráskód Böngészése

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

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

TINYCHANGE
Renato Ferreira 6 éve
szülő
commit
255c9c1655
1 módosított fájl, 5 hozzáadás és 2 törlés
  1. 5 2
      lisp/org-protocol.el

+ 5 - 2
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."