emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* heads up: problems with getting X secondary selection in recent Emacs
@ 2014-11-20  9:45 Eric S Fraga
  0 siblings, 0 replies; only message in thread
From: Eric S Fraga @ 2014-11-20  9:45 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

there appear to be some problems with recent development/snapshot
versions of emacs with respect to getting the X selections.  Org uses
these automatically within org-capture and, at best, causes long delays
in capturing anything and, at worst, doesn't work at all.

I have found that letting org only consider the PRIMARY and CLIPBOARD
selections sort of solves the problem for the time being:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 65de098..f94becb 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1534,7 +1534,8 @@ The template may still contain \"%?\" for cursor positioning."
         (v-c (and (> (length kill-ring) 0) (current-kill 0)))
         (v-x (or (org-get-x-clipboard 'PRIMARY)
                  (org-get-x-clipboard 'CLIPBOARD)
-                 (org-get-x-clipboard 'SECONDARY)))
+                 ;;(org-get-x-clipboard 'SECONDARY)
+                 ))
         (v-t (format-time-string (car org-time-stamp-formats) ct1))
         (v-T (format-time-string (cdr org-time-stamp-formats) ct1))
         (v-u (concat "[" (substring v-t 1 -1) "]"))
--8<---------------cut here---------------end--------------->8---

I'm not suggesting this as a patch to org but only providing this for
anybody that may be having the problems I am having.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-578-g4df091

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-20  9:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-20  9:45 heads up: problems with getting X secondary selection in recent Emacs Eric S Fraga

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).