From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: "Font-lock is limited to text matching" is a myth Date: Wed, 12 Aug 2009 00:57:30 +0900 Message-ID: <87hbweny1h.fsf@catnip.gol.com> References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <200908101335.24002.danc@merrillprint.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> <87skfy8htw.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250006711 24840 80.91.229.12 (11 Aug 2009 16:05:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 16:05:11 +0000 (UTC) Cc: Daniel Colascione , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 18:05:03 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 1MatqP-0007vj-I7 for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 18:05:01 +0200 Original-Received: from localhost ([127.0.0.1]:57017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MatqN-0004Jg-UO for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 12:04:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MatjK-0006hP-6G for emacs-devel@gnu.org; Tue, 11 Aug 2009 11:57:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MatjF-0006Zl-Bm for emacs-devel@gnu.org; Tue, 11 Aug 2009 11:57:41 -0400 Original-Received: from [199.232.76.173] (port=53791 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MatjE-0006ZV-VF for emacs-devel@gnu.org; Tue, 11 Aug 2009 11:57:37 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:55547) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MatjC-0006Ef-Cm; Tue, 11 Aug 2009 11:57:34 -0400 Original-Received: from 218.231.177.167.eo.eaccess.ne.jp ([218.231.177.167] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1Matj9-0002uN-45; Wed, 12 Aug 2009 00:57:31 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 63499DF93; Wed, 12 Aug 2009 00:57:30 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <87skfy8htw.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Wed, 12 Aug 2009 00:56:43 +0900") Original-Lines: 21 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com 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:114074 Archived-At: "Stephen J. Turnbull" writes: > To me, in theory, to the extent that "fontification" means "syntax > highlighting", syntax is almost entirely about position in the token > stream, rather than the text composing the token (even keywords, which > in many languages are a syntax error if they are in the wrong > position). However, being able to add properties to strings, and paste them into buffer (and display them as messages, and ...) is _very_ useful. It's quite often far more convenient to construct propertized text outside the buffer and just insert it. Cut-and-paste has its own issues (and there is some mechanism in Emacs to deal with them, e.g., `yank-excluded-properties'), but they seem to be more connected with that particular application, than with the underlying low-level abstractions. -Miles -- "1971 pickup truck; will trade for guns"