From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#4538: 23.1; kill-line doesn't with show-trailing-whitespace Date: Sun, 18 Sep 2011 10:36:45 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316335528 8975 80.91.229.12 (18 Sep 2011 08:45:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2011 08:45:28 +0000 (UTC) Cc: andy.ling@quantel.com, 4538@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 18 10:45:21 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R5D04-0002rj-G2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Sep 2011 10:45:20 +0200 Original-Received: from localhost ([::1]:34983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5D04-00032I-35 for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Sep 2011 04:45:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5Czz-0002wC-Ge for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 04:45:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5Czv-00056g-Hx for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 04:45:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5Czv-00056R-Au for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 04:45:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R5D4f-0003WW-Dn for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 04:50:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2011 08:50:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4538 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 4538-submit@debbugs.gnu.org id=B4538.131633575013456 (code B ref 4538); Sun, 18 Sep 2011 08:50:05 +0000 Original-Received: (at 4538) by debbugs.gnu.org; 18 Sep 2011 08:49:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5D3l-0003Ut-JJ for submit@debbugs.gnu.org; Sun, 18 Sep 2011 04:49:10 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5D3b-0003Tj-Sn for 4538@debbugs.gnu.org; Sun, 18 Sep 2011 04:49:02 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R5Cyk-000621-FC; Sun, 18 Sep 2011 10:43:58 +0200 In-Reply-To: (Glenn Morris's message of "Wed, 23 Sep 2009 23:28:41 -0400") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Eurythmics's _Touch_: "Aqua" X-MailScanner-ID: 1R5Cyk-000621-FC MailScanner-NULL-Check: 1316940239.03969@UcMprvv+CGC2Ut2kTIMN/w X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 18 Sep 2011 04:50:05 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51358 Archived-At: Glenn Morris 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/