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: "Font-lock is limited to text matching" is a myth Date: Tue, 11 Aug 2009 16:49:20 +0200 Message-ID: References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <87my67s8mr.fsf@randomsample.de> <1249942011.29022.15.camel@projectile.siege-engine.com> <1249955428.29022.186.camel@projectile.siege-engine.com> <9c768dc60908102347v57bdf38ara9fe2179f68c07e4@mail.gmail.com> <42D4C5C5-E702-4E30-AB95-A016280F20C7@merrillpress.com> <87r5vipgbs.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250002183 11989 80.91.229.12 (11 Aug 2009 14:49:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 14:49:43 +0000 (UTC) Cc: Daniel Colascione , David Engster , Daniel Colascione , emacs-devel@gnu.org, Deniz Dogan , Stefan Monnier , Steve Yegge , Leo To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 16:49:35 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 1MasfP-0006CT-1j for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 16:49:35 +0200 Original-Received: from localhost ([127.0.0.1]:49201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MasfN-0005MA-Ir for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 10:49:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MasfI-0005Ll-Dw for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:49:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MasfD-0005LR-1o for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:49:27 -0400 Original-Received: from [199.232.76.173] (port=50436 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MasfC-0005LO-SR for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:49:22 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.247]:33228) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MasfB-0007Kc-IE; Tue, 11 Aug 2009 10:49:21 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so1457773ana.21 for ; Tue, 11 Aug 2009 07:49:21 -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=9v7ZwZUGVHrf2WkserzYlFRaqc2eIKXEJUs4rut75bQ=; b=QdRQKUQANfd0GF5yMf0G9VAkXjsNwuKsTPDCcw9QDaWcheqZr06T7jps/ZajL+14br x2z9N//mi0KNTOGb2bXp3LQcz0IQ5JTdHEeM2RobbTYHsjI8dYp08NhuDZrP7YjFh9Ax ZZR42u7Z4UGXyJ2q2W6COYCABp/+kUbbBg/zc= 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=IkZbbNdoafx3KxBKbpi/gFqSv8KzcADCWAluv1T6SNnRUPmvEk339D7XENDQZwGDtD I9R1VRyykfeMDhK59Tes7WoTxjKFXFIkymLkhdG29w6NZrtirNaEJCCQL+A0zxv9SGYK jKjd8iB0thvgULn3Xz5jWlEx38SVATJubx+Fk= Original-Received: by 10.100.8.4 with SMTP id 4mr5413467anh.146.1250002161055; Tue, 11 Aug 2009 07:49:21 -0700 (PDT) In-Reply-To: <87r5vipgbs.fsf@catnip.gol.com> 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:114056 Archived-At: On Tue, Aug 11, 2009 at 4:37 PM, Miles Bader wrote: > [Aside from the "changing text-properties affect buffer-modified status" > silliness, which I think is probably a mistake, but that's easy enough > to work around.] There are needs for it sometimes, but I always forget that it does. And there is no really easy, standard way to avoid the buffer modifying. I have two alternative suggestions: 1) Make a macro available for avoiding it. 2) Add an extra argument to put-text-property DONT-MODIFY-BUFFER and friends. Or make new versions of them. Probably 2 will be faster.