Subject: Re: bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace

From: Glenn Morris <[email-masked]>
Date: Wed, 23 Sep 2009 23:28:41 -0400

[email-masked] wrote:

> Run emacs -q
> open a buffer and enter a line of spaces
> go to the beginning of line and kill line (C-a C-k)
> The line is deleted through the newline to the next line
> Now execute (setq show-trailing-whitespace t)
> Again enter a line of spaces and go to the beginning of the line.
> This time the spaces should be hilighted in red.
> Now kill the line. The line is only killed up to the newline.

It seems this is deliberate:

http://lists.gnu.org/archive/html/emacs-devel/2004-02/msg00190.html

At first glance, it does seem a bit odd. It is also undocumented.