[Top][All Lists]
[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
- Copying preserves font-lock-face, Nick Roberts, 2006/09/22
- Re: Copying preserves font-lock-face, martin rudalics, 2006/09/23
- Re: Copying preserves font-lock-face,
Nick Roberts <=
- Re: Copying preserves font-lock-face, martin rudalics, 2006/09/24
- Re: Copying preserves font-lock-face, Nick Roberts, 2006/09/24
- Re: Copying preserves font-lock-face, Miles Bader, 2006/09/24
- Re: Copying preserves font-lock-face, Richard Stallman, 2006/09/24
- Re: Copying preserves font-lock-face, Chong Yidong, 2006/09/25
- Re: Copying preserves font-lock-face, Richard Stallman, 2006/09/26
- Re: Copying preserves font-lock-face, Stefan Monnier, 2006/09/26
- Re: Copying preserves font-lock-face, Richard Stallman, 2006/09/26
Re: Copying preserves font-lock-face, Richard Stallman, 2006/09/23