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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: 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: Sat, 26 Aug 2017 00:13:45 +0200 Message-ID: <87bmn3xply.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlMrQ-00059c-J4 for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 18:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlMrN-0006I5-CJ for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 18:13:52 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:59773) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlMrN-0006Hy-6S for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 18:13:49 -0400 In-Reply-To: (Gary Cheng's message of "Wed, 23 Aug 2017 23:01:24 +0000") 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: Gary Cheng Cc: emacs-orgmode@gnu.org Hello, Gary Cheng writes: > 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= ~. Fixed. Thank you. Regards, -- Nicolas Goaziou