From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: org-copy-visible does not work with x-select-enable-primary Date: Sun, 2 Sep 2018 15:37:12 +0200 Message-ID: <23435.59272.135195.268513@frac.u-strasbg.fr> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [2001:4830:134:3::10] (port=33125 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwSrT-0007VJ-Qd for emacs-orgmode@gnu.org; Sun, 02 Sep 2018 10:00:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwSqt-0000qJ-BN for emacs-orgmode@gnu.org; Sun, 02 Sep 2018 09:55:56 -0400 Received: from smr2.u-strasbg.fr ([130.79.222.218]:53400 helo=mailhost.u-strasbg.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fwSqq-0000R5-IA for emacs-orgmode@gnu.org; Sun, 02 Sep 2018 09:55:43 -0400 Received: from local-mr.u-strasbg.fr (lmr3.u-strasbg.fr [172.30.21.3]) by smr2.u-strasbg.fr (Postfix) with ESMTP id C40041E08B4 for ; Sun, 2 Sep 2018 15:37:13 +0200 (CEST) Received: from local-mr.u-strasbg.fr (localhost [127.0.0.1]) by antivirus (Postfix) with ESMTP id A6CB826C for ; Sun, 2 Sep 2018 15:37:13 +0200 (CEST) Received: from frac.u-strasbg.fr (AStrasbourg-651-1-78-46.w90-40.abo.wanadoo.fr [90.40.27.46]) (Authenticated sender: alain.cochard) by lmr3.u-strasbg.fr (Postfix) with ESMTPSA id 64C4EA9 for ; Sun, 2 Sep 2018 15:37:12 +0200 (CEST) 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: emacs-orgmode@gnu.org Hello. I use emacs -Q -l ~/.emacs.debug with the ~/.emacs.debug file containing only (add-to-list 'load-path "/home/cochard/Org/Coch-git/org-mode/lisp") I tried 2 versions of emacs, giving: Emacs : GNU Emacs 24.5.1 (x86=5F64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: Org mode version 9.1.14 (release=5F9.1.14-908-gf1269e @ /home/cochard/Org/Coch-git/org-mode/lisp/) Emacs : GNU Emacs 26.1 (build 1, x86=5F64-pc-linux-gnu, GTK+ Version= 3.18.9) of 2018-05-30 Package: Org mode version 9.1.14 (release=5F9.1.14-908-gf1269e @ /home/cochard/Org/Coch-git/org-mode/lisp/) In both cases, org-copy-visible works as I expect: if I select region containing a folded tree, use 'M-x org-copy-visible', then put the cursor elsewhere and use 'M-x org-yank', only the visible part is copied. Now, if I append the line (setq x-select-enable-primary t)=20 to ~/.emacs.debug, the whole tree is copied instead of the expected result, that is, including the invisible parts, also for the two emacs versions. NB: For emacs 26, as the manual says that=20 [x-select-enable-primary] is an alias for =E2=80=98select-enable-pri= mary=E2=80=99. This variable is obsolete since 25.1; use =E2=80=98select-enable-pri= mary=E2=80=99 instead. I have also tried (setq select-enable-primary t) but this fails in the same way. Regards --=20 EOST (=C3=89cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=C3=A9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20=