From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: heads up: problems with getting X secondary selection in recent Emacs Date: Thu, 20 Nov 2014 09:45:35 +0000 Message-ID: <8761eagq80.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrOJI-0003SC-IG for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 04:46:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrOJB-0003tJ-2t for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 04:45:56 -0500 Received: from mail-am1on0133.outbound.protection.outlook.com ([157.56.112.133]:15031 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrOJA-0003pQ-2w for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 04:45:48 -0500 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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