GNU bug report logs - #19471
Can't copy display-string text

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: "Kelly Dean" <kelly@HIDDEN>; merged with #25131, #29286; dated Tue, 30 Dec 2014 09:57:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 19471 25131 29286. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Forcibly Merged 19471 25131. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 19471 <at> debbugs.gnu.org:


Received: (at 19471) by debbugs.gnu.org; 4 Jul 2016 15:00:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 04 11:00:36 2016
Received: from localhost ([127.0.0.1]:37232 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bK5MS-0000Tl-73
	for submit <at> debbugs.gnu.org; Mon, 04 Jul 2016 11:00:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42501)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1bK5MQ-0000Ta-Re
 for 19471 <at> debbugs.gnu.org; Mon, 04 Jul 2016 11:00:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1bK5MI-00071C-Jc
 for 19471 <at> debbugs.gnu.org; Mon, 04 Jul 2016 11:00:29 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56539)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1bK5MI-0006zO-GA; Mon, 04 Jul 2016 11:00:26 -0400
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 <eliz@HIDDEN>)
 id 1bK5MF-0005EV-VT; Mon, 04 Jul 2016 11:00:24 -0400
Date: Mon, 04 Jul 2016 18:00:04 +0300
Message-Id: <83d1mtphxn.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-reply-to: <87oa6d7o7q.fsf@HIDDEN> (message from Stephen Berman on Mon, 04
 Jul 2016 11:21:45 +0200)
Subject: Re: bug#19471: Emacs can't copy text
References: <VckpTvtqmEIv1BN6wuuZBdhRWidSb9kHIiUd1g02dHi@local>
 <87a8hydqpu.fsf@HIDDEN> <87shvp7p1w.fsf@HIDDEN>
 <87oa6d7o7q.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -6.3 (------)
X-Debbugs-Envelope-To: 19471
Cc: kelly@HIDDEN, 19471 <at> debbugs.gnu.org, npostavs@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.3 (------)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Date: Mon, 04 Jul 2016 11:21:45 +0200
> Cc: Kelly Dean <kelly@HIDDEN>, 19471 <at> debbugs.gnu.org
> 
> On Mon, 04 Jul 2016 11:03:39 +0200 Stephen Berman <stephen.berman@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19471; Package emacs. Full text available.

Message received at 19471 <at> debbugs.gnu.org:


Received: (at 19471) by debbugs.gnu.org; 4 Jul 2016 14:46:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 04 10:46:58 2016
Received: from localhost ([127.0.0.1]:37216 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bK59G-00009W-7R
	for submit <at> debbugs.gnu.org; Mon, 04 Jul 2016 10:46:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38689)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1bK59D-00009I-VB
 for 19471 <at> debbugs.gnu.org; Mon, 04 Jul 2016 10:46:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1bK593-0003zN-KU
 for 19471 <at> debbugs.gnu.org; Mon, 04 Jul 2016 10:46:50 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56327)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1bK593-0003zI-HS; Mon, 04 Jul 2016 10:46:45 -0400
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1833
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1bK591-0007TN-LG; Mon, 04 Jul 2016 10:46:44 -0400
Date: Mon, 04 Jul 2016 17:46:24 +0300
Message-Id: <83lh1hpikf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: npostavs@HIDDEN
In-reply-to: <87a8hydqpu.fsf@HIDDEN>
 (npostavs@HIDDEN)
Subject: Re: bug#19471: Emacs can't copy text
References: <VckpTvtqmEIv1BN6wuuZBdhRWidSb9kHIiUd1g02dHi@local>
 <87a8hydqpu.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -6.3 (------)
X-Debbugs-Envelope-To: 19471
Cc: kelly@HIDDEN, 19471 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.3 (------)

> From: npostavs@HIDDEN
> Date: Sun, 03 Jul 2016 23:31:09 -0400
> Cc: 19471 <at> debbugs.gnu.org
> 
> Perhaps we could add some feature to be able to copy the displayed
> string instead of the underlying text.

Indeed, this would be useful, IMO.  The tricky part is to figure out
what is actually displayed, when there are several overlays at point.

Volunteers are welcome.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19471; Package emacs. Full text available.

Message received at 19471 <at> debbugs.gnu.org:


