[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-copy-visible does not work with x-select-enable-primary
From: |
Nicolas Goaziou |
Subject: |
Re: [O] org-copy-visible does not work with x-select-enable-primary |
Date: |
Sun, 02 Sep 2018 21:25:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
address@hidden 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)
>
> 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
>
> [x-select-enable-primary] is an alias for ‘select-enable-primary’.
> This variable is obsolete since 25.1; use ‘select-enable-primary’
> 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,
--
Nicolas Goaziou