emacs-devel
[Top][All Lists]
Advanced

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

Re: Copying preserves font-lock-face


From: Nick Roberts
Subject: Re: Copying preserves font-lock-face
Date: Sun, 24 Sep 2006 18:13:25 +1200

 > Does this happen with emacs -Q too?

Yes.

 > (defun font-lock-default-unfontify-region (beg end)
 >    (remove-list-of-text-properties
 >     beg end (append
 >          font-lock-extra-managed-props
 >          (if font-lock-syntactic-keywords
 >              '(syntax-table face font-lock-multiline)
 >            '(face font-lock-multiline)))))
 > 
 > removes _all_ face properties.  Hence, either the properties you mention
 > are not face properties or something goes wrong with fontification after
 > a buffer change.

Yes but face and font-lock-face are different character properties and I'm
talking about the latter.

 >  > Is there a reason why font-lock-face should be preserved on copying?
 > 
 > In some rare cases, I find it useful to see remnants of faces assigned
 > by font-lock when I copy a stretch of code to a plain text buffer.
 > Hence, in principle, preserving such face properties does not seem
 > wrong.

Are faces assigned by font-lock and font-lock-faces the same thing?

-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

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