From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58108 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Yanking text without properties? Date: Tue, 13 Jul 2004 07:29:41 +0900 Organization: Emacsen advocacy group Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1089671467 5809 80.91.224.253 (12 Jul 2004 22:31:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jul 2004 22:31:07 +0000 (UTC) Original-X-From: ding-owner+M6649@lists.math.uh.edu Tue Jul 13 00:30:55 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bk9K2-00035h-00 for ; Tue, 13 Jul 2004 00:30:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Bk9J9-0003Ry-00; Mon, 12 Jul 2004 17:29:59 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Bk9J1-0003Rq-00 for ding@lists.math.uh.edu; Mon, 12 Jul 2004 17:29:51 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Bk9Ix-0007q8-E1 for ding@lists.math.uh.edu; Mon, 12 Jul 2004 17:29:47 -0500 Original-Received: from washington.hostforweb.net (washington.hostforweb.net [69.61.11.2]) by justine.libertine.org (Postfix) with ESMTP id DB58A3A0036 for ; Mon, 12 Jul 2004 17:29:45 -0500 (CDT) Original-Received: from yamaoka by washington.hostforweb.net with local (Exim 4.34) id 1Bk9J0-0001RQ-36 for ding@gnus.org; Mon, 12 Jul 2004 18:29:50 -0400 Original-To: ding@gnus.org User-Agent: T-gnus/6.17.3 (based on No Gnus v0.3) Emacs/21.3.50 (gnu/linux) X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:67+NzXKwVKkO/MOR6DodD+Ri/Hc= X-Hashcash: 0:040712:ding@gnus.org:21d7e4be72522d5b X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [32041 32041] / [47 12] X-AntiAbuse: Sender Address Domain - washington.hostforweb.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58108 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58108 >>>>> In >>>>> Jonas Steverud 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