From mboxrd@z Thu Jan 1 00:00:00 1970 From: Renato Ferreira Subject: [PATCH] org-protocol.el: Fix `org-protocol-capture' return value Date: Tue, 18 Dec 2018 20:17:44 -0200 Message-ID: <87lg4mh43b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZNgW-0005cC-G4 for emacs-orgmode@gnu.org; Tue, 18 Dec 2018 17:17:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZNgT-0000C5-E2 for emacs-orgmode@gnu.org; Tue, 18 Dec 2018 17:17:52 -0500 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:43182) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZNgT-0000BV-8L for emacs-orgmode@gnu.org; Tue, 18 Dec 2018 17:17:49 -0500 Received: by mail-qt1-x830.google.com with SMTP id i7so20055643qtj.10 for ; Tue, 18 Dec 2018 14:17:49 -0800 (PST) Received: from note (177-105-142-112.life.com.br. [177.105.142.112]) by smtp.gmail.com with ESMTPSA id d45sm822559qtd.56.2018.12.18.14.17.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Dec 2018 14:17:47 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, This fixes `org-protocol-capture' removing the message because protocols with :kill-client exit it with `server-edit' causing `server-visit-files' to receive "Item captured." which it interpret as a file name. -- Renato Ferreira --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-protocol.el-Fix-org-protocol-capture-return-valu.patch >From 50a575a9816d65ae02443a149070763bf33b5213 Mon Sep 17 00:00:00 2001 From: Renato Ferreira Date: Tue, 18 Dec 2018 20:00:11 -0200 Subject: [PATCH] org-protocol.el: 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index 88f471e7d..48d72db1c 100644 --- a/lisp/org-protocol.el +++ b/lisp/org-protocol.el @@ -503,8 +503,7 @@ Now template ?b will be used." :initial region :query parts) (raise-frame) - (org-capture nil template)) - (message "Item captured.")) + (org-capture nil template))) (defun org-protocol-convert-query-to-plist (query) "Convert QUERY key=value pairs in the URL to a property list." -- 2.20.1 --=-=-=--