Re: [O] [PATCH] Don't push url to kill-ring when invoking org-protocol-capture

2017-04-18 Thread Nicolas Goaziou
Hello,

Matt Lundin  writes:

> Subject: [PATCH] Don't push url to kill-ring when invoking 
> org-protocol-capture
>
> * lisp/org-protocol.el: (org-protocol-do-capture) Don't push link to
>   kill-ring when invoking org-protocol-capture. Otherwise,
>   org-protocol-do-capture interferes with capture templates that
>   insert the contents of the clipboard or the kill ring.

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] [PATCH] Don't push url to kill-ring when invoking org-protocol-capture

2017-04-17 Thread Matt Lundin
From: Matt Lundin 
To: Org Mode 
Date: Mon, 17 Apr 2017 20:58:30 -0500
Subject: [PATCH] Don't push url to kill-ring when invoking
 org-protocol-capture
--text follows this line--

* lisp/org-protocol.el: (org-protocol-do-capture) Don't push link to
  kill-ring when invoking org-protocol-capture. Otherwise,
  org-protocol-do-capture interferes with capture templates that
  insert the contents of the clipboard or the kill ring.
---
 lisp/org-protocol.el | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el
index a59540a30..825435674 100644
--- a/lisp/org-protocol.el
+++ b/lisp/org-protocol.el
@@ -498,7 +498,6 @@ Now template ?b will be used."
 	 (org-capture-link-is-already-stored t)) ;; avoid call to org-store-link
 (setq org-stored-links
 	  (cons (list url title) org-stored-links))
-(kill-new orglink)
 (org-store-link-props :type type
 			  :link url
 			  :description title
-- 
2.12.2