all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: Uday S Reddy <u.s.reddy@cs.bham.ac.uk>
Cc: 8376@debbugs.gnu.org
Subject: bug#8376: 23.3; font-lock-face doesn't get yanked
Date: Sat, 18 Aug 2012 13:36:08 +0800	[thread overview]
Message-ID: <87has0oj7b.fsf@gnu.org> (raw)
In-Reply-To: <19858.16359.847000.710144@gargle.gargle.HOWL> (Uday S. Reddy's message of "Tue, 29 Mar 2011 21:24:07 +0100")

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.





      reply	other threads:[~2012-08-18  5:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-29 17:27 bug#8376: 23.3; font-lock-face doesn't get yanked Uday S Reddy
2011-03-29 19:08 ` Glenn Morris
2011-03-29 20:24   ` Uday S Reddy
2012-08-18  5:36     ` Chong Yidong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87has0oj7b.fsf@gnu.org \
    --to=cyd@gnu.org \
    --cc=8376@debbugs.gnu.org \
    --cc=u.s.reddy@cs.bham.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.