Received: (at 19471) by debbugs.gnu.org; 4 Jul 2016 09:22:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 04 05:22:08 2016
Received: from localhost ([127.0.0.1]:36560 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bK04u-0007by-MV
	for submit <at> debbugs.gnu.org; Mon, 04 Jul 2016 05:22:08 -0400
Received: from mout.gmx.net ([212.227.17.22]:64440)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1bK04s-0007aS-Cu
 for 19471 <at> debbugs.gnu.org; Mon, 04 Jul 2016 05:22:06 -0400
Received: from rosalinde ([89.245.65.175]) by mail.gmx.com (mrgmx102) with
 ESMTPSA (Nemesis) id 0MSY2q-1aujyo3wRA-00RdAO; Mon, 04 Jul 2016 11:21:47
 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: npostavs@HIDDEN
Subject: Re: bug#19471: Emacs can't copy text
References: <VckpTvtqmEIv1BN6wuuZBdhRWidSb9kHIiUd1g02dHi@local>
 <87a8hydqpu.fsf@HIDDEN> <87shvp7p1w.fsf@HIDDEN>
Date: Mon, 04 Jul 2016 11:21:45 +0200
In-Reply-To: <87shvp7p1w.fsf@HIDDEN> (Stephen Berman's message of "Mon, 04
 Jul 2016 11:03:39 +0200")
Message-ID: <87oa6d7o7q.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:pFvQTIkvrdWcoUpw/YjdO4YxU5qJOF4WZiyaGkn4m1Bzg87kU+e
 eVZZFsrTDnt8eIlISVO+YzRoxIgvrNT0NGfEXNQ1/e8UGXHNpaevaQGGb9yRg+B+mRjikb6
 nbxTL/iLRJzm9wbNKOFbPZ51s/pdB7FOPIdNlCxjcJywe5w+paFq/Z8ozm4DQeKNjqU2tlq
 vK6rOYdfxTRgRG2gyDOhw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:Z7q0xYmXosI=:zQf4C+anfH3ztIbZ1wTkW6
 C4iGA5cG/n/LPZsjdI2PRuBdaYoqZf/r7Nlr+PMajfwYRdxfqqAgFL21YNXbKH//JfoKPgzBy
 qbKmUhpUsUIpTcRTIY4xuHKiEBKpQps0TW3A2yBBw8BekTJntOJcRyW9UD31YvD0f3M+356fO
 RMbBtFHQSF+lVwYT4HHfBAT4+HfWI0Q3rt+mRaEh7P1e/LWUIws6caf/h0PGFRFsx1wXmL0Z6
 I0FFkPmR0nZ7qi4AqPp3Pa9k5HtxQdtQypk0YN537VctPBgf1WZhwvtiDSp2/NwBmmRWqKe07
 OmJX0wnfiT0j9sYBN1jzgAm0DP4IKkW/HUyZ9j9ho0UDSwHJ5gEma1CLGnFUALgatW5dkwJ8S
 N/bFUWne+xVvBLZIuPbtHQHnaD7oDNSmhDFv9ZWXQQh85SrJSnFMXX/IQIJHVkOwSeK/0Yh9M
 e0MpQa1kiE93qDYuQ3w67K3cVPz18qe2n1tC8iZKGLJbZkA3e2g1tGRkd9r6IEyDXSmmq8SQ5
 dd/sUgrZHpAqnmNSlZU8HZiDkAQxh5fKniHTeNGcvM51BIYmoaVyMrs4k5WAIB/z/tgAAzFq5
 upu6xaBOajFGFPngs9rACnDgjO5STr2uMHsRTsKOptkP4TkmAsALe1VYsoTfnmxklzp0A+JNl
 JmIXFjO8efys5KzN9TIjQrkpq4CX86O3h/Maw/Z1HIyrDW7ARh3WtIZguLPIKRQ/IbK3QtEh6
 oWluOr+/2JcuPTbc5f8kpQ8GL0ezWHS/PKfb6lAOso+Gox1ewfZd2fIptTx7uVYWYudcvZrLT
 zT0YlOM
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 19471
Cc: Kelly Dean <kelly@HIDDEN>, 19471 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

On Mon, 04 Jul 2016 11:03:39 +0200 Stephen Berman <stephen.berman@HIDDEN> =
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 =E2=80=98read-key-sequence=E2=80=99 function reads a key sequ=
ence (*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...

Steve Berman




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19471; Package emacs. Full text available.

Message received at 19471 <at> debbugs.gnu.org:


Received: (at 19471) by debbugs.gnu.org; 4 Jul 2016 09:04:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 04 05:04:02 2016
Received: from localhost ([127.0.0.1]:36551 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bJznO-00079l-Nu
	for submit <at> debbugs.gnu.org; Mon, 04 Jul 2016 05:04:02 -0400
Received: from mout.gmx.net ([212.227.17.20]:63439)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1bJznN-00079I-ER
 for 19471 <at> debbugs.gnu.org; Mon, 04 Jul 2016 05:04:02 -0400
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
From: Stephen Berman <stephen.berman@HIDDEN>
To: npostavs@HIDDEN
Subject: Re: bug#19471: Emacs can't copy text
References: <VckpTvtqmEIv1BN6wuuZBdhRWidSb9kHIiUd1g02dHi@local>
 <87a8hydqpu.fsf@HIDDEN>
Date: Mon, 04 Jul 2016 11:03:39 +0200
In-Reply-To: <87a8hydqpu.fsf@HIDDEN> (npostavs's message of
 "Sun, 03 Jul 2016 23:31:09 -0400")
Message-ID: <87shvp7p1w.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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+csoMdRtqTaPObw
 Mpd3mRm
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 19471
Cc: Kelly Dean <kelly@HIDDEN>, 19471 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

On Sun, 03 Jul 2016 23:31:09 -0400 npostavs@HIDDEN wrote:

> retitle 19471 Can't copy display-string text
> severity 19471 wishlist
> found 19471 25.0.95
> quit
>
> "Kelly Dean" <kelly@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19471; Package emacs. Full text available.
bug Marked as found in versions 25.0.95. Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'minor' Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'Can't copy display-string text' from 'Emacs can't copy text' Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.

Message received at 19471 <at> debbugs.gnu.org:


Received: (at 19471) by debbugs.gnu.org; 4 Jul 2016 03:31:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 03 23:31:09 2016
Received: from localhost ([127.0.0.1]:36401 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bJubF-0004Wk-MZ
	for submit <at> debbugs.gnu.org; Sun, 03 Jul 2016 23:31:09 -0400
Received: from mail-it0-f43.google.com ([209.85.214.43]:37545)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1bJubD-0004WT-Te; Sun, 03 Jul 2016 23:31:08 -0400
Received: by mail-it0-f43.google.com with SMTP id f6so55093007ith.0;
 Sun, 03 Jul 2016 20:31:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=fo/qet8XKhkXAO1UreFCDWcEzXo3DunbbziJBcASkd8=;
 b=L88eterrRZAp0YToK0KF7oXs5BPoNHK6KaeAa4ywgdQbeWIQN6By3ge603w8JZ1QN1
 nEZfPpXVQGGpI40asVvuqwoWA8Ab2/k0bB5v0eLHOgeBJdTntpW6BuFTJj1WBWIldYq4
 AtcjwL2jdHcErZE/Y2bQ7hcwGgfbd8OVEL/JWxsxEksGF28qNg7sCWAwHDuRYa9ULxYP
 CCmh8gNrUTr6UfXpoh/xPqm/br3B0AUWMX6O/drAKaWMLraHTFvUQk4chsonLwA3QR0d
 H7OCVT2ySweCpLcYvEOT5ytu46iGB5qRCma3HpCwTVVhUVo+HmmAkkcf71xWWjy9GOIG
 673A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version
 :content-transfer-encoding;
 bh=fo/qet8XKhkXAO1UreFCDWcEzXo3DunbbziJBcASkd8=;
 b=lU3IYkaifZ77NUJSeB2ncSQ8UN84vgXJk47K6fbmHKUyTkD9y+gtYas1IOlkSxkhPX
 rTHOoghSTsAneFKZquAj9DU67QXJUTBjg25AXNkI/HbxMSMs8LnUHRtVp90aYnY6WwI8
 yq5TsQWYXCZNzSiMrJ6g2AOss9qHufH7MNQQnt1uHs5vBfyztG2hLHD3ykFHHlCAQpMH
 JmWqN8AI6CLhITrzQA1PQ+vFBtxfxRPD91fYbtTOXbcPWDxUoFLkdYBnjTytWZEzWEMt
 RoYyQJ0rRUeCnLen/v/sIQHn4kK1XsysLkdOIIR/oALEtr0TE2jvpi+fOcosClha0Pde
 Fcsg==
X-Gm-Message-State: ALyK8tKGR+51N28Id+pZaDgE2f7UM0OYAMA2Aqz9CYAZulwDjP9FMGta86x675LrOneXFA==
X-Received: by 10.36.14.76 with SMTP id 73mr6891457ite.70.1467603062297;
 Sun, 03 Jul 2016 20:31:02 -0700 (PDT)
Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44])
 by smtp.googlemail.com with ESMTPSA id f69sm987282ioj.39.2016.07.03.20.31.01
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 03 Jul 2016 20:31:01 -0700 (PDT)
From: npostavs@HIDDEN
To: "Kelly Dean" <kelly@HIDDEN>
Subject: Re: bug#19471: Emacs can't copy text
References: <VckpTvtqmEIv1BN6wuuZBdhRWidSb9kHIiUd1g02dHi@local>
Date: Sun, 03 Jul 2016 23:31:09 -0400
In-Reply-To: <VckpTvtqmEIv1BN6wuuZBdhRWidSb9kHIiUd1g02dHi@local> (Kelly Dean's
 message of "Tue, 30 Dec 2014 09:53:52 +0000")
Message-ID: <87a8hydqpu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 19471
Cc: 19471 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

retitle 19471 Can't copy display-string text
severity 19471 wishlist
found 19471 25.0.95
quit

"Kelly Dean" <kelly@HIDDEN> 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 > Translat=
ion 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 us=
er-unfriendliness for a text editor.
> See my message =E2=8C=9CRe: Correspondence between web-pages and Info-pag=
es=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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19471; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Dec 2014 09:56:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 30 04:56:24 2014
Received: from localhost ([127.0.0.1]:60718 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Y5tXL-0005uu-KG
	for submit <at> debbugs.gnu.org; Tue, 30 Dec 2014 04:56:23 -0500
Received: from eggs.gnu.org ([208.118.235.92]:51692)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <kelly@HIDDEN>) id 1Y5tXI-0005uj-HJ
 for submit <at> debbugs.gnu.org; Tue, 30 Dec 2014 04:56:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <kelly@HIDDEN>) id 1Y5tXH-0007ky-9G
 for submit <at> debbugs.gnu.org; Tue, 30 Dec 2014 04:56:20 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:55959)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kelly@HIDDEN>) id 1Y5tXH-0007ku-6g
 for submit <at> debbugs.gnu.org; Tue, 30 Dec 2014 04:56:19 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53408)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kelly@HIDDEN>) id 1Y5tXG-0001KP-7z
 for bug-gnu-emacs@HIDDEN; Tue, 30 Dec 2014 04:56:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <kelly@HIDDEN>) id 1Y5tXC-0007k9-6c
 for bug-gnu-emacs@HIDDEN; Tue, 30 Dec 2014 04:56:18 -0500
Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:44031)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kelly@HIDDEN>) id 1Y5tXC-0007jt-0S
 for bug-gnu-emacs@HIDDEN; Tue, 30 Dec 2014 04:56:14 -0500
