bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Magne Ingebrigtsen
Subject: bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace
Date: Sun, 18 Sep 2011 10:36:45 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Glenn Morris <rgm@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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]