unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: andy.ling@quantel.com, 4538@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	[thread overview]
Message-ID: <m3ipoqxn4y.fsf@stories.gnus.org> (raw)
In-Reply-To: <x64oqt58d2.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 23 Sep 2009 23:28:41 -0400")

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/





  parent reply	other threads:[~2011-09-18  8:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23 14:13 bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace andy.ling
2009-09-24  3:28 ` Glenn Morris
2009-09-24  8:48   ` andy.ling
2009-09-25  6:17     ` Glenn Morris
2009-09-25 10:47       ` andy.ling
2011-09-18  8:36   ` Lars Magne Ingebrigtsen [this message]
2011-09-22  7:13     ` Glenn Morris
2011-09-23 10:56       ` Lars Magne Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m3ipoqxn4y.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=4538@debbugs.gnu.org \
    --cc=andy.ling@quantel.com \
    --cc=rgm@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).