Subject: bug#6304: 23.2; advising yank

From: [email-masked] (Johan Bockgård)
Date: Sun, 30 May 2010 02:22:18 +0200

Leo <[email-masked]> writes:

> 1. (defadvice yank (after random-advice activate)
>       (message "hello world"))
>
> 2. C-h f yank RET
>
> The string "This function is advised." is not highlighted with the
> warning face.

The highlighting is removed by substitute-command-keys:

    Returns original STRING if no substitutions were made. Otherwise, a
    new string, without any text properties, is returned.