From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Cheng Subject: Bug: org-copy-visible includes emphasis markerse hidden by org-hide-emphasis-markers [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.2/lisp/org/)] Date: Wed, 23 Aug 2017 23:01:24 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113feefaf8adda055773b088" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkeeR-0003yW-JW for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 19:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkeeO-000220-2c for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 19:01:31 -0400 Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]:38241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkeeN-000210-UA for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 19:01:28 -0400 Received: by mail-io0-x231.google.com with SMTP id g71so5353485ioe.5 for ; Wed, 23 Aug 2017 16:01:26 -0700 (PDT) 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 --001a113feefaf8adda055773b088 Content-Type: text/plain; charset="UTF-8" Emacs : GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.16) of 2017-07-15 Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/share/emacs/25.2/lisp/org/) ---------------------------------------------------------------------------------------------------------------------------- With evil-mode enabled (bug still applies without using evil, see: https://github.com/emacs-evil/evil/issues/907), start Emacs, evaluate (setq org-hide-emphasis-markers t). Open a org file containing the following line: ~$ firejail --get= ~ which is shown in the visible buffer as: $ firejail --get= Then, visually select via v from the first character "$" to the last character ">" of the line. What's copied into the clipboard is (note the "~" in the beginning): ~$ firejail --get= instead of: $ firejail --get= Also, copying the entire line with V via org-copy-visible will yield ~$ firejail --get= ~. I only use Emacs with evil-mode enabled, so I'm not sure what Emacs equivalents are, but it has the same issue even without using evil according to the evil developer (see github issue posted above). --001a113feefaf8adda055773b088 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Emacs=C2=A0 : GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, = GTK+ Version 3.22.16)
=C2=A0of 2017-07-15
Package: Org-mode version 8= .2.10 (release_8.2.10 @ /usr/share/emacs/25.2/lisp/org/)

-----------= ---------------------------------------------------------------------------= --------------------------------------

With evil-mode enabled (bug s= till applies without using evil, see: https://github.com/emacs-evil/evil/issues/907), st= art Emacs, evaluate (setq org-hide-emphasis-markers t).
Open a org file containing the following line:
~$ firejail =
--get=3D<id> <file>~

which is shown in the visible buffer as:

$ firejail --get=3D<id> <file>

Then, visually select via v from the first character = "$" to the last character ">" of= the line. What's copied into the clipboard is (note the = "~" in the beginning):

~$ firejail --get=3D<id> <file>

instead of:

$ firejail --get=3D<id> <file>

Also, copying the entire line with V via org-copy-vis= ible will yield ~$ firejail --get=3D<id> <file>~.


I only use Emacs with evil-mode enabled, so I'm= not sure what Emacs equivalents are, but it has the same issue even withou= t using evil according to the evil developer (see github issue posted above= ).

--001a113feefaf8adda055773b088--