From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: [PATCH] Don't push url to kill-ring when invoking org-protocol-capture Date: Mon, 17 Apr 2017 21:08:44 -0500 Message-ID: <87vaq2lb6b.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/x-diff Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0IZf-00018U-C6 for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 22:09:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0IZa-0000ap-DC for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 22:08:59 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34829) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0IZa-0000ak-15 for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 22:08:54 -0400 Received: from archpad (c-24-14-63-242.hsd1.il.comcast.net [24.14.63.242]) by mail.messagingengine.com (Postfix) with ESMTPA id 53A4324216 for ; Mon, 17 Apr 2017 22:08:45 -0400 (EDT) Content-Disposition: inline; filename=0001-Don-t-push-url-to-kill-ring-when-invoking-org-protoc.patch 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: Org Mode 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