Received: from mfilter22-d.gandi.net (mfilter22-d.gandi.net [217.70.178.150])
 by relay6-d.mail.gandi.net (Postfix) with ESMTP id 369ADFB87F
 for <bug-gnu-emacs@HIDDEN>; Tue, 30 Dec 2014 10:56:13 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter22-d.gandi.net
Received: from relay6-d.mail.gandi.net ([217.70.183.198])
 by mfilter22-d.gandi.net (mfilter22-d.gandi.net [10.0.15.180]) (amavisd-new,
 port 10024) with ESMTP id 5rnzYMzkQ5wj for <bug-gnu-emacs@HIDDEN>;
 Tue, 30 Dec 2014 10:56:11 +0100 (CET)
X-Originating-IP: 162.248.99.114
Received: from localhost (114-99-248-162-static.reverse.queryfoundry.net
 [162.248.99.114]) (Authenticated sender: kelly@HIDDEN)
 by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 0CFD8FB8C7
 for <bug-gnu-emacs@HIDDEN>; Tue, 30 Dec 2014 10:55:04 +0100 (CET)
From: "Kelly Dean" <kelly@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Emacs can't copy text
Date: Tue, 30 Dec 2014 09:53:52 +0000
Message-ID: <VckpTvtqmEIv1BN6wuuZBdhRWidSb9kHIiUd1g02dHi@local>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

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 > Translat=
ion 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 us=
er-unfriendliness for a text editor.
See my message =E2=8C=9CRe: Correspondence between web-pages and Info-pag=
es=E2=8C=9D in emacs-devel for why this matters.

I tried switching the buffer to fundamental mode in order to copy the tex=
t, but that didn't solve the problem, so Emacs apparently has some kind o=
f low-level text-mangling voodoo that hijacks kill-ring-save.

Yes, the Info page name is effectively like an HTML page title, and web b=
rowsers don't let you copy the title either, at least not without some sp=
ecial effort. But at least web browsers don't mislead you by letting you =
select the title text and perform an apparently-successful copy operation=
, which you only discover copied the wrong text when you try to paste it.




Acknowledgement sent to "Kelly Dean" <kelly@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#19471; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.