From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: font-lock question Date: Sat, 14 Feb 2004 19:47:42 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ad3llcq9.fsf@emptyhost.emptydomain.de> References: <87znbo9u7t.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076785328 22266 80.91.224.253 (14 Feb 2004 19:02:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2004 19:02:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 20:02:02 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1As53C-0005Ny-00 for ; Sat, 14 Feb 2004 20:02:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1As52F-0000WC-BA for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2004 14:01:03 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!213-203-244-156.kunde.vdserver.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de (213.203.244.156) Original-X-Trace: news.uni-berlin.de 1076784454 42599869 D 213.203.244.156 ([73968] 10430) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:Ja3AXqgBMSdtXIvOISKZuClWbnI= Original-Xref: shelby.stanford.edu gnu.emacs.help:120908 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16857 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16857 "Javier Oviedo" writes: > How do I do this? I was being obtuse. This is not good. Argh. It is so easy to hide one's own ignorance behind some mists of vagueness. > Occur mode has already copied the line to the buffer for me. It > sounds like you are suggesting that I implement this copy myself but > I'm not sure how to override the occur copy nor how to copy the > faces with the text. Any hints...thoughts...suggestions? Thanks! "Normal" copies should preserve the text properties, I think. So maybe something in occur mode is overwriting them afterwards, or occur mode uses buffer-substring-no-properties to strip them. Or is a yank handler stripping them? It's unlikely for yanking to happen, though. I *should* be looking at the source code myself :-| Kai