Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: Yanking text without properties?
Date: Tue, 13 Jul 2004 07:29:41 +0900	[thread overview]
Message-ID: <b9yllhozwoa.fsf@jpl.org> (raw)
In-Reply-To: <m2oemljius.fsf@c-b75372d5.036-4-67626721.cust.bredbandsbolaget.se>

>>>>> In <m2oemljius.fsf@c-b75372d5.036-4-67626721.cust.bredbandsbolaget.se>
>>>>>	Jonas Steverud <tvrud@bredband.net> wrote:

> My question is; is there a yank-without-face, yank-without-properties
> or similar piece of code? I have not been able to found any.

This is another approach, stripping properties when copying or
killing instead of yanking.  You only have to type `C-x C-e'
after the closing parenthesis.

(defadvice kill-new (before strip-text-props activate)
  "Strip text properties from a killed string."
  (set-text-properties 0 (length (ad-get-arg 0)) nil (ad-get-arg 0)))
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



  parent reply	other threads:[~2004-07-12 22:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-12 16:22 Jonas Steverud
2004-07-12 18:24 ` Steve Youngs
2004-07-12 22:37   ` Jonas Steverud
2004-07-12 22:29 ` Katsumi Yamaoka [this message]
2004-07-16 16:41 ` Ted Zlatanov

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=b9yllhozwoa.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).