From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19471: Emacs can't copy text Date: Mon, 04 Jul 2016 18:00:04 +0300 Message-ID: <83d1mtphxn.fsf@gnu.org> References: <87a8hydqpu.fsf@users.sourceforge.net> <87shvp7p1w.fsf@gmx.net> <87oa6d7o7q.fsf@gmx.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1467644998 23630 80.91.229.3 (4 Jul 2016 15:09:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2016 15:09:58 +0000 (UTC) Cc: kelly@prtime.org, 19471@debbugs.gnu.org, npostavs@users.sourceforge.net To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 17:09:46 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bK5VJ-0000Eu-OX for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2016 17:09:45 +0200 Original-Received: from localhost ([::1]:48489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK5VI-0000u4-Mj for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2016 11:09:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK5Mu-000073-6O for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 11:01:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bK5Ms-0007Bo-Bw for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 11:01:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK5Ms-0007Bk-8n for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 11:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bK5Ms-0000UX-25 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 11:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2016 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19471 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19471-submit@debbugs.gnu.org id=B19471.14676444361849 (code B ref 19471); Mon, 04 Jul 2016 15:01:02 +0000 Original-Received: (at 19471) by debbugs.gnu.org; 4 Jul 2016 15:00:36 +0000 Original-Received: from localhost ([127.0.0.1]:37232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bK5MS-0000Tl-73 for submit@debbugs.gnu.org; Mon, 04 Jul 2016 11:00:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bK5MQ-0000Ta-Re for 19471@debbugs.gnu.org; Mon, 04 Jul 2016 11:00:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bK5MI-00071C-Jc for 19471@debbugs.gnu.org; Mon, 04 Jul 2016 11:00:29 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK5MI-0006zO-GA; Mon, 04 Jul 2016 11:00:26 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1933 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bK5MF-0005EV-VT; Mon, 04 Jul 2016 11:00:24 -0400 In-reply-to: <87oa6d7o7q.fsf@gmx.net> (message from Stephen Berman on Mon, 04 Jul 2016 11:21:45 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120400 Archived-At: > From: Stephen Berman > Date: Mon, 04 Jul 2016 11:21:45 +0200 > Cc: Kelly Dean , 19471@debbugs.gnu.org > > On Mon, 04 Jul 2016 11:03:39 +0200 Stephen Berman wrote: > > > In fact, with text properties instead of overlays, the displayed string > > is copied (cf. the variable yank-handled-properties), as can be seen by > > copying the first line below the section title of the above Info node: > > > > When the ‘read-key-sequence’ function reads a key sequence (*note Key > > > > "see " is a display text property, but appears when this text is yanked. > > Well, what showed up here as "*note " did appear as "see " when I yanked > that text into the Message mode buffer... And that's the crux of the issue, AFAIU: the OP wanted to be able to copy/paste the display string so that it would be visible even outside of Emacs, e.g. when sent in an email message or written to a disk file. In that case, text properties and overlay properties/strings behave the same: you lose them. The fact that text properties are copied with the text, while overlay strings and properties aren't is the intended behavior, Emacs does that since the day overlays were introduced.