From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alain.Cochard@unistra.fr Newsgroups: gmane.emacs.devel Subject: org-copy-visible does not work with x-select-enable-primary Date: Mon, 10 Sep 2018 14:15:27 +0200 Message-ID: <23446.24671.697405.158351@frac.u-strasbg.fr> Reply-To: alain.cochard@unistra.fr NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536587375 10192 195.159.176.226 (10 Sep 2018 13:49:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 13:49:35 +0000 (UTC) Cc: Alain Cochard To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 15:49:31 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fzMZH-0002YF-0b for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 15:49:31 +0200 Original-Received: from localhost ([::1]:51779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzMbN-00013e-Ci for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 09:51:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzL6R-0005Xi-Fz for emacs-devel@gnu.org; Mon, 10 Sep 2018 08:15:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzL6N-0005dl-Ex for emacs-devel@gnu.org; Mon, 10 Sep 2018 08:15:39 -0400 Original-Received: from smr2.u-strasbg.fr ([130.79.222.218]:56078 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 1fzL6N-0005Z2-3Z for emacs-devel@gnu.org; Mon, 10 Sep 2018 08:15:35 -0400 Original-Received: from local-mr.u-strasbg.fr (lmr2.u-strasbg.fr [172.30.21.2]) by smr2.u-strasbg.fr (Postfix) with ESMTP id 6011E1E082B for ; Mon, 10 Sep 2018 14:15:30 +0200 (CEST) Original-Received: from local-mr.u-strasbg.fr (localhost [127.0.0.1]) by antivirus (Postfix) with ESMTP id 3FAC81F992; Mon, 10 Sep 2018 14:15:30 +0200 (CEST) Original-Received: from frac.u-strasbg.fr (frac.u-strasbg.fr [130.79.10.22]) (Authenticated sender: alain.cochard) by lmr2.u-strasbg.fr (Postfix) with ESMTPSA id 184AD1F964; Mon, 10 Sep 2018 14:15:28 +0200 (CEST) X-Mailer: VM 8.1.2 under 24.5.1 (x86_64-redhat-linux-gnu) X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 130.79.222.218 X-Mailman-Approved-At: Mon, 10 Sep 2018 09:51:30 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229631 Archived-At: Hello. I already sent an email about this issue to emacs-orgmode@gnu.org. Nicolas Goaziou, one of the Org mode developers, suggested to report to Emacs Devel instead because "Since it works in some cases, it may not be related to Org." The issue is also present with the development version of Org, but, below, I assume no access to this development version and no knowledge of Org. I only assume an Emacs version with org-mode included (if I understand well, any Emacs version >=3D 24.5.1 should do). So here it is: Using 'emacs -Q', visit or create a file with the '.org' extension (say 'bug.org') with the following 2 lines: * foo bar (As I am not fully sure this will be transmitted correctly, let me specify: the 1st line is '* foo', the 2nd line is 'bar'; there is no indentation.) With the cursor on the star, hitting repetitively the key should cycle between a state for which one sees all the content of the file, and the so-called folded state where one only sees the line: * foo... Now, selecting the single line above, e.g., with the mouse, hitting 'C-c C-x v' (M-x org-copy-visible), then 'C-y' (M-x org-yank), should yank '* foo'. This is the normal behavior. As far as I understand, there is no reason this behavior should be affected by the variable 'x-select-enable-primary', but it it, at least for me. A possible test is to repeat the same experiment using 'emacs -Q -l .emacs.debug' (instead of 'emacs -Q'), where the '.emacs.debug' file contains only the line: (setq x-select-enable-primary t) In that case, for me, 'C-y' yanks both lines, instead of only 'foo...'.=20 I have tried with the following 2 versions of Emacs+Org (plus, as I said, with the development version of Org instead of the bundled ones): 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 8.2.10 (release=5F8.2.10 @ /usr/share/emacs/24.5/lisp/org/) 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.9 (release=5F9.1.9-65-g5e4542 @ /home/cochard/usr/local/emacs-26.1/lisp/org/) Regards --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=E9 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=