emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: heads up: problems with getting X secondary selection in recent Emacs
Date: Thu, 20 Nov 2014 09:45:35 +0000	[thread overview]
Message-ID: <8761eagq80.fsf@pinto.chemeng.ucl.ac.uk> (raw)

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

                 reply	other threads:[~2014-11-20  9:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761eagq80.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).