From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#19471: Emacs can't copy text Date: Mon, 04 Jul 2016 11:03:39 +0200 Message-ID: <87shvp7p1w.fsf@gmx.net> References: <87a8hydqpu.fsf@users.sourceforge.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467623512 8166 80.91.229.3 (4 Jul 2016 09:11:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2016 09:11:52 +0000 (UTC) Cc: Kelly Dean , 19471@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 11:11:37 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 1bJzof-0006vS-J3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2016 11:05:21 +0200 Original-Received: from localhost ([::1]:46030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJzoe-0006yU-Mc for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2016 05:05:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJzoS-0006qu-8M for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 05:05:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJzoM-0005dS-24 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 05:05:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJzoL-0005dO-VI for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 05:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bJzoL-0007B2-Lu for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2016 05:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2016 09:05:01 +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.146762304327517 (code B ref 19471); Mon, 04 Jul 2016 09:05:01 +0000 Original-Received: (at 19471) by debbugs.gnu.org; 4 Jul 2016 09:04:03 +0000 Original-Received: from localhost ([127.0.0.1]:36551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJznO-00079l-Nu for submit@debbugs.gnu.org; Mon, 04 Jul 2016 05:04:02 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:63439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJznN-00079I-ER for 19471@debbugs.gnu.org; Mon, 04 Jul 2016 05:04:02 -0400 Original-Received: from rosalinde ([89.245.65.175]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MDzGN-1b5PKD07sF-00HLCu; Mon, 04 Jul 2016 11:03:42 +0200 In-Reply-To: <87a8hydqpu.fsf@users.sourceforge.net> (npostavs's message of "Sun, 03 Jul 2016 23:31:09 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:S+8DapvEcX9rcMWeQIVhYpdbah+sH6jK2WGn0LlmzTKSNyISAVk VIXGCGNbklh+8/G3KlD3JaTMYMm2sutOTscBOLNgJ++HzTpv4U9cg9hqUJWi5bXUNrk6+GQ srMy2ke39cm+Lu5DTVsVFYz0Dm25wXiWtFxzY93m+V4OfvuBMQyQ1TlmICqA+8oHTeN0DLY oiKu25fUqOMA/4YuseOMg== X-UI-Out-Filterresults: notjunk:1;V01:K0:S+yd2Iu3ZuA=:epTWMlJc5cuuKz3OqpqvIL 4uv3U86jfEpTwTOT3gcMG3AYmfZedAbpN45yWekTPGDSkA2MQhqNX7EeArvFXEjqPAlJ6VANG ykZIeHH5naYIQhKlUTiH/Br7eF0U7ExbkBCq5lx1fJW2bsp//CwRXctgnj3UXvlhWWT4OR5P+ gogO5vQrP52NsaD6qiQqpbtMmWcVndu+Zl/dgy6WvG4h/dBMCBfT4Y3xCqMtbp3DgB2Sdvb7J z941+rDVtwVX9XcS+2i1Udo7QMrLuhBW4KDXEgbto1PNEh887fThrwP3m9Ok35qQnl4IYPlT/ oX56Pr+ZFsYyFpBMDR0ycugc6/iTDj5X0BPu9+OGBgRWMTnaZYsD1fcxuG6j5LVrgNh2nCSWd aNuNB+NmVLtv8vyYWLOryEuvq/vv2dnM1nixAaM2jz5swyHjzqwMhhzKEPW81PA5eAfDt90jl eHy8/OpuXsJi2/8xcybvHt1h0c9XK8ejQRfPtitVoAjrWhhNuWehJVd7Z1EMyGpqhPcH9JXgr Mi27DrEbL+DDMousxml5ZUn4paC7PILZdm3rurSrPMKmP+V9P93Kvk+07MV1Z65WabwSRh/sU ZrKuw9FrplsqkVr/De5owquj32vO68FDxDiKB/kQXcnTPG6ilH+LQmrPU868PEuGzRdP1c0mi nIjRR3LdW9NPKuhkl3gbLSCVAcqAbIJ0jrlGcBINovS+iFDslE/FpO7aaSJXhhRxYDziPQkZA WnoB1x2FX8yBGkGkplgMpF0F7G5o+aMWqmgx8k5DYDRZv5xhFQ2F9DO7b8+csoMdRtqTaPOb 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:120390 Archived-At: On Sun, 03 Jul 2016 23:31:09 -0400 npostavs@users.sourceforge.net wrote: > retitle 19471 Can't copy display-string text > severity 19471 wishlist > found 19471 25.0.95 > quit > > "Kelly Dean" writes: > >> Do: >> C-h i g (elisp)translation keymaps RET >> C-HOME C-SPACE DOWN M-w >> C-x b foo RET C-y >> >> What it looks like you copied is =E2=8C=9C(elisp)Top > Keymaps > Transla= tion >> Keymaps=E2=8C=9D. But when you paste it, you instead get >> =E2=8C=9CFile: elisp.info, Node: Translation Keymaps, Next: Key Binding = Commands, >> Prev: Remapping Commands, Up: Keymaps=E2=8C=9D >> >> I suppose that's rational in some twisted sense, but it's unreasonable >> user-unfriendliness for a text editor. >> See my message =E2=8C=9CRe: Correspondence between web-pages and Info-pa= ges=E2=8C=9D in >> emacs-devel for why this matters. >> >> I tried switching the buffer to fundamental mode in order to copy the >> text, but that didn't solve the problem, so Emacs apparently has some >> kind of low-level text-mangling voodoo that hijacks kill-ring-save. > > It's implemented by an overlay with a display property. Normal Emacs > text copying commands work on the underlying text, rather than the > displayed one. You can see the what overlays/properties are in effect > by doing C-u C-x =3D on the string in question. > > Perhaps we could add some feature to be able to copy the displayed > string instead of the underlying text. 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 =E2=80=98read-key-sequence=E2=80=99 function reads a key sequen= ce (*note Key "see " is a display text property, but appears when this text is yanked. So the disparity between copying and yanking the two bits of text here does seem user-unfriendly. Steve Berman