From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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 09:10:47 -0500 Message-ID: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392387071 24478 80.91.229.3 (14 Feb 2014 14:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2014 14:11:11 +0000 (UTC) Cc: emacs-devel@gnu.org, Dmitry Gutov To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 14 15:11:18 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 1WEJU5-0003hc-23 for ged-emacs-devel@m.gmane.org; Fri, 14 Feb 2014 15:11:17 +0100 Original-Received: from localhost ([::1]:51936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEJU4-0000Wm-KX for ged-emacs-devel@m.gmane.org; Fri, 14 Feb 2014 09:11:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEJTu-0000WO-5m for emacs-devel@gnu.org; Fri, 14 Feb 2014 09:11:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEJTm-0005Br-Sl for emacs-devel@gnu.org; Fri, 14 Feb 2014 09:11:06 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:3970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEJTc-0005AJ-NU; Fri, 14 Feb 2014 09:10:48 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFLd+SX/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNAcLFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFFLd+SX/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNAcLFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="47637988" Original-Received: from 75-119-228-151.dsl.teksavvy.com (HELO pastel.home) ([75.119.228.151]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Feb 2014 09:10:48 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D1759600AA; Fri, 14 Feb 2014 09:10:47 -0500 (EST) In-Reply-To: <83mwhucg1h.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Feb 2014 09:24:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:169605 Archived-At: > I think features that want mode-specific behavior in some region of a > file need new infrastructure (that needs to be discussed and designed > first). I've been following those multiple major mode thingies for quite a few years now. I don't think we really need a significant new infrastructure at the C level. What we need instead is some conventions that major modes need to follow to play well in things like mmm-mode or mumamo. E.g. I don't think "pseudo-narrowing" to magically pretend that only the current "code chunk" exists is going to fly: it will break major modes that don't follow pretty much the same conventions. As for whether multiple major modes are frequent: I consider comments and strings as being "text-mode" chunks. Not sure if we'll ever get to the point of integrating the handling of strings/comments with the handling of other forms of multi-major-modes, tho. Stefan