From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: protocol capture without url corrupts org-stored-links [9.1.14 (9.1.14-1059-gadec50-elpaplus @ /home/ionasal/.emacs.d/elpa/org-plus-contrib-20181211/)] Date: Tue, 18 Dec 2018 09:34:33 +0100 Message-ID: <87sgyvz10m.fsf@nicolasgoaziou.fr> References: <87tvjiittr.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZApu-0001L2-A8 for emacs-orgmode@gnu.org; Tue, 18 Dec 2018 03:34:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZApp-0005it-9G for emacs-orgmode@gnu.org; Tue, 18 Dec 2018 03:34:42 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:53263) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gZApp-0005hZ-0m for emacs-orgmode@gnu.org; Tue, 18 Dec 2018 03:34:37 -0500 In-Reply-To: (Allen Li's message of "Wed, 12 Dec 2018 14:59:40 -0800") 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: Allen Li Cc: Org Mode List Hello, Allen Li writes: > On Wed, Dec 12, 2018 at 9:59 AM Nicolas Goaziou wrote: >> >> Could you give more context about the bug you're encountering? What does >> mean "function correctly if a URL was not provided"? What is the use >> case? What result did you expect, besides not encountering an error >> message? > > The issue occurs when org protocol capture is invoked without a url param, e.g. > > emacsclient 'org-protocol://capture?url=percent-encoded-url&body=some-text' > > vs > > emacsclient 'org-protocol://capture?body=some-text' > > By "function correctly", I mean make the latter not break > org-insert-link by not corrupting the value of org-stored-links. > > The use case is capturing some text without an associated URL. Fixed. Thank you. Regards, -- Nicolas Goaziou