From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Copying preserves font-lock-face Date: Sat, 23 Sep 2006 12:43:19 +1200 Message-ID: <17684.33575.513181.276604@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1158972389 18180 80.91.229.2 (23 Sep 2006 00:46:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Sep 2006 00:46:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 23 02:46:25 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GQvex-0005kD-B4 for ged-emacs-devel@m.gmane.org; Sat, 23 Sep 2006 02:46:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQvew-0000y4-W8 for ged-emacs-devel@m.gmane.org; Fri, 22 Sep 2006 20:46:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GQvel-0000xz-Dy for emacs-devel@gnu.org; Fri, 22 Sep 2006 20:46:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GQvei-0000xn-LF for emacs-devel@gnu.org; Fri, 22 Sep 2006 20:46:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQvei-0000xk-GC for emacs-devel@gnu.org; Fri, 22 Sep 2006 20:46:08 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GQviY-0004ay-Ty for emacs-devel@gnu.org; Fri, 22 Sep 2006 20:50:07 -0400 Original-Received: from kahikatea.snap.net.nz (p202-124-125-90.snap.net.nz [202.124.125.90]) by viper.snap.net.nz (Postfix) with ESMTP id E3C9C7B9D2C for ; Sat, 23 Sep 2006 12:46:00 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 39302BE3A7; Sat, 23 Sep 2006 12:43:22 +1200 (NZST) Original-To: emacs-devel@gnu.org X-Mailer: VM 7.19 under Emacs 22.0.50.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60122 Archived-At: My jargon might be a bit wrong but here goes: If I copy text with a face into a fontified buffer it gets a face according to it's context e.g a word in a comment in c-mode to a keyword location (face goes from font-lock-comment-face to font-lock-keyword-face) If I copy text with a font-lock-face it keeps that property and doesn't acquire the face appropriate to it's new location e.g text from the grep buffer with font-lock-face `match' looks the same after being copied into a C file. I realise that I can remove font-lock-face with facemenu-remove-all but I don't see why I should need to. Is there a reason why font-lock-face should be preserved on copying? -- Nick http://www.inet.net.nz/~nickrob