all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Alex Branham <alex.branham@gmail.com>
Cc: 29013@debbugs.gnu.org
Subject: bug#29013: 25.3; [wishlist] do not yank whitespace
Date: Wed, 30 Jun 2021 15:56:12 +0200	[thread overview]
Message-ID: <871r8j4fsz.fsf@gnus.org> (raw)
In-Reply-To: <87mv4d3oki.fsf@gmail.com> (Alex Branham's message of "Thu, 26 Oct 2017 10:40:13 -0500")

Alex Branham <alex.branham@gmail.com> writes:

> It would be nice to have an option so that yank never returns pure
> whitespace.

I think that's a good idea -- or, to be more general, I think it would
be nice if there was a way to transform texts before they're put on the
kill ring, and possibly discard them.

So for this particular use case, the transformation function could
return nil to indicate that it shouldn't land in the kill ring.

So I've now added this to Emacs 28 under the name kill-transform-function.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      parent reply	other threads:[~2021-06-30 13:56 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
2017-10-26 15:56   ` Alex Branham
2021-06-30 13:56 ` Lars Ingebrigtsen [this message]

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=871r8j4fsz.fsf@gnus.org \
    --to=larsi@gnus.org \
    --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.