From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: M-w, then C-y. C-y inserts text properties that aren't on original. Date: Mon, 22 Feb 2010 23:43:52 -0500 Message-ID: References: <20100218202902.GE2671@muc.de> <838wapy3yo.fsf@gnu.org> <20100219122419.GA918@muc.de> <20100219143513.GC918@muc.de> <83r5ogwa8g.fsf@gnu.org> <83pr40w96f.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1266900266 28989 80.91.229.12 (23 Feb 2010 04:44:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2010 04:44:26 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 23 05:44:16 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Njmd6-0006nU-00 for ged-emacs-devel@m.gmane.org; Tue, 23 Feb 2010 05:44:16 +0100 Original-Received: from localhost ([127.0.0.1]:46404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Njmd5-0002lr-IJ for ged-emacs-devel@m.gmane.org; Mon, 22 Feb 2010 23:44:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Njmd0-0002lS-2h for emacs-devel@gnu.org; Mon, 22 Feb 2010 23:44:10 -0500 Original-Received: from [140.186.70.92] (port=39767 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Njmcv-0002lD-AG for emacs-devel@gnu.org; Mon, 22 Feb 2010 23:44:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Njmcq-0002u5-TC for emacs-devel@gnu.org; Mon, 22 Feb 2010 23:44:05 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:30514 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Njmcl-0002tH-7j; Mon, 22 Feb 2010 23:43:55 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAGbrgktMCrQJ/2dsb2JhbACbAHS7DYRpBIMVh2I X-IronPort-AV: E=Sophos;i="4.49,523,1262581200"; d="scan'208";a="56537786" Original-Received: from 76-10-180-9.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.9]) by ironport2-out.pppoe.ca with ESMTP; 22 Feb 2010 23:43:53 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0DB26B429B; Mon, 22 Feb 2010 23:43:52 -0500 (EST) In-Reply-To: <83pr40w96f.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 20 Feb 2010 11:25:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121290 Archived-At: >> I wonder if we could make the code which replaces `category' with what >> it stands for, with a slightly less general code that replaces only >> those values of `category' that are used for buttons. Or some similar >> change which will make that feature more focused on the problem it >> needs to solve. > Here's one idea: make a deep search through the properties of the > value of the `category' property, looking for any of the properties in > `yank-excluded-properties'. If found, do the replacement we do now. Another one is to use of a `yank-excluded-category' property on the symbols used for categories to decide how to handle them. Stefan