From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday S Reddy Newsgroups: gmane.emacs.bugs Subject: bug#8376: 23.3; font-lock-face doesn't get yanked Date: Tue, 29 Mar 2011 21:24:07 +0100 Message-ID: <19858.16359.847000.710144@gargle.gargle.HOWL> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301431066 18475 80.91.229.12 (29 Mar 2011 20:37:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 20:37:46 +0000 (UTC) Cc: Uday S Reddy , 8376@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 22:37:33 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 1Q4ffQ-0002g4-MY for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2011 22:37:33 +0200 Original-Received: from localhost ([127.0.0.1]:37211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4ffQ-0000Fg-0C for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2011 16:37:32 -0400 Original-Received: from [140.186.70.92] (port=42542 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4ff8-0000Cy-M6 for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 16:37:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4ff7-00048H-DI for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 16:37:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4ff7-000488-Bi for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 16:37:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q4fTK-0008Gc-1P; Tue, 29 Mar 2011 16:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Uday S Reddy Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2011 20:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8376-submit@debbugs.gnu.org id=B8376.130143026131731 (code B ref 8376); Tue, 29 Mar 2011 20:25:01 +0000 Original-Received: (at 8376) by debbugs.gnu.org; 29 Mar 2011 20:24:21 +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 1Q4fSe-0008Fi-BX for submit@debbugs.gnu.org; Tue, 29 Mar 2011 16:24:20 -0400 Original-Received: from sun61.bham.ac.uk ([147.188.128.150]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4fSa-0008FW-TJ for 8376@debbugs.gnu.org; Tue, 29 Mar 2011 16:24:18 -0400 Original-Received: from [147.188.128.127] (helo=bham.ac.uk) by sun61.bham.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1Q4fSV-0006Ks-O1; Tue, 29 Mar 2011 21:24:11 +0100 Original-Received: from mx1.cs.bham.ac.uk ([147.188.192.53]) by bham.ac.uk (envelope-from ) with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.72) id 1Q4fSV-0001ys-E1 using interface smart1.bham.ac.uk; Tue, 29 Mar 2011 21:24:11 +0100 Original-Received: from acws-0068.cs.bham.ac.uk ([147.188.194.56]) by mx1.cs.bham.ac.uk with esmtp (Exim 4.51) id 1Q4fST-0001TF-Lk; Tue, 29 Mar 2011 21:24:09 +0100 In-Reply-To: X-Mailer: VM 8.1.93a under 22.2.1 (i386-mingw-nt5.1.2600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 29 Mar 2011 16:25: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:45482 Archived-At: Glenn Morris writes: > Well yes, people used to complain that copying text would copy unwanted > font-locking along with it. Eg > > http://lists.gnu.org/archive/html/emacs-devel/2006-09/msg00981.html > > Why do you think it should be preserved? My context was in writing email messages in mail-mode/message-mode, both of which use font-lock to fontify the headers and the cited text. VM has functions that put "attachment buttons" into the mail-mode buffers, which are have data stored in text properties. I wanted to put a face on them to make them look like "buttons". It works fine normally but it is not preserved under killing and yanking. I find the above thread a bit confused, or perhaps I am hopelessly confused. It appears that the 'font-lock-face property has been installed so that font-lock-mode doesn't mess with it. I don't see any "unwanted font-locking" in the 'font-lock-face property. So, why should it be erased by yanking? It should work the same way as the 'face property works in a non-font-lock-mode buffer. Certainly, when you want to move text around within a single buffer, you don't want to lose faces by killing and yanking. If it gives undesirable results when people want to move text from one buffer to another, then they might need to use a separate function to erase the fontification or they might use the yank-excluded-properties variable to exclude font-lock-face. Perhaps, I should reopen the discussion in the emacs-dev list? Cheers, Uday