GNU bug report logs - #4538
23.1; kill-line doesn't with show-trailing-whitespace

Previous Next

Package: emacs;

Reported by: andy.ling <at> quantel.com

Date: Wed, 23 Sep 2009 14:25:06 UTC

Severity: normal

Tags: fixed

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: andy.ling <at> quantel.com, 4538 <at> debbugs.gnu.org
Subject: bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
Date: Sun, 18 Sep 2011 10:36:45 +0200
Glenn Morris <rgm <at> gnu.org> writes:

>> 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.

It seems odd, but it makes a bit of sense.  `C-k' works differently when
there is visible text on the current line and when there's not.  That's
(somewhat) consistent.

So my feeling is that this should just be documented.

The current doc string says:

---
Kill the rest of the current line; if no nonblanks there, kill thru newline.
---

I think this should just be amended to say "visible nonblanks" and point
to `show-trailing-whitespace'.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




This bug report was last modified 13 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.