all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Alex Branham <alex.branham@gmail.com>
Cc: 29013@debbugs.gnu.org
Subject: bug#29013: 25.3; [wishlist] do not yank whitespace
Date: Thu, 26 Oct 2017 17:52:34 +0200	[thread overview]
Message-ID: <mvmlgjxvrct.fsf@suse.de> (raw)
In-Reply-To: <87mv4d3oki.fsf@gmail.com> (Alex Branham's message of "Thu, 26 Oct 2017 10:40:13 -0500")

On Okt 26 2017, Alex Branham <alex.branham@gmail.com> 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."





  reply	other threads:[~2017-10-26 15:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26 15:40 bug#29013: 25.3; [wishlist] do not yank whitespace Alex Branham
2017-10-26 15:52 ` Andreas Schwab [this message]
2017-10-26 15:56   ` Alex Branham
2021-06-30 13:56 ` Lars 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

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

  git send-email \
    --in-reply-to=mvmlgjxvrct.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=29013@debbugs.gnu.org \
    --cc=alex.branham@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.