From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.devel Subject: Re: Question about copy-region-as-kill Date: Sat, 06 Apr 2002 20:05:20 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <87zo0gu2hr.fsf@emacswiki.org> References: <87ofh09xjq.fsf@alice.dynodns.net> <200204050602.g3562Dl18586@aztec.santafe.edu> <87bscx7rlf.fsf@alice.dynodns.net> <3791-Sat06Apr2002101927+0300-eliz@is.elta.co.il> <873cy9nsom.fsf@alice.dynodns.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1018116207 15006 127.0.0.1 (6 Apr 2002 18:03:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2002 18:03:27 +0000 (UTC) Cc: Karl Eichwalder , John Wiegley , emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16tuX9-0003tv-00 for ; Sat, 06 Apr 2002 20:03:27 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16tukh-0003eB-00 for ; Sat, 06 Apr 2002 20:17:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16tuWw-00033J-00; Sat, 06 Apr 2002 13:03:14 -0500 Original-Received: from relay01.cablecom.net ([62.2.33.101]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16tuW0-00031p-00; Sat, 06 Apr 2002 13:02:16 -0500 Original-Received: from smtp.swissonline.ch (mail-4.swissonline.ch [62.2.32.85]) by relay01.cablecom.net (8.11.6/8.11.4/SOL/AWF/MXRELAY/06072001) with ESMTP id g36I2E256497; Sat, 6 Apr 2002 20:02:14 +0200 (CEST) Original-Received: from confusibombus (dclient217-162-234-100.hispeed.ch [217.162.234.100]) by smtp.swissonline.ch (8.11.6/8.11.6/SMTPSOL/AWF/2002040101) with ESMTP id g36I2Dr07677; Sat, 6 Apr 2002 20:02:14 +0200 (MEST) Original-Received: from alex by confusibombus with local (Exim 3.12 #1 (Debian)) id 16tuYy-00005R-00; Sat, 06 Apr 2002 20:05:20 +0200 Original-To: Kai.Grossjohann@cs.uni-dortmund.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Sat, 06 Apr 2002 19:46:59 +0200") Original-Lines: 23 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2424 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2424 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > I guess that properties added by font-lock are different. To me, that sounds about right: If a text property was added by Emacs, ie. font-lock, then chances are high that in another buffer the text properties will be lost anyway (after saving and reloading, or when the font-lock for the new buffer kicks in). In this case, we might as well remove the text-properties anyway. And since such text-properties are only added by a selected few packages, we could add a list (special-text-properties?) of symbols to Emacs. The default value would be '(fontified) and probably some more. When text is yanked, any text covered by any of these text-properties will have all of its text-properties stripped for that area. Thus, if I kill some text it gets stored with text-properties (thus you can also save such a kill-ring to a file without loosing). When a normal user yanks such a text, however, all text properties (mostly the property 'face) will be removed for all text areas covered by the 'fontified text property -- this will undo face properties which font-lock added. Alex. --=20 http://www.emacswiki.org/