From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-copy-visible does not work with x-select-enable-primary Date: Sun, 02 Sep 2018 21:25:22 +0200 Message-ID: <87o9dfvh0d.fsf@nicolasgoaziou.fr> References: <23435.59272.135195.268513@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwY02-0007g2-Nf for emacs-orgmode@gnu.org; Sun, 02 Sep 2018 15:25:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwXzz-0007YJ-Kb for emacs-orgmode@gnu.org; Sun, 02 Sep 2018 15:25:30 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:55601) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fwXzz-0007Wu-E3 for emacs-orgmode@gnu.org; Sun, 02 Sep 2018 15:25:27 -0400 In-Reply-To: <23435.59272.135195.268513@frac.u-strasbg.fr> (Alain Cochard's message of "Sun, 2 Sep 2018 15:37:12 +0200") 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: Alain.Cochard@unistra.fr Cc: emacs-orgmode@gnu.org Hello, Alain.Cochard@unistra.fr writes: > 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_64-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_9.1.14-908-gf1269e @ > /home/cochard/Org/Coch-git/org-mode/lisp/) > > Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.18.9) of 2018-05-30 Package: Org mode version 9.1.14 > (release_9.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-prima= ry=E2=80=99. > This variable is obsolete since 25.1; use =E2=80=98select-enable-prima= ry=E2=80=99 > instead. > > I have also tried (setq select-enable-primary t) but this fails in the > same way. You may want to report it to Emacs Devel instead. Since it works in some cases, it may not be related to Org. Regards, --=20 Nicolas Goaziou