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#8384: 24.0.50; Yanking and text properties Date: Thu, 31 Mar 2011 00:26:14 +0200 Message-ID: <8762r0utx5.fsf@escher.fritz.box> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301524650 26241 80.91.229.12 (30 Mar 2011 22:37:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2011 22:37:30 +0000 (UTC) To: 8384@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 31 00:37:24 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q540w-0006ZG-IF for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Mar 2011 00:37:22 +0200 Original-Received: from localhost ([127.0.0.1]:40750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q540w-0002Wh-2O for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Mar 2011 18:37:22 -0400 Original-Received: from [140.186.70.92] (port=52957 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q540n-0002Vz-5T for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 18:37:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q540l-0003o5-DA for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 18:37:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q540l-0003o1-4s for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 18:37:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q53qw-00044p-Fq; Wed, 30 Mar 2011 18:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Mar 2011 22:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8384 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130152399115631 (code B ref -1); Wed, 30 Mar 2011 22:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Mar 2011 22:26:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q53qQ-000444-Sk for submit@debbugs.gnu.org; Wed, 30 Mar 2011 18:26:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q53qO-00043r-Nn for submit@debbugs.gnu.org; Wed, 30 Mar 2011 18:26:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q53qI-0001nM-Mr for submit@debbugs.gnu.org; Wed, 30 Mar 2011 18:26:23 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:51330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q53qI-0001nI-Js for submit@debbugs.gnu.org; Wed, 30 Mar 2011 18:26:22 -0400 Original-Received: from [140.186.70.92] (port=39275 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q53qH-0005wm-Dz for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 18:26:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q53qF-0001mg-B1 for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 18:26:21 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:42097) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Q53qF-0001mG-0P for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 18:26:19 -0400 Original-Received: (qmail invoked by alias); 30 Mar 2011 22:26:15 -0000 Original-Received: from i59F5412C.versanet.de (EHLO escher.home) [89.245.65.44] by mail.gmx.net (mp006) with SMTP; 31 Mar 2011 00:26:15 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1+mMRp10lambTzn3dH+6Z02/28ZLZfUMndDyC1oub BSf825j6UKffg4 Original-Received: by escher.home (Postfix, from userid 1000) id 038FE62965; Thu, 31 Mar 2011 00:26:14 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 30 Mar 2011 18:27:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45510 Archived-At: 1. emacs -Q 2. Enter text in a buffer and select it, e.g.: `C-x b a RET test C-SPC C-a' 3. Put a face or display text property on the selected text, e.g.: `M-o b' 4. Put the propertized text on the kill ring: `C-SPC C-e M-w'. 5. Yank it in another buffer: `C-x b b RET C-y' => The yanked text in buffer b is propertized as in buffer a. Now repeat steps 2 and 3, and instead of repeating step 4, double-click on the text with mouse-1 to make it the primary selection, and instead of repeating step 5, do `C-x b b RET ' to yank that selection. => The yanked text in buffer b is not propertized. Is this difference between the two types of yanking a programming bug or a feature (of the primary selection?) that is AFAICS undocumented and hence a doc bug? The comment by Glenn Morris in bug#8376 (http://permalink.gmane.org/gmane.emacs.bugs/45480) suggests the former, namely, that yanking by C-y should also not preserve text properties. Note, however, that mouse-yank-at-click behaves like C-y and not like mouse-yank-primary. (Or is it only font-locking, not face and display properties, that aren't supposed to be preserved any more? Note also that if other text properties, e.g. invisible or intangible, are applied in the first recipe, yanking with C-y does not preserve these.) In GNU Emacs 24.0.50.1 (i686-suse-linux-gnu, GTK+ Version 2.20.1) of 2011-03-30 on escher Windowing system distributor `The X.Org Foundation', version 11.0.10800000 configured using `configure '--without-toolkit-scroll-bars' 'CFLAGS=-g -O2 -fno-optimize-sibling-calls'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t