From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r101338: * lisp/emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch Date: Fri, 14 Feb 2014 12:15:53 +0200 Message-ID: <83d2iqc84m.fsf@gnu.org> References: <87r47bi1e5.fsf@yandex.ru> <52F96284.50507@yandex.ru> <52FAE12B.6060101@yandex.ru> <52FC3BEE.60604@yandex.ru> <52FCD2B4.5080006@yandex.ru> <52FD9F1D.50205@yandex.ru> <83mwhucg1h.fsf@gnu.org> <878ute589i.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392372973 15898 80.91.229.3 (14 Feb 2014 10:16:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2014 10:16:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 14 11:16:21 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 1WEFoh-00043s-Us for ged-emacs-devel@m.gmane.org; Fri, 14 Feb 2014 11:16:20 +0100 Original-Received: from localhost ([::1]:50719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEFoh-0003hp-GA for ged-emacs-devel@m.gmane.org; Fri, 14 Feb 2014 05:16:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEFoZ-0003e0-5Y for emacs-devel@gnu.org; Fri, 14 Feb 2014 05:16:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEFoS-0002B2-U6 for emacs-devel@gnu.org; Fri, 14 Feb 2014 05:16:11 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:53484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEFoM-000283-Ju; Fri, 14 Feb 2014 05:15:58 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0N0Z00500DIYS500@mtaout26.012.net.il>; Fri, 14 Feb 2014 12:14:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0Z0012WDS4VU50@mtaout26.012.net.il>; Fri, 14 Feb 2014 12:14:29 +0200 (IST) In-reply-to: <878ute589i.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 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:169601 Archived-At: > From: David Kastrup > Date: Fri, 14 Feb 2014 10:54:49 +0100 > > It's not like there isn't use for it: flex and bison files > (pattern/action) are multiple mode on a large scale, and even > address/action languages like sed and awk have facets of multiple modes. I agree that being able to support portions of a buffer that specify their own major mode is an important feature. I'm just saying that we need a suitable infrastructure for that, instead of trying to exploit unrelated features, which seem like "a good idea". > Emacs can use text properties to switch syntax tables or categories or > even keymaps in mid-buffer. Maybe switching the whole mode would be > feasible in a similar manner. Yes, something like that. Basically, somehow present to major-mode features only a portion of the buffer (e.g., by narrowing internally).