From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#29013: 25.3; [wishlist] do not yank whitespace Date: Thu, 26 Oct 2017 17:52:34 +0200 Message-ID: References: <87mv4d3oki.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1509033189 29787 195.159.176.226 (26 Oct 2017 15:53:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Oct 2017 15:53:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: 29013@debbugs.gnu.org To: Alex Branham Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 26 17:53:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kSu-0007Bt-UP for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Oct 2017 17:53:05 +0200 Original-Received: from localhost ([::1]:53562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7kT2-0005BS-1y for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Oct 2017 11:53:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7kSw-00059t-8I for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 11:53:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7kSs-0001CE-9Y for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 11:53:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7kSs-0001C4-70 for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 11:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7kSr-0004MJ-S6 for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 11:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2017 15:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29013-submit@debbugs.gnu.org id=B29013.150903315816726 (code B ref 29013); Thu, 26 Oct 2017 15:53:01 +0000 Original-Received: (at 29013) by debbugs.gnu.org; 26 Oct 2017 15:52:38 +0000 Original-Received: from localhost ([127.0.0.1]:35255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kSU-0004Li-5J for submit@debbugs.gnu.org; Thu, 26 Oct 2017 11:52:38 -0400 Original-Received: from mx2.suse.de ([195.135.220.15]:34542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kSR-0004La-Ng for 29013@debbugs.gnu.org; Thu, 26 Oct 2017 11:52:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C0AD9ADE2; Thu, 26 Oct 2017 15:52:34 +0000 (UTC) X-Yow: Didn't I buy a 1951 Packard from you last March in Cairo? In-Reply-To: <87mv4d3oki.fsf@gmail.com> (Alex Branham's message of "Thu, 26 Oct 2017 10:40:13 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:139010 Archived-At: On Okt 26 2017, Alex Branham wrote: > It would be nice to have an option so that yank never returns pure whitespace. The current behavior is such that if we have: > > #+BEGIN_EXAMPLE > some text here > > some text there| > #+END_EXAMPLE > > > with | representing where point is, if you execute C-SPC C-a M-w C-p C-k C-p C-y then you end up with: > > #+BEGIN_EXAMPLE > > some text here > some text there > #+END_EXAMPLE > > > but I would like to end up with: > > #+BEGIN_EXAMPLE > some text there > some text here > some text there > #+END_EXAMPLE Just type M-y (yank-pop) to get the next element from the kill ring. You can also use DEL to delete the empty line without polluting the kill ring. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."