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: xml-parse-file and text properties Date: Mon, 24 Jul 2006 16:51:10 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153774427 19328 80.91.229.2 (24 Jul 2006 20:53:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2006 20:53:47 +0000 (UTC) Cc: emacs-devel@gnu.org, jdsmith@as.arizona.edu, Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 24 22:53:45 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G57Qg-0007Dq-4i for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2006 22:53:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G57Qf-0003bv-KI for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2006 16:53:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G57QU-0003aT-Ur for emacs-devel@gnu.org; Mon, 24 Jul 2006 16:53:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G57QT-0003a1-4J for emacs-devel@gnu.org; Mon, 24 Jul 2006 16:53:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G57QS-0003Zy-Us for emacs-devel@gnu.org; Mon, 24 Jul 2006 16:53:17 -0400 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G57RV-0006K6-UC; Mon, 24 Jul 2006 16:54:22 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by mx20.gnu.org with esmtp (Exim 4.52) id 1G57Q3-0001cH-Ny; Mon, 24 Jul 2006 16:52:53 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 551532CEB78; Mon, 24 Jul 2006 16:51:19 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 15D02445C; Mon, 24 Jul 2006 16:51:11 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id EDE7A6C9DD; Mon, 24 Jul 2006 16:51:10 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 24 Jul 2006 14:22:05 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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:57572 Archived-At: > One first step would be to write a function that operates on a string > and discards all text properties except composition. More generally, > all except a certain specified list of property names. > I think that should be done at the C level for speed. Note that this won't be useful for Emacs-23 any more. I'm not sure it's wort the trouble. After all, it's not specific to xml.el, far from that. Are we going to go through every single using of buffer-substring and buffer-substring-no-properties and see what should be done for each of them? Stripping the `display' property may also result is text that's saved correctly but displayed incorrectly. Even `face' can do that (e.g. with X-Symbol). I don't think we want to go down that road right now. Stefan