From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49194: kill-whole-line 'plus-newline-even-if-none-in-reality Date: Thu, 24 Jun 2021 21:51:42 +0300 Message-ID: <83tulnrt8h.fsf@gnu.org> References: <87tuloegsa.5.fsf@jidanni.org> <87lf6zi6nq.fsf@gnus.org> <87sg17p2jd.5.fsf@jidanni.org> <87mtrff7ao.fsf@gnus.org> <83v963rtn3.fsf@gnu.org> <87im23f6cy.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33165"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49194@debbugs.gnu.org, jidanni@jidanni.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 24 20:53:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwUTP-0008Qe-00 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Jun 2021 20:53:11 +0200 Original-Received: from localhost ([::1]:56076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwUTO-0006sM-2H for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Jun 2021 14:53:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwUTG-0006pp-C3 for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 14:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwUTG-0004eS-2n for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 14:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwUTG-00010w-0w for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Jun 2021 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49194 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 49194-submit@debbugs.gnu.org id=B49194.16245607253816 (code B ref 49194); Thu, 24 Jun 2021 18:53:01 +0000 Original-Received: (at 49194) by debbugs.gnu.org; 24 Jun 2021 18:52:05 +0000 Original-Received: from localhost ([127.0.0.1]:44149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwUSK-0000zT-RY for submit@debbugs.gnu.org; Thu, 24 Jun 2021 14:52:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwUSI-0000yJ-9f for 49194@debbugs.gnu.org; Thu, 24 Jun 2021 14:52:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53346) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwUSB-00040g-BC; Thu, 24 Jun 2021 14:51:56 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1740 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwUSA-0004Aj-UW; Thu, 24 Jun 2021 14:51:55 -0400 In-Reply-To: <87im23f6cy.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 24 Jun 2021 20:46:37 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208965 Archived-At: > From: Lars Ingebrigtsen > Cc: jidanni@jidanni.org, 49194@debbugs.gnu.org > Date: Thu, 24 Jun 2021 20:46:37 +0200 > > Eli Zaretskii writes: > > > AFAIU, what the OP wants already happens: the newline is saved in > > kill-ring together with the line, and is yanked back with C-y. So I > > don't think I understand the request. > > He wants to kill the final line in a buffer (that might not have a > newline character at the end), but end up with a string in the kill ring > that does have a newline at the end. That makes no sense to me: the command kills a line of buffer text, it doesn't (and shouldn't) invent characters out of thin air. When there _is_ a newline at EOL, setting kill-whole-line will cause C-k to kill that newline as well; but if there's no newline there, why should this particular command with that option invent such a newline and save it in kill-ring?