From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: `make-overlay' very slow Date: Sat, 11 Apr 2009 09:46:39 +0200 Message-ID: References: <20090411.081150.169736792.wl@gnu.org> <20090411.094507.93632591.wl@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1239436023 19660 80.91.229.12 (11 Apr 2009 07:47:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2009 07:47:03 +0000 (UTC) Cc: acm@muc.de, schwab@linux-m68k.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Werner LEMBERG Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 11 09:48:21 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 1LsXwo-0008N5-Hh for ged-emacs-devel@m.gmane.org; Sat, 11 Apr 2009 09:48:19 +0200 Original-Received: from localhost ([127.0.0.1]:44824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsXvQ-0000oB-42 for ged-emacs-devel@m.gmane.org; Sat, 11 Apr 2009 03:46:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LsXvL-0000ng-33 for emacs-devel@gnu.org; Sat, 11 Apr 2009 03:46:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LsXvG-0000m0-5T for emacs-devel@gnu.org; Sat, 11 Apr 2009 03:46:46 -0400 Original-Received: from [199.232.76.173] (port=53015 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsXvF-0000lx-U3 for emacs-devel@gnu.org; Sat, 11 Apr 2009 03:46:41 -0400 Original-Received: from mail-fx0-f166.google.com ([209.85.220.166]:58783) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LsXvE-0004sY-8i; Sat, 11 Apr 2009 03:46:40 -0400 Original-Received: by fxm10 with SMTP id 10so1451144fxm.42 for ; Sat, 11 Apr 2009 00:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dd6me9aQiOiIaNL18jvZdu52bd4cbAPjYc0i1sDlvp0=; b=A1hGTv+yoIL6oSkeEMiGRwytjFsoTuXrS8qgoL66qkYkD+hdJTfY7vYXxoVfFzzyyy o/fkWg5nFM/FTABrnCYeQFJ6OFvZ0RXnUaQrGCS1aQXC4B3U/FSlezicR15UqK972VOl 9jVwp+c5gLZ9E4OG2q+z1Dzg5/skK2Y+7hO3c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vgCZtKuDOnbCz8VQSUflbuUNiHQze4GEAWpq7FtOyFVgOmjjJdhVwjviKw3nE9G0Q0 CEbk16FkBX5qy0gcZfrcVtZNguvyd3/+sPZO4BPT/JXnDT0Rn9kW59PNyMr9MVC/y3Hf NbjaZhqEtCrmvJDe93E6SstS33XTKuQRutDvU= Original-Received: by 10.223.116.205 with SMTP id n13mr1227073faq.103.1239435999283; Sat, 11 Apr 2009 00:46:39 -0700 (PDT) In-Reply-To: <20090411.094507.93632591.wl@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:110206 Archived-At: On Sat, Apr 11, 2009 at 9:45 AM, Werner LEMBERG wrote: > >>> I did that (see attachment for reference), and it really works at a >>> reasonable speed. =C2=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. =C2=A0However, it isn't a general solution > since my function should essentially work with all modes. The macro does not depend on font-lock and you have to copy it to your code= .