From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner LEMBERG Newsgroups: gmane.emacs.devel Subject: Re: `make-overlay' very slow Date: Sat, 11 Apr 2009 09:45:07 +0200 (CEST) Message-ID: <20090411.094507.93632591.wl@gnu.org> References: <20090411.081150.169736792.wl@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1239435925 19433 80.91.229.12 (11 Apr 2009 07:45:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2009 07:45:25 +0000 (UTC) Cc: acm@muc.de, schwab@linux-m68k.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: lennart.borgman@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 11 09:46:43 2009 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.50) id 1LsXvG-00084I-Q4 for ged-emacs-devel@m.gmane.org; Sat, 11 Apr 2009 09:46:43 +0200 Original-Received: from localhost ([127.0.0.1]:40952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsXts-0000JJ-Cx for ged-emacs-devel@m.gmane.org; Sat, 11 Apr 2009 03:45:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LsXtn-0000In-BW for emacs-devel@gnu.org; Sat, 11 Apr 2009 03:45:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LsXtj-0000IE-CW for emacs-devel@gnu.org; Sat, 11 Apr 2009 03:45:11 -0400 Original-Received: from [199.232.76.173] (port=52950 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsXtj-0000I9-7g for emacs-devel@gnu.org; Sat, 11 Apr 2009 03:45:07 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:44959) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LsXti-0004bU-Cg for emacs-devel@gnu.org; Sat, 11 Apr 2009 03:45:06 -0400 Original-Received: (qmail invoked by alias); 11 Apr 2009 07:45:04 -0000 Original-Received: from 77-20-101-114-dynip.superkabel.de (EHLO localhost) [77.20.101.114] by mail.gmx.net (mp045) with SMTP; 11 Apr 2009 09:45:04 +0200 X-Authenticated: #54312696 X-Provags-ID: V01U2FsdGVkX1/OrSojX9TO+ZMWzrZBt7aMDiXSG3HUbrGDegM95O wbjexLkQBAWj58 In-Reply-To: X-Mailer: Mew version 6.2.50 on Emacs 22.3.1 / Mule 5.0 (SAKAKI) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.8 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:110205 Archived-At: >> I did that (see attachment for reference), and it really works at a >> reasonable speed. =A0However, it is the completely wrong concept >> since it sets the `modified' flag and stores undo information, > = > There is a macro in font-lock.el that you can use to modify text > properties without storing undo information or setting the modified > flag. Thanks, will update my code. However, it isn't a general solution since my function should essentially work with all modes. Werner