From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: feature request: text property to prevent font-locking Date: Tue, 02 Sep 2014 11:02:41 +0900 Message-ID: <874mwqaif2.fsf@uwakimon.sk.tsukuba.ac.jp> References: <20140830092701.GA3351@acm.acm> <34f3e246-bbfb-4864-83e9-4a0c81d4202e@default> <0f746243-e04c-4d07-ace8-2e54625aaffc@default> <20140831214324.GB4401@acm.acm> <87lhq49l3v.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1409623423 31619 80.91.229.3 (2 Sep 2014 02:03:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2014 02:03:43 +0000 (UTC) Cc: Alan Mackenzie , Drew Adams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 02 04:03:36 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XOdRW-0007m0-4n for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2014 04:03:34 +0200 Original-Received: from localhost ([::1]:35449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOdRV-00041W-N4 for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2014 22:03:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOdQx-0003Qe-Hg for emacs-devel@gnu.org; Mon, 01 Sep 2014 22:03:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOdQq-00021f-2E for emacs-devel@gnu.org; Mon, 01 Sep 2014 22:02:59 -0400 Original-Received: from shako.sk.tsukuba.ac.jp ([130.158.97.161]:37295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOdQp-0001yO-P5 for emacs-devel@gnu.org; Mon, 01 Sep 2014 22:02:52 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by shako.sk.tsukuba.ac.jp (Postfix) with ESMTP id 001591C39D0; Tue, 2 Sep 2014 11:02:41 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id E799D1A3118; Tue, 2 Sep 2014 11:02:41 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta34) "kale" acf1c26e3019 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 130.158.97.161 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173942 Archived-At: Stefan Monnier writes: > >> This might be "relatively simple" to implement, but relative to what, > >> I'm not sure. ;-) > > You're well on your way to reinventing "extents", you know. :-( > > No, we did that already (except we called them overlays ;-) Since you apparently need reminding, let me point out that Extents are capable of providing both text property and overlay behavior, and several useful combinations of both as well. "Planes" of text properties is just one example of behavior that is trivial to implement with extents. Drew's desired behavior is trivial to implement given XEmacs's implementation of text properties (that seems somewhat accidental to me). Sure, there are few places where XEmacs implementations vary from Emacs semantics, but IIRC that's by deliberate choice, with one exception where XEmacs chose consistency of abstraction over 100% Emacs compatibility. 99.44% of the time the implementations are not distinguishable by end users.