[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8376: 23.3; font-lock-face doesn't get yanked
From: |
Chong Yidong |
Subject: |
bug#8376: 23.3; font-lock-face doesn't get yanked |
Date: |
Sat, 18 Aug 2012 13:36:08 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
Uday S Reddy <u.s.reddy@cs.bham.ac.uk> writes:
> My context was in writing email messages in mail-mode/message-mode,
> both of which use font-lock to fontify the headers and the cited text.
>
> VM has functions that put "attachment buttons" into the mail-mode
> buffers, which are have data stored in text properties. I wanted to
> put a face on them to make them look like "buttons". It works fine
> normally but it is not preserved under killing and yanking.
The reason font-lock-face is removed in buffers in which font-lock is
active is that font-lock-face is typically applied by programs, so it
would be wrong for a user-level operation like yanking to apply it.
This is a rule of thumb; there is no right or wrong answer. If you
prefer to preserve font-lock-face, I've added to trunk a new option
`yank-handled-properties' which can be customized to get the behavior
you want.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#8376: 23.3; font-lock-face doesn't get yanked,
Chong Yidong <=