emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Don't push url to kill-ring when invoking org-protocol-capture
@ 2017-04-18  2:08 Matt Lundin
  2017-04-18  6:27 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Lundin @ 2017-04-18  2:08 UTC (permalink / raw)
  To: Org Mode

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-Don-t-push-url-to-kill-ring-when-invoking-org-protoc.patch --]
[-- Type: text/x-diff, Size: 994 bytes --]

From: Matt Lundin <mdl@imapmail.org>
To: Org Mode <emacs-orgmode@gnu.org>
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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Don't push url to kill-ring when invoking org-protocol-capture
  2017-04-18  2:08 [PATCH] Don't push url to kill-ring when invoking org-protocol-capture Matt Lundin
@ 2017-04-18  6:27 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-04-18  6:27 UTC (permalink / raw)
  To: Org Mode

Hello,

Matt Lundin <mdl@imapmail.org> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-18  6:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-18  2:08 [PATCH] Don't push url to kill-ring when invoking org-protocol-capture Matt Lundin
2017-04-18  6:27 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).