From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: zhanghj Newsgroups: gmane.emacs.devel Subject: Re: A vision for multiple major modes: some design notes Date: Sat, 23 Apr 2016 10:20:06 +0800 Message-ID: References: <20160420194450.GA3457@acm.fritz.box> <05d5bd7e-1cea-4336-a37c-fe6bd6752558@default> <20160421124325.GC1775@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461378000 27662 80.91.229.3 (23 Apr 2016 02:20:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Apr 2016 02:20:00 +0000 (UTC) Cc: netjune@qq.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 23 04:19:51 2016 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 1atnAk-00039G-VX for ged-emacs-devel@m.gmane.org; Sat, 23 Apr 2016 04:19:51 +0200 Original-Received: from localhost ([::1]:43951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atnAk-0000ET-0k for ged-emacs-devel@m.gmane.org; Fri, 22 Apr 2016 22:19:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atnAg-0000CF-MR for emacs-devel@gnu.org; Fri, 22 Apr 2016 22:19:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atnAd-0000D2-DX for emacs-devel@gnu.org; Fri, 22 Apr 2016 22:19:46 -0400 Original-Received: from m50-133.163.com ([123.125.50.133]:48639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atnAc-0000CX-Bt for emacs-devel@gnu.org; Fri, 22 Apr 2016 22:19:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=BZL2D nR2BAIA+NSXp7GLbX/lGAtdElWIlkfNY3dyeus=; b=EUFwT2KM9nRVAM4/QLOor 4h8QGh9cjOHV8mi/HM5QYj22JvNalCLQxx3d3ELSopHXcEzMKr2vaZD90B+ktuNi LV8LRM/xRhzCTt51mrSc3ZRPYmDceRq7tqmdu0cyP+71aaEMP762lWTyoB6GHYor /G+xgz66NEZjq0omJwBoaQ= Original-Received: from jundeMBA.local (unknown [58.101.137.26]) by smtp3 (Coremail) with SMTP id DdGowADn7mat2xpXXmz9BQ--.2548S2; Sat, 23 Apr 2016 10:19:31 +0800 (CST) In-Reply-To: (Stefan Monnier's message of "Thu, 21 Apr 2016 10:24:42 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-CM-TRANSID: DdGowADn7mat2xpXXmz9BQ--.2548S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUI-VyUUUUU X-Originating-IP: [58.101.137.26] X-CM-SenderInfo: xqhwy3lqh6il2tof0z/1tbiQBhUYVSIOjef9AABsW X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 123.125.50.133 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:203197 Archived-At: Stefan Monnier writes: > I haven't kept up with this discussion, but I think it'd worthwhile > taking a look at what things like SublimeText do for syntax > highlighting, because it's a lot more powerful than what font-lock does > (IOW it lets you define contexts and is hence closer to a parser whereas > font-lock is closer to a lexer), and it might be an interesting starting > point for multiple major modes. > > I think font-lock is old and deserves a replacement. > > > Stefan Yes. It can also do symbol indexing (like imenu in emacs, or ctags tools) based on the syntax files.