emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about copy-region-as-kill


From: Alex Schroeder
Subject: Re: Question about copy-region-as-kill
Date: Sat, 06 Apr 2002 20:05:20 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu)

address@hidden (Kai Großjohann) 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.
-- 
http://www.emacswiki.